Operating System - HP-UX
1833193 Members
3063 Online
110051 Solutions
New Discussion

Replacing vg01 with a bigger disc

 
SOLVED
Go to solution
MarkSyder
Honored Contributor

Replacing vg01 with a bigger disc

Hi everybody.

I'm currently backing up a 9Gb disc in a workstation ready to replace it with a 36Gb disc.

I would appreciate guidance as to the best way to go about replacing the disc. The workstation only has two slots, so the new disc will be going in the slot currently occupied by the old one.

I think there are two options:

1. vgexport, remove old disc, insert new disc, vgimport

2. remove vg, remove old disc, insert new disc, vgcreate.

I would prefer option 1, but am concerned that this might restrict me to using 9Gb of the new disc (which would defeat the object of buying it).

If I have to go for option 2 will I need to call the vg vg02 as the system has already had a vg01?

Advice from people who have done this before will be rewarded with points.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor
Solution

Re: Replacing vg01 with a bigger disc

Hi Mark,

Mix of both options.

# vgchange -a n /dev/vg01
# vgexport /dev/vg01
insert new disk
# ioscan -fnCdisk
if needed
# insf -e
# vgcreate /dev/vg01 /dev/dsk/cxtydz
lvcreate old logical volumes
change the /etc/fstab if needed
restore data from backup

Regards,
Robert-Jan
MarkSyder
Honored Contributor

Re: Replacing vg01 with a bigger disc

Looks good, Robert-Jan.

Points to be awarded after I've completed the job.

Mark
The triumph of evil requires only that good men do nothing
Thierry Poels_1
Honored Contributor

Re: Replacing vg01 with a bigger disc

hi,

the max disk size depends on your PE size and max PE's per PV. If they are not large enough to handle 36GB, you'll need to create a new VG for this disk.

As the VG name is generally not important you can:
- create a new VG for the new disk
- create the required LVOLs on it
- use temporary mount points for the new LVOLs
- copy everything from the origingal mount points to the temporary mount points
- umount everything
- mount new LVOLs on the original mount points
- done

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
MarkSyder
Honored Contributor

Re: Replacing vg01 with a bigger disc

Hi Thierry.

SAM shows me a maximum size of 16000Mb for this vg. Does that mean I will have to create a new vg or can I re-create vg01?

Mark
The triumph of evil requires only that good men do nothing
Thierry Poels_1
Honored Contributor

Re: Replacing vg01 with a bigger disc

hi,

well you can remove and recreate VG01,
or you can create a new VG and copy data from disk, instead of from your backup: quicker & safer (no need to drop original until copy is OK)

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
MarkSyder
Honored Contributor

Re: Replacing vg01 with a bigger disc

Marvellous stuff - a very smooth job.

This thread can now be considered closed.

Mark
The triumph of evil requires only that good men do nothing