Hi Lars (and all the other list members), first of all, thanks for this nice little script (and I see nothing wrong with that :-))) ), but it assumes that VG backupvg and the underlying VG has already been created, right? I see no pvcreate and vgcreate invocations in there. Is this on purpose, i.e. is that already done just by duplicating the partition table using sfdisk? Thanks in advance for clarifying things. Kind regards, Holger On Fri, 07 Sep 2007, Lars Ellenberg wrote: > [...] > what is wrong with > sfdisk -d /dev/sda | sfdisk /dev/sdb > lvs -o attr,name,size --noheadings rootvg | > while read a n s; do > [[ $a == -* ]] || continue; > lvcreate -L $s -n $n backupvg ; > # dd bs=1M if=/dev/rootvg/$n of=/dev/backupvg/$n > done > ? > [...]
Attachment:
signature.asc
Description: Digital signature
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/