1844018 Members
3096 Online
110226 Solutions
New Discussion

LVM Disk Replacement

 
Ron Marchak_1
Advisor

LVM Disk Replacement

I have a HP9000, K360 with four internal drives, two 4GB and two 9 GB. The 11.X OS is running on a single 4 GB drive. My filesystems are root, stand, usr, var, opt, tmp, and home. I would like to migrate the entire root volume group from the 4 GB drive to the 9 GB drive and when complete remove the 4 GB drives from the system to use elsewhere. I have Mirror UX and On-Line JFS on the system. All the disks are currently in the root VG and the root VG is currently not mirrored. Any suggestions on how to approach this?
We have no problems, just opportunities !
11 REPLIES 11
Anthony Goonetilleke
Esteemed Contributor

Re: LVM Disk Replacement

There is a couple thoughts on this you could do it with mirroring have a look at Doc ID
KBAN00000347 from the ITRC it will walk you through the steps. The alternative is to make a recovery tape via ignitue UX make_recovery and then swap the disks and restore the tape.
Minimum effort maximum output!
Denver Osborn
Honored Contributor

Re: LVM Disk Replacement

It doesnt seem like mirroring would resolve your situation. The MAX PE per PV is probably set too low to accomodate the 9GB drive. You'd be better with creating a make_recovery tape and restoring vg00 from the tape to the 9GB drive.

for more information on Ignite/UX
http://www.software.hp.com/products/IUX
Stefan Farrelly
Honored Contributor

Re: LVM Disk Replacement


Denvers solution gets my support.
Im from Palmerston North, New Zealand, but somehow ended up in London...
KwangHee Yi
Advisor

Re: LVM Disk Replacement

Why don't you try that with Ignite/UX?
It may be a good solution to reinstall the O/S.

At first, make a installation tape with a command make_recovery, and then, boot with that tape. At the booting, there is several pathes you can choose. Choose installation. and install os on the new 9GB disk.

Ignite/UX is on the ITRC web.

Re: LVM Disk Replacement

Ron, I have a good approach to this back at the office. The approach dows not require you to use Ignite-UX. I'm however not at the office at the moment, so if you'd like to receive the approach, mail me at ljg@lilleborg.no

Lars

CHRIS_ANORUO
Honored Contributor

Re: LVM Disk Replacement

Hi,

If you increase NPROC, MAXUSERS and NPTY
to a considerable value it will increase the value of NFILE.
You can use the oolowing values:
MAXUSERS=400
NPROC=4096
NPTY=512
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Nancy Hubert
Occasional Advisor

Re: LVM Disk Replacement

Here is the steps the make_recovery interactively, this way you select your new boot drive and it will re-create the vg00 with enough Max PE per PV for you bigger drive.

- Boot from the make_recovery tape.

- At the prompt, press within 10 seconds to cancel batch mode installation.

- Answer 'y' to really cancel non-interactive install and start the user interface.

- Specify your keyboard language.

- At the Ignite Welcome Menu, go into "Advanced Options".

- In Advanced Options, choose [edit (vi) config file].

- Using the vi editor, change the LAST occurrence of RECOVERY_MODE to equal
TRUE instead of FALSE (ie: RECOVERY_MODE=TRUE). Write and exit the file.

- Back at the Advanced Options menu, select OK to go back to the Welcome Menu.

- At the Welcome Menu, select [Install HP-UX].

- When prompted, change the User Interface Option to Advanced Installation.

- Make system configuration changes as appropriate via the itool interactive
menus.

- Select Go! when you are ready to begin the restore.

Cheryl Griffin
Honored Contributor

Re: LVM Disk Replacement

Denver's resolution also gets my vote.
He is exactly right about the max_pe's. If the vgcreate defaults were taken, it will accommodate a 4 gig disk, not a 9 gig.
"Downtime is a Crime."
Victor BERRIDGE
Honored Contributor

Re: LVM Disk Replacement

Denvers solution gets my vote too, I believe like Cheryl that you would finish up with at the most 8GB on the 9 you have...(pvextend limits...)
Dave Wherry
Esteemed Contributor

Re: LVM Disk Replacement

Ron says that all of those disks are in the root vg so Max PE per PV may not be a problem. Check it out and don't speculate. Do a "vgdisplay /dev/vg00" and see what it is set to. If it is 1024 then it is set to allow a 4GB drive as the largest drive and you will be wasting more than half of that 9GB drive.
If it is somewhere around 9200 or higher (I'm not sure what the number should be) then you are OK with the 9GB drive. The mirroring approach would work.
However, I do agree with the previous posts and think you should do the make_recovery method.
Alan Riggs
Honored Contributor

Re: LVM Disk Replacement

I side with Dave. If the disks are already in the root VG, then it may have been created to accomodate the 9GB drives. It is easy to check -- vgdisplay -v vg00.

If you show the full drives, simply reduce the VG by one 9GB drive. pvcreate that drive as a boot volume. Then follow the steps for mirroring a root drive. (mkboot, mirror LVs, setboot, etc.)

When you are done, boot off of the alternat path (9GB mirror) to test. If it works, use setboot to make that path primary and reduce the 4GB drive out of the VG.

If the full 9GB drive is not availale, then the make_recovery tape will be you best path.