wiki:jazz/partclone/09-06-08

Version 1 (modified by jazz, 15 years ago) (diff)

--

[DEBUG]

pvcreate /dev/hda1
vgcreate sys /dev/hda1
lvcreate -L 3G -n kvm-img sys
lvcreate -L 3G -n bk-orasrv1.dmz.cs.bgu.ac.il1 sys
mkfs.ext3 /dev/mapper/sys-kvm--img
mount /dev/mapper/sys-kvm--img /mnt
cd /mnt
dd if=/dev/urandom of=random.dd bs=1M count=30
umount /mnt
LANG=C partclone.ext3 -b -d -s /dev/mapper/sys-kvm--img -O /dev/mapper/sys-bk--orasrv1.dmz.cs.bgu.ac.il1