1833433 Members
2957 Online
110052 Solutions
New Discussion

Replace root vg hdd

 
Anoop Sivan
Frequent Advisor

Replace root vg hdd

Hi all
O/s :hp-ux 11i v1
Issue:hdd partially failed in root vg
We need to replace the current 9Gb hdd from the root vg, but we received a new disk which is 18Gb.And the root vg is not mirrored.Now the machine is up and running, we have down time for this activity.Please provide the steps to replace the disk disk in root vg, and whether we can utilize the entire 18Gb of new disk?
13 REPLIES 13
Prasanth V Aravind
Trusted Contributor

Re: Replace root vg hdd


Yes its possible, if you do "pvcreate,
vgextend , lvextend " to mirror rootvg

Its not possible , if you do " pvcreate, vgcfgrestore, vgsync " to mirror rootvg.

In second case you will be able to use only 9GB.

GUdluck
Prasanth
Michal Kapalka (mikap)
Honored Contributor

Re: Replace root vg hdd

hi,

after PVcreate of the new disk, you will get two times PV, but you will allocate only 9 GB.

mikap
Kapil Jha
Honored Contributor

Re: Replace root vg hdd

Yes you can do it

1. Install Ignite-UX on your system
2. run make_recovery (with relevant options), to create bootable tape
3. reboot your system & Press a key to abort non-interactive recovery.
4. Select appropriate language.
5. Select Advanced Options from the menu (3rd option).

6. Select Edit Config from the submenu (2nd option).
7. Change the last RECOVERY entry in the file to RECOVERY=TRUE and exit vi.
8. Select Install HP-UX from the menu (1st option).
9. Choose either Guided or Advanced Installation (advanced is required for changing filesystems).
10. Complete all other required information and select Go! to begin the recovery.

from
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1424543

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Anoop Sivan
Frequent Advisor

Re: Replace root vg hdd

Thanks for the quick reply
So the procedure is
1 pvcreate -fB /dev/rdsk/cxtxdx
2 mkboot -l /dev/rdsk/cxtxdx
3 mkboot -a hpux -lq /dev/rdsk/cxtxdx
4 vgextend /dev/vg00 /dev/dsk/cxtxdx
5 lvextend /dev/vg00/lvol1 /dev/dsk/cxtxdx
6 like lvol2,lol3......
so here my question is whether the entire 18Gb will be utilized?
because the currentMAX PE /PV
==========================
vgdisplay vg00

Max PE per PV 1016
PE Size (Mbytes) 4

R.K. #
Honored Contributor

Re: Replace root vg hdd

Hi Anoop,

>> hdd partially failed in root vg
Mirroring might not work as disk would have some stale extents

Do you have ignite backup?
If yes..

1. Shutdown system and replace the drive.
2. Boot system from make_tape_recovery
- Interrupt system on the way up
- Search for bootable device (see ipl)
- boot P# (Sequential)
- Do not interact with IPL
- From the Welcome to Ignite-UX screen Select "Install HP-UX"
- From the "User Interface and Media Options" menu
Select "Media Only Installation"

3. Do all necessary file system changes: extending vg00, increasing the size logical volumes and changing file system types.
Don't fix what ain't broke
Anoop Sivan
Frequent Advisor

Re: Replace root vg hdd

Sad news
ignite not installed, tape drive not working...
Michal Kapalka (mikap)
Honored Contributor

Re: Replace root vg hdd

hi,

build an IGNITE server and backup via network.

mikap
Aneesh Mohan
Honored Contributor

Re: Replace root vg hdd

Hi Anoop,

>>hdd partially failed in root vg

I assume the vg00 was mirrored before ( 2 X 9 disks) and one of mirrored disk had failed.

You steps looks good.


>>so here my question is whether the entire 18Gb will be utilized?
because the currentMAX PE /PV

See ...if you are mirroring a 18 GB disk with a 9 GB disk only 9GB of the new disk is used for mirroring and the remaining PE of the new disks can be used for newer vg00 lvols without mirroring.

Regards,
Aneesh
Anoop Sivan
Frequent Advisor

Re: Replace root vg hdd

Hmm
This is a small data center for a Bank.
Only one server...
Michal Kapalka (mikap)
Honored Contributor

Re: Replace root vg hdd

hi,

so if you can't create ignite backup them, and like to fix it, them you need to risk it and make it on this system.

i do it always on production system, but i have always a ignite backup, but in this situation you should consider and chcek what you are going to do.

mikap
Kapil Jha
Honored Contributor

Re: Replace root vg hdd

having ignite is very good specially when u playing with vg00.
do you have backup of the server.

What you may try is add this disk in server new vg or any existing vg.
create the LVs simlar to vg00(except double the size) and restore the corresponding data from backup.
like root file syestem in /a/root_2
var in /a/var_2

after restoring the data of all the LVs do a mkboot on the disk, and try to reboot with this disk.

IGNITE is highly recommended.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Kanagaraj
Regular Advisor

Re: Replace root vg hdd

Anoop,

//ignite not installed, tape drive not working...//

The tape drive is detecting or not.

If the tape drive is not detecting,enable "stape" driver to in and take a reboot(Use SAM)//it is static kernel parameter,so reboot is required.

If tape is detecting and not working try to replace new tape drive and install latest version of ignite.Take vg00 backup and restore it on 18GB DISK.

I think this process will take time even it is Good for you.If mirror bundle already installed try for mirroring.



Anoop Sivan
Frequent Advisor

Re: Replace root vg hdd

Thanks kapil
Yes we now we ned to follow some hp-non recomended way to solve this issue.Raised hprc case for the reply from the experts.I will post the update.

Thanks everyone.