Operating System - HP-UX
1751959 Members
5281 Online
108783 Solutions
New Discussion юеВ

Re: Migrating an FS from one storage to another

 
Torsten.
Acclaimed Contributor

Re: Migrating an FS from one storage to another

Well, if you mirror from old array to new array, you do a lvextend -m 1 ...to the new array, then you do a lvreduce -m 0 ... from the old array.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Rita C Workman
Honored Contributor

Re: Migrating an FS from one storage to another

..when you do the lvreduce -m 0, remember to enter in the disks to be removed, so it drops the old ones and not the new ones.

Example:

lvreduce -m 0 /dev/vg/lvolx /dev/dsk/c0t0d1 /dev/dsk/c0t0d2 /dev/dsk/c0t0d3

or you can put all your disk info into into a file (diskinfo.file), making sure that all disk is in one continued line and you could run it this way:

lvreduce -m 0 -A n /dev/vg/lvolx `cat diskinfo.file`

Rgrds,
Rita
Emil Velez
Honored Contributor

Re: Migrating an FS from one storage to another

Assuming it is not VG00 (boot disk volume group)

1. Add new disks from the new storage array to the volume group.
vgextend vgxx /dev/dsk/cnew

repeat for each disk in new storage array

2. pvmove /dev/dsk/cxtyd0 (old disk storage0
3. vgreduce /dev/dsk/cxtyd0

repeat steps 2 and 3 for each old disk

Now you can extend the lv and filesystem if the new disks were bigger than the old ones.

INH
Regular Advisor

Re: Migrating an FS from one storage to another

kunjuttan
all above querries suffice answer to your querries :)

But what i understand from your query is that your old storage may be EOL & if you are planned to decommission your old storage and also you have extra space requirement on VGs
Then, you can go for creating new filesystem mount it and copy the data from old mount to new mount and remove old vg and LUNS.
instead copy you may go for backup and restore.

Regards,
INH
Knowledge is power