Storage errros, how to copy a machine from iscsi to normal raw

  • Thread starter Thread starter coffe
  • Start date Start date
C

coffe

Guest
Hi,

While adding more discs to a raidset on the storage, we lost 3 drives so our raid 6 is destroyed,
We still have the other raidset that se are using as iscsi.

But as we are missing the nfs, i cant do a vzdumt of them, is there any other way ?

Should i remove the old storagepaths to broken nfs, will i be able to dump to local drive then ?
 
Hi,

While adding more discs to a raidset on the storage, we lost 3 drives so our raid 6 is destroyed,
We still have the other raidset that se are using as iscsi.

But as we are missing the nfs, i cant do a vzdumt of them, is there any other way ?

Should i remove the old storagepaths to broken nfs, will i be able to dump to local drive then ?
Hi,
define a direcectory (local) for backup and remove the unaccessible nfs-storage. Than you should run vzdump successfully.

If you want to copy a (lvm) machine for local storage, you can also do it handmade:
power down VM (e.g. 120)
look for lv-name with
lvdisplay | more (or "grep 120")
mkdir /var/lib/vz/images/120
dd if=/dev/iscsi-vg/ vm-120-disk-1 of=/var/lib/vz/images/120/vm-120-disk-1.raw bs=1024k

change the storage-entry in the config (/etc/qemu-server/120.conf)
to local:120:vm-120-disk-1.raw

power on vm
If all run you can delete the lvm-lv in the gui (show as unused harddisk).

Udo
 
Hi,

Thnks, but when i am trying to dump it . its just hangs on creating the raw, but there is no file , so i guess its breaks.

INFO: creating archive '/var/lib/vz/dump/vzdump-qemu-151-2011_01_21-11_46_06.tar'
INFO: adding '/var/lib/vz/dump/vzdump-qemu-151-2011_01_21-11_46_06.tmp/qemu-server.conf' to archive ('qemu-server.conf')
INFO: adding '/dev/mullet_vhost_lvm2/vm-151-disk-1' to archive ('vm-disk-virtio0.raw')

and then nothing happens for hours.

//Coffe
 
How then to move a local img , to use iscsi ?
Hi,
you mean instead a local raw-disk to use an logical volume? (i guess you defined a volume group on your iscsi-device).

Just create a disk inside the gui on the storage - this create a lv with the right tag. After that copy with dd (change if with of in my example - with the right lv- and disk-names!).

Or use qmrestore.

Udo