Operating System - HP-UX
1825667 Members
4348 Online
109686 Solutions
New Discussion

Re: Replacing existing hard disk in K250 server

 
Ngoh Chean Siung
Super Advisor

Replacing existing hard disk in K250 server

Hi,

The K250 server has 2 x 4GB & 2 x 9GB hard disk. 1 x 4GB + 1 x 9GB is vg00 and 1 x 4GB + 1 x 9GB is vg01.

I want to replace both 4GB hard disk with another 9GB hard disk.

Can I hv the steps that I need to do? Before & after swap the hard disk.

regards.
10 REPLIES 10
RAC_1
Honored Contributor

Re: Replacing existing hard disk in K250 server

What's there on those disks?
There is no substitute to HARDWORK
Darrel Louis
Honored Contributor

Re: Replacing existing hard disk in K250 server

Hi,

If I understand it correct the VG's are not mirrored?

Can you provide the following information:
- lvlnboot -v
- bdf
- setboot

Read the following Doc. to give you an overview how things work:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf


Check the following thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=18805

GoodLuck

Darrel
Ngoh Chean Siung
Super Advisor

Re: Replacing existing hard disk in K250 server

Hi,

There is no mirroring among these hard disk. The main application in this server is informix. For informix parts, I need to backup archive level 0 for whole instance. The parts that I not sure is on HP site.

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (10/0.6.0) -- Boot Disk
/dev/dsk/c0t4d0 (10/0.4.0)
Boot: lvol1 on: /dev/dsk/c0t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 262144 51710 197410 21% /
/dev/vg00/lvol1 298928 28504 240528 11% /stand
/dev/vg00/lvol7 1089536 740083 328066 69% /var
/dev/vg00/lvol6 1791145 1226966 385064 76% /usr
/dev/vg00/lvol5 286720 261112 25369 91% /tmp
/dev/vg00/sd 43797 13827 25590 35% /sd
/dev/vg00/lvol4 638976 361660 260049 58% /opt
/dev/vg01/ninformx 1201993 520433 561360 48% /ninformx
/dev/vg01/live 398869 106752 252230 30% /live
/dev/vg01/lvol2 1001729 897082 4474 100% /home
/dev/vg01/sdproj 147541 68332 64454 51% /sdproj
/dev/vg01/sdproj2 498645 277553 171227 62% /sdproj2
/dev/vg01/lvol8 151509 12754 123604 9% /loadstat
/dev/vg01/yshcm 307200 252581 51233 83% /yshcm

# setboot
Primary bootpath : 10/0.6.0
Alternate bootpath : 10/12/5.2.0

Autoboot is ON (enabled)
Autosearch is OFF (disabled)

regards.
JASH_2
Trusted Contributor

Re: Replacing existing hard disk in K250 server

Hi,

I would create an ignite image of your system and a backup to tape of your vg01.
Shut the system down, then remove the 4gb disks, add the 9gb disks and re-ignite the server with the ignite image, creating the new larger volume groups as you go. You are putting 2 new disks in aren't you? If not, you will not be able to share the new disk between the two volume groups, so one of them will be a lot smaller.

Regards,

JASH
If I can, I will!
Sivakumar TS
Honored Contributor

Re: Replacing existing hard disk in K250 server


Hi,

if the disks whcih we are planing to replace is the Root/Boot disk then then the ONLY possiblity it to do a Ignite backup and restore.

if it is data Lvols, the you can take a full backup and change the disks and do vgcfgrestore and data restore.

Regards,

Siva.
Nothing is Impossible !
Ngoh Chean Siung
Super Advisor

Re: Replacing existing hard disk in K250 server

Hi,

1 x 4GB (/dev/dsk/c0t4d0) + 1 x 9GB (/dev/dsk/c0t6d0) is vg00
1 x 4GB (/dev/dsk/c0t3d0) + 1 x 9GB (/dev/dsk/c0t5d0) is vg01

With above info, can I hv step by step with command (such as ignite backup, vg backup, some LVM commands and etc)

regards.
Bharat Katkar
Honored Contributor

Re: Replacing existing hard disk in K250 server

Hi,
For VG00 what i can think is as:

1. DO a ignite backup of your vg00.
# make_tape_recovery -ACv -d
Ensure that backup has be done successfully.

2.# vgreduce vg00


3.# vgextend vg00

Shutdown the server and boot with Ignite Tape and install it in interactive way.

You can then modify Filesystem size as well as per your requirement.


For vg01:
1. Backup all filesystems/LV's that are on (/dev/dsk/c0t3d0) then unmount those filesystems.
2. vgreduce vg01 (/dev/dsk/c0t3d0)
3. Replace your disk with new 9 GB disk.
4. vgextend vg01 (new disk name)
5. Recreate your LV's and file systems on the extended vg01

Please get the correct command syntax using man.

Hope that help.
Regards,
You need to know a lot to actually know how little you know
Darrel Louis
Honored Contributor

Re: Replacing existing hard disk in K250 server

Hi,

Extra info regarding Bharat's reply:

Read the Ignite admin guide for extra info:
http://docs.hp.com/en/oshpux11i.html#Ignite-UX

After step1:
- Make a fullbackup of the server
- Make a backup of your informix instance (offline or online)
- make a copy of the /etc/lvmconf directory and put it on a different server.

Step2 & 3:
Depends on which Filesystem is mounted on the 4 Gb disk, check with pvdisplay.
If it's a Filesystem(/opt or /usr) that can't be unmounted you can't vgreduce the VG.
If it can't be unmounted you need to halt the server, replace the 4 Gb disk with the 9Gb and then boot from Ignite tape.

GoodLuck

Darrel
Bharat Katkar
Honored Contributor

Re: Replacing existing hard disk in K250 server

Thanks darrel for those additions.
I would also like to attach the PV_LV_VG admin guide for you.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Bharat Katkar
Honored Contributor

Re: Replacing existing hard disk in K250 server

Thanks darrel for those additions.
I would also like to attach the PV_LV_VG admin guide for you.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know