[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] How do I properly backup and restore / on LVM2

Hi Folks,


singmrecfp1001:~ # lvcreate -L 2.5g -s -n rsnap /dev/rootvg/rootlv

  Logical volume "rsnap" created

But why the above work ?


singmrecfp1001:~ # mount /dev/mapper/rootvg-rsnap /mnt/rootlv/snap
singmrecfp1001:~ # df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
                       2621356   1637876    983480  63% /
tmpfs                  4000100         4   4000096   1% /dev/shm
/dev/md0                102712     40056     62656  39% /boot
                       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.


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.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]