[linux-lvm] How do I properly backup and restore / on LVM2
Alan Pek
alan.pek at db.com
Tue Apr 13 11:47:57 UTC 2010
Hi Folks,
Thanks.
singmrecfp1001:~ # lvcreate -L 2.5g -s -n rsnap /dev/rootvg/rootlv
Logical volume "rsnap" created
But why the above work ?
And
singmrecfp1001:~ # mount /dev/mapper/rootvg-rsnap /mnt/rootlv/snap
singmrecfp1001:~ # df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootvg-rootlv
2621356 1637876 983480 63% /
tmpfs 4000100 4 4000096 1% /dev/shm
/dev/md0 102712 40056 62656 39% /boot
/dev/mapper/rootvg-rsnap
2621356 1636964 984392 63% /mnt/rootlv/snap
However I don't see any lv with lvs
singmrecfp1001:~ # lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
rootlv rootvg owi-ao 2.50G
swaplv rootvg -wi-ao 1.00G
I will now mount a NFS filesystem and do a tar of this snapshot.
Is there anything I have to take care if now, my rootdisk is gone.
How do I restore from this snapshot , any specific settings like creating
bootable block ?
The root filesystem is reiserfs and it has software mirrored.
Regards
Alan
---
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20100413/89baf850/attachment.htm>
More information about the linux-lvm
mailing list