migrate from one iscsi storage to a other.

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

coffe

Guest
Hi,
i am going to do a bash script to move all my imags over to my new storage.
But i dont know how to make the new image in the right way from console.

i am going to use dd to copy it.

Before i used the interface, but now i have to move 30+ imgs. and would be good to script it.

BR
//Coffe
 
Tnx,
dd is not realy the problem, more on how to create new lvm on new iscsi target.
 
I have done this in the past. What i did was mount the new ISCSI target to the cluster then copied the imaged from one directory to a other.

I don't remember all of the things i did but it something like..

# cd /dev/OLDISCSI

# cp vm-101-disk-1 /dev/NEWISCSI

Then edit:

#nano /etc/qemu-server/101.conf

where it says something like:

ide0: OLDISCSI:vm-101-disk-1

Change OLDISCSI to the NEWISCSI name.

I don't remember if there was anything else i had to do or not.
 
Hi Tnx,
i did write a bash script for doing it. as i did have to move +50 servers,
But now it seems like everything is working.
//Coffe