HPE EVA Storage
1752773 Members
4747 Online
108789 Solutions
New Discussion юеВ

Re: Migrate Data from one to another SAN

 
Juan M Leon
Trusted Contributor

Migrate Data from one to another SAN

Hello,

We have to plan data migration from a VA7400 to a new XP12000.
We have a few suggested commands:
-----------------------------------------------
# cd /source
# fbackup -f - -i . | (cd /destination; frecover -rXf -)
-----------------------------------------------
# cd /source
# tar -cf - . | (cd /destination ; tar -xf -)
-----------------------------------------------
# bdf
# cd {source_dir}
# ls -lR | wc
# find . -xdev -depth -print | cpio -pdum {dest_dir}
# bdf
# cd {dest_dir}
# ls -lR | wc
-----------------------------------------------
For example we have N lvols in the VG attached to the VA and we created N lvols attached to the XP then

pvmove /dev/dsk/ /dev/dsk/
-----------------------------------------------
Does anybody has suggestions as what option is more reliable and accurate. We have to consider that we don't want to change the permissions, time stamp or structure (linked files).
Personally I find interesting the last option using pvmove however I had no experience using this command.
Any suggestions or comments will be appreciated.

Thank you
Juan
7 REPLIES 7
Ivan Ferreira
Honored Contributor

Re: Migrate Data from one to another SAN

I would use fbackup/frecover if I have too choose from one of the backups tools.

tar is not good enough to these kind of data movement because of limitations of tar.

cpio is too complicated without reason, if you can use fbackup

pvmove must be executed between pvs of the same VG, so you must add the physical volume to the same volume group before executing that. If this is not an issue for you, there will be no problem. The only thing you must consider is that pmove will actually "move the data", you don't have a "rollback option". The good thing of this is that you can do this "online", you don't have to stop I/O to do this.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Juan M Leon
Trusted Contributor

Re: Migrate Data from one to another SAN

Ivan do you have any information as which option is faster cpio or vxdump. We are moving about 1.5 TB data.
VA7400-->XP12k
Luk Vandenbussche
Honored Contributor

Re: Migrate Data from one to another SAN

Juan

Can you use mirror/UX?

Mirror the VA filesystem to the xp

lvextend -m 1

Reduce the filesystem from the VA

lvreduce -m 0

With this option you can do everything online
Juan M Leon
Trusted Contributor

Re: Migrate Data from one to another SAN

Luk,

LVM mirror is not an option.
I am trying to find the best to migrate the data in the quickest possible way
dentistcorn
Regular Advisor

Re: Migrate Data from one to another SAN

If you are serious about migrting data you will definitelly need a block level migration tool.

The one I use is FalconStor. If you have a brocade SAN then consider Brocade's DMM appliance.

These tools aren't cheap but worth the money for migrations.

Other than that use the basic procedure everyone else uses: backup - restore.
Tom O'Toole
Respected Contributor

Re: Migrate Data from one to another SAN


Just curious why you have eliminated host based mirroring as a solution. It's a very good way to do exactly what you want to do, often with zero downtime.
Can you imagine if we used PCs to manage our enterprise systems? ... oops.
Alzhy
Honored Contributor

Re: Migrate Data from one to another SAN

You should be able to safely use pvmove - IF:

1. You are simply dealing with simple LVOLS
2. You do not have any maxpe/pv issue
3. plan to maintain the same storage layout/structure
4. You want minimal or do not want to have downtime.


IF you have the luxury of downtime AND your LVOL sizes will remain the same, then the following will be my preference (fastest to possibly slowest):

1. dd raw copies

dd if=/dev/va7400vg/rora001 of=/dev/xp12kvg/rora001 bs=4096k

2. vxdump/vxrestore

vxdump 0bf - 126 /ora001|(cd /xp12k/ora001;vxrestore rf -)

3. fbackup/frestore as you've depicted above.



Good luck.
Hakuna Matata.