1838682 Members
3899 Online
110128 Solutions
New Discussion

Adding a new hard disk!

 
thanga
Occasional Advisor

Adding a new hard disk!

Hi all,

I want to add a new 16 GB hard disk to my HP-UX 10.2 (hpk 220 model) . I want to use this hard disk space to extend the logical volume of /opt and /usr . So how do I go abt it????

Thanks,

Thanga




3 REPLIES 3
MARTINACHE
Respected Contributor

Re: Adding a new hard disk!

You will certainly have a problem whith your "MAX PE PER PV" which is too small for a 16Gb disk.

I suggest you to make a vgextend whith your new disk.

Create a recovery tape (IGNITE) :
make_recovery -ACi

Boot from the tape, Ignite menu will appear.

At this point, you can make what you want. Specialy, modify the size of /opt and the MAX_PE_PER_PV value for vg00.


An other solution is to use ONLINE JFS if you bought it ...

Patrice.
Patrice MARTINACHE
Andreas Voss
Honored Contributor

Re: Adding a new hard disk!

Hi,

another way is to create a new vg and move /opt /usr to the new location:
pvcreate /dev/rdsk/cXtXd0
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0x0X0000
vgcreate vgXX /dev/dsk/cXtXd0
lvcreate -L vgXX
lvcreate -L vgXX
newfs -F vxfs /dev/vgXX/rlovl1
newfs -F vxfs /dev/vgXX/rlvol2
mkdir /newopt
mkdir /newusr
mount /dev/vgXX/lvol1 /newopt
mount /dev/vgXX/lvol2 /newusr
cd /opt
find . -depth |cpio -pmdv /newopt
cd /usr
find . -depth |cpio -pmdv /newusr
Change in /etc/fstab:
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
TO
/dev/vgXX/lvol1 /opt vxfs delaylog 0 2
/dev/vgXX/lvol2 /usr vxfs delaylog 0 2
Then reboot

Regards
Cheryl Griffin
Honored Contributor

Re: Adding a new hard disk!

Have you considered moving /opt to the new disk and using the space it used in /usr?
A reorganization of the filesystems and disks would keep you from having to recover or reinstall.
"Downtime is a Crime."