cancel
Showing results for 
Search instead for 
Did you mean: 

Extending FS in rootvg

 
SOLVED
Go to solution
kunjuttan
Super Advisor

Extending FS in rootvg

Hi All,
I am having an ia64 hp rx2620 Server with os HP-UX 11.23.It is having 2*300GB hdds.Around 80GB free PE's are available. Rootvg is not mirrored.I want to extend some of the file systems in rootvg such as /tmp,/opt, and /sapmnt/DBI.
Can anybody suggest how to get this done??
20 REPLIES 20
johnsonpk
Honored Contributor

Re: Extending FS in rootvg


Hi ,

find out LV name from bdf output for /tmp , /opt and /sapmnt/DBI and extend it your desired size with lvextend -L

check whether you have online JFS installed ?
if yes ,

extend it with fsadm comand

if no , you need to unmount the filesystem and then extend it

regards!
johnson
johnsonpk
Honored Contributor

Re: Extending FS in rootvg

if you are looking for exact steps , here you go ,

to find out online jfs installed or not

#swlist -l product |grep -i online

nad look for online jfs

extend fs using fsadm

#fsadm -F vxfs -b M

eg ;
# fsadm -F vxfs -b 1024M /tmp

(the aboce command will increase /tmp to 1GB online>

regards!
johnson
kunjuttan
Super Advisor

Re: Extending FS in rootvg

no boss...I know the steps.. but am bit doubtful abt which u told...because
1)this is an itanium server- i think steps are somewht different from RISC type
2)need to extend the rootvg -- Extending rootvg is not like extending normal vg's..
johnsonpk
Honored Contributor

Re: Extending FS in rootvg


>>It is having 2*300GB hdds.Around 80GB free PE's are available

I guess 80GB is available on vg00 and currently you have only one disk in the vg00,

>>1)this is an itanium server- i think steps are somewht different from RISC type

except root vg mirroring , all vg operations are extactly same as PARISC..

2)need to extend the rootvg -- Extending rootvg is not like extending normal vg's..
Why you need to extend rootvg? as per your post , you have 80Gb free space on the vg00

regards!
johnson
kunjuttan
Super Advisor

Re: Extending FS in rootvg

Folowing is my vgdisplay output..pls suggest??
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 16
Open LV 16
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4465
VGDA 2
PE Size (Mbytes) 64
Total PE 4455
Alloc PE 3146
Free PE 1309
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

And how to do rootvg mirroring in Itanium server???
johnsonpk
Honored Contributor

Re: Extending FS in rootvg


yes, you are good to go for extending those Filesystems,(you have 80 GB free space on vg00)

check for online jfs to follow online extending steps ..


regarding mirroring root vg in IPF
see page 50 on http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf

regards!
Johnson
P Arumugavel
Respected Contributor

Re: Extending FS in rootvg

Root Disk Mirroring in IPF system:

For this example, the disk to be added is at hardware path 0/1/1/0.0x1.0x0, with device pecial files named /dev/disk/disk2 and /dev/rdisk/disk2.

1.Partition the disk using the idisk command and a partition description file.
1.Create a partition description file. For example:
# vi /tmp/idf
In this example, the partition description file contains:
3
EFI 500MB
HPUX 100%
HPSP 400MB
NOTE: The values in the example represent a boot disk with three partitions:
an EFI partition, an HP-UX partition, and an HPSP. Boot disks of earlier HP
Integrity servers might have an EFI partition of only 100 MB and might not
contain the HPSP partition.

2.Partition the disk using idisk and your partition description file:
# idisk -f /tmp/idf -w /dev/rdisk/disk2

3.To verify that your partitions are correctly laid out, run:
# idisk /dev/rdisk/disk2

4.Use the insf command with the -e option to create the device files for all the partitions.
For example:
# insf -e -H 0/1/1/0.0x1.0x0

You should now have the following device files for this disk:
/dev/[r]disk/disk2 (this refers to the entire disk) /dev/[r]disk/disk2_p1(this refers to the efi partition) /dev/[r]disk/disk2_p2(this will be the hp-ux partition) /dev/[r]disk/disk2_p3(this refers to the service partition)

5.Create a physical volume using pvcreate with the -B option. Be sure to use the device file
denoting the HPUX partition.
# pvcreate -B /dev/rdisk/disk2_p2

6.Add the physical volume to your existing root volume group using vgextend:
# vgextend vg00 /dev/disk/disk2_p2

7.Use the mkboot command to set up the boot area. Specify the -e and -l options to copy
EFI utilities to the EFI partition, and use the device special file for the entire disk:
# mkboot -e -l /dev/rdisk/disk2

8.Use the mkboot command to add an autoboot file to the disk boot area. If you expect to
boot from this disk only when you lose quorum, you can use the alternate string â hpux â lqâ to
disable quorum checking:
# mkboot -a "hpux" /dev/rdisk/disk2

9.Use the lvextend command to mirror each logical volume in vg00 (the root volume group) onto the specified physical volume. The logical volumes must be extended in the same order that they are configured on the original boot disk. Use the pvdisplay command with the -v option to determine the list of logical volumes and their order. For example:
# pvdisplay -v /dev/disk/disk0_p2 | grep 'current.*0000 $' 00000 current /dev/vg00/lvol1 00000 00010 current /dev/vg00/lvol2 00000 00138 current /dev/vg00/lvol3 00000 00151 current /dev/vg00/lvol4 00000 00158 current /dev/vg00/lvol5 00000 00159 current /dev/vg00/lvol6 00000 00271 current /dev/vg00/lvol7 00000 00408 current /dev/vg00/lvol8 00000
In this example, mirror the logical volumes as follows:
# lvextend â m 1 /dev/vg00/lvol1 /dev/disk/disk2_p2
The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....
#lvextend â m 1 /dev/vg00/lvol2 /dev/disk/disk2_p2
The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....
# lvextend â m 1 /dev/vg00/lvol3 /dev/disk/disk2_p2
The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....
# lvextend â m 1 /dev/vg00/lvol4 /dev/disk/disk2_p2
The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....
# lvextend â m 1 /dev/vg00/lvol5 /dev/disk/disk2_p2
The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....
# lvextend â m 1 /dev/vg00/lvol6 /dev/disk/disk2_p2
The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....
# lvextend â m 1 /dev/vg00/lvol7 /dev/disk/disk2_p2
The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....
# lvextend â m 1 /dev/vg00/lvol8 /dev/disk/disk2_p2
The newly allocated mirrors are now being synchronized. This operation will take some time. Please wait ....

NOTE: If lvextend fails with following message:
m: illegal option
then HP MirrorDisk/UX is not installed.

10.Update the root/dump/boot volume group information:
# lvlnboot -r /dev/vg00
# lvlnboot -s /dev/vg00
# lvlnboot -d /dev/vg00
# lvlnboot -b /dev/vg00

11.Verify that the mirrored disk is displayed as a boot disk and that the boot, root, and swap logical volumes appear to be on both disks:
# lvlnboot -v /dev/vg00

12.Specify the mirror disk as the alternate boot path in nonvolatile memory:
# setboot â a 0/1/1/0.0x1.0x0

13.Add a line to /stand/bootconf for the new boot disk using vi or another text editor:
# vi /stand/bootconf
/dev/disk/disk2_p2


Rgds...
kunjuttan
Super Advisor

Re: Extending FS in rootvg

My Server is not having HP MirrorDisk/UX installed..From whr I can get the HP MirrorDisk/UX for mirroring??
johnsonpk
Honored Contributor

Re: Extending FS in rootvg