migrate Disks + LVM from 1 Sun server to another

Hi

Is there a best practice for migrating SAN disk from one Sun server to another.

Both Servers are running Solaris 9.

System disks are local disk on both servers ( LVM )

SAN disk is setup using LVM , we then create many soft partitions which are used as raw devices for Sybase.

thanks in advance.

[334 byte] By [DataActiona] at [2007-11-27 6:48:42]
# 1
What storage are you using and what multipathing are you using, if any?
Stuart_Flishera at 2007-7-12 18:22:11 > top of Java-index,General,Sys Admin Best Practices...
# 2
HiThe Storage system is a ST-9990 using mpxio for multipathing.thankyou
DataActiona at 2007-7-12 18:22:11 > top of Java-index,General,Sys Admin Best Practices...
# 3

Hi,

I assume you are not using metasets.

unmount and fsck your file systems.

Backup your data, then make sure your backup worked :)

You will need to capture the output of metastat -p from your original server and make sure you know which luns map to which disks. You can use 'luxadm probe' and 'luxadm display <path>' to check.

Check where your metadb databases are located on the first server. You will need create metadb databases on the second server.

I assume you will be using mpxio on second server and that it would be already enabled.

You then need to make your luns available via SAN to second server and check that you can see them in format output.

Run 'luxadm probe' and 'luxadm display <path>' and map the luns to the disks from format output. Do not assume that the disks will have the same name between first and second server.

You can save the output of 'metastat -p' from first server into /etc/lvm/md.tab in second server. Edit the disks paths as necessary making sure you use the correct lun for each underlying metadevice.

You can run metainit -n d<xx> to check the syntax of your md.tab config.

metainit your primary metadevices before the soft partition devices.

Create your mount points and vfstab entries.

Mount your file systems.

If this works you can write the best practise guide ;)

Regards

Stuart_Flishera at 2007-7-12 18:22:11 > top of Java-index,General,Sys Admin Best Practices...
# 4
Hi Stuartthanks for the information - you make it sound very straight forward.Hopefully in the next week or so when I have to test this - Everything runs as easy as you have made it sound.thankyou.
DataActiona at 2007-7-12 18:22:11 > top of Java-index,General,Sys Admin Best Practices...