Operating System - HP-UX
1753852 Members
8571 Online
108807 Solutions
New Discussion юеВ

Re: migrating data to newer disks

 
Ishamuddin Azmi
Occasional Advisor

migrating data to newer disks

i have K380 servers connected to external HASS disk storage (8 bays HDD)which has 5 x 4GB HDD and 3 x 18GB HDD. We would want to replace 2 of 4GB HDD with newer 2 x 18GB HDD drive. From 5x 4GB HDD bunch of disks, 3 hdd is being configured in VG01, in which we want to replace 2 of it.
I don't have any idea on how to migrate the data from the older 2x4GB disks into 2x18GB disks. Any idea? Pls give me step by step. I'm new to HPUX.
6 REPLIES 6
Naveej.K.A
Honored Contributor

Re: migrating data to newer disks

hi,

pvmove...
man pvmove for more details..


regds
naveej
practice makes a man perfect!!!
KapilRaj
Honored Contributor

Re: migrating data to newer disks

Install the additional disks into the system let's say they are disk5,disk6

U have vg01 of disk3,disk4

pvcreate disk5 (use the proper devicename)
pvcreate disk6
vgextend vg01 disk5 disk6
pvmove disk3
pvmove disk4


Now u would have disk3 and disk4 free

Use lvdisplay on all the lv's and find these pv's (disk3 and disk4) are no longer used

vgreduce vg01 disk3
vgreduce vg01 disk4

Regds,

Kaps
Nothing is impossible
Ishamuddin Azmi
Occasional Advisor

Re: migrating data to newer disks

guys, the problem is the HASS storage has already full with 8 bays. So how to configure it into the new systems? unless you take two disks (4GB) out and 18GB in. but then how to migrate? by tape?
V.Tamilvanan
Honored Contributor

Re: migrating data to newer disks


AS you told you need to backup your data to some other Media and restore back after adding the new disks.
You can make the backup using either tapes or Network storage like NFS shares of other systems .
KapilRaj
Honored Contributor

Re: migrating data to newer disks

In this case I would unmount the filesystems in another vg which is made of two disks and then do a vgexport ... Take out those disks and then install the new ones and do a pvmove and vgreduce.

Once this excersise is done, u can install the removed vg's disks and then import the vg back

Kaps
Nothing is impossible
Geoff Wild
Honored Contributor

Re: migrating data to newer disks

So you want to replace 2 disks in vg01...

It might be best to re-create it...

First, backup it up....

Next, make note of the lvols currently configured in vg01:

vgdisplay -v vg01 > /tmp/vgdisplay.vg01

Then, blow it away:
umount all the filesystems on vg01
vgchange -a n vg01
vgexport /dev/vg01

If your HASS is hot swap, swap the disks - if not, you will have to shutdown your box and HASS...

Re-create vg01:

mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000

vgcreate -s 8 -p 128 /dev/vg01 /dev/dsk/cXtXdX /dev/dsk/cXtXdX /dev/dsk/cXtXdX

/dev/dsk/cXtXdX (devs of your 3 disks - from /tmp/vgdisplay.vg01)

then, for each lvol in /tmp/vgdisplay.vg01, lvcreate them:

(For example - create a 4GB filesystem)
lvcreate -L 4096 -n lvvol1 /dev/vg01
newfs -F vxfs /dev/vg01/rlvol1

Once they are all created (to the size you want), mount them (entries should still be in /etc/fstab), then restore your data...

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.