I created a lvm snapshot like so:
lvcreate -L 5G -s -n root-snapshot /dev/VolGroup00/LogVol00
Then I mounted the snapshot like so:
mount /dev/VolGroup00/root-snapshot /mnt/root-snapshot/
Now, when I see what's in the dev tree in the snapshot, almost everything is missing except for two items:
[root@server1 ~]# ls /mnt/root-snapshot/dev
mapper VolGroup00
And there is nothing inside proc
.
Why is this? I know proc is a virtual fs, but when the snapshot was taken, the system was running and hence there was a lot of stuff in proc and dev... why are they missing in the snapshot.
I particularly needed:
/dev/console
/dev/initctl
/dev/null
/dev/zero
for my backup.
Edit: mount actually reveals that proc is mounted fs on / But what about dev... mount does not show dev being mounted outside of LVM?
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/mapper/VolGroup00-root--snapshot on /mnt/root-snapshot type ext3 (rw)