HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Migrating an FS from one storage to another

 
kunjuttan
Super Advisor

Migrating an FS from one storage to another

Hi all,

I am having an HP-UX 11.11 Server.I have one filesystem which need to be increased.This storage in which this particular FS resides in not having any free space.So I need to use new storage.Now my problem is I need to move this FS from old storage to new storage which is having enough free space.How can I able to achieve this.Pls help me.
13 REPLIES
Pete Randall
Outstanding Contributor

Re: Migrating an FS from one storage to another

Uhhhhh, create a new FS and copy the data from the old to the new?

What are you asking here? How to copy, how to create the new FS, what?


Pete

Pete
Torsten.
Acclaimed Contributor

Re: Migrating an FS from one storage to another

Take a backup and restore it to the new location.

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

Let me add aother questions...

What kind of storage?

Rgrds,
Rita

..providing all the details first, really helps speed up the process..
kunjuttan
Super Advisor

Re: Migrating an FS from one storage to another

thanx for the quick replies.But can i do like the following.

existing FS size is 500GB
I will create new 500GB lun in new storage and present it to Server.
create pv.
extend vg
mirror the lv
then break the mirror
and remove the old PV

Can I do it like this.bcos i cant have an option for backing up the data and restoring it.

Pls help me out.If the above process is possible i need the exact steps.
Torsten.
Acclaimed Contributor

Re: Migrating an FS from one storage to another

Yes you can do this, but finally you get the same amount of space, right?

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!   
kunjuttan
Super Advisor

Re: Migrating an FS from one storage to another

that is right torsten..bt i need to extend this particular FS.for tht we dont have enough space in old storage.thts y we need to move it to new storage and i will extend it..can u pls help the steps too..
Torsten.
Acclaimed Contributor

Re: Migrating an FS from one storage to another

Since this is 11.11 you need to create another LUN and vgextend the existing VG.

Don't expand the LUN!

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!   
kunjuttan
Super Advisor

Re: Migrating an FS from one storage to another

thanx torsten..i dont know how to break the mirror..how to do it..wht is the risk involved..???
Mel Burslan
Honored Contributor

Re: Migrating an FS from one storage to another

breaking the mirror is not dangerous and in your case is not necessary ? If your storage is on SAN, why do you need a mirror ? Doesn't your SAN have some data protection schema like RAID 1+0 or at least a RAID-5 ?

But again, you do not need to break the mirror on the LVM side. You just create another couple of LUNs, Do a pvcreate, then vgextend to cover the new LUNs. Then expand your filesystems onto these new devices as you usually do ? It is not a necessity that all your data on any given VG staying on the same device. It is the beauty of LVM.
________________________________
UNIX because I majored in cryptology...
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