1753783 Members
6833 Online
108799 Solutions
New Discussion юеВ

Re: Adding Disks

 
MILAN MURALIDHARAN_1
Occasional Advisor

Adding Disks

I need to add a Hot Spare disk to an existing
and active Filesystem. What are the steps i have to go through? Thanks for your help.

 

 

P.S. This thread ahs been moevd from Disk to HP-UX > sysadmin. -Hp Frum moderator

PERSISTENCE PERFORMS
7 REPLIES 7
Vincenzo Restuccia
Honored Contributor

Re: Adding Disks

boley janowski
Trusted Contributor

Re: Adding Disks

add the disk to the server

run "ioscan" this will identify everything,

run "ioscan -funCdisk" easier to look at and get the device address, if the device address does not show up, run "insf -e" to create all the devices over again.

run "vgextend /dev/vg?? /dev/dsk/"

at this point im not sure what you want to do, assuming you want to extend a lvol
--> run "lvextend -l /dev/vg??/lvol?

or maybe you want to use this disk to mirror a volume group.
run the following:

lvextend -m 1 /dev/vg??/lvol1 /dev/dsk/
(repeat for each lvol in that vg)
at this point your done unless you want to split them off. then:

lvreduce -m 0 /dev/vg??/lvol1 /dev/dsk/
(repeat for each lvol in that vg)

you can leave them or setup to pull that disk out

after lvreduce
vgreduce /dev/vg?? /dev/dsk/

if i didn't cover something you wanted to do, let me know.

good luck!!
Dave Wherry
Esteemed Contributor

Re: Adding Disks

Could you give more information on your hardware and what you are trying to accomplish? The instructions Boley gave are correct for mirroring. However, that is not really a hot spare.
I don't know of a way to hot spare JBOD disks. As far as I know you need some type of disk array to use a hot spare. I use those in AutoRaid, Nike and XP arrays.
MILAN MURALIDHARAN_1
Occasional Advisor

Re: Adding Disks

It is a HP V-2500 server. The FS to which this needs to be added is a mirrored one. I have a pair of disks to add to this FS as a mirrored disk.
PERSISTENCE PERFORMS
Dave Wherry
Esteemed Contributor

Re: Adding Disks

Since you are just mirroring follow the instructions that Boley posted with one inclusion. Before doing the vgextend you need to create the disk. Use pvcreate:
pvcreate -f /dev/rdck/c#t#d#

This preps the disk for LVM.
Vincenzo Restuccia
Honored Contributor

Re: Adding Disks

MIrror UX (Software):
pvcreate -fB /dev/rdsk/cxtxd0

vgextend /dev/vg00 /dev/dsk/cxtxd0

mkboot -l /dev/rdsk/cxtxd0

mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtxd0

mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cytyd0

lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cxtxd0

lvlnboot -Rv /dev/vg00

setboot -a full hardware path (es:8/4.5.0)
MILAN MURALIDHARAN_1
Occasional Advisor

Re: Adding Disks

Thanks for your response guys.
Thanks a lot.
PERSISTENCE PERFORMS