1827304 Members
2323 Online
109961 Solutions
New Discussion

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

P Arumugavel
Respected Contributor
Deepankar Panda
Advisor

Re: Extending FS in rootvg

Sorry...
But i believe, You know the steps.. which you can do by obeserving the docs... but one thing I want to say.. Rootvg is not mirrored...this the center of attraction in your post.. A good Admin always..should do it.. And i believe you want to be.. anyways.. the above posts by my friends will help you.. please dont get confused in between PA-RISK and Itanium... the pocedure might be diifferent for mirroring but the extension of file systems are pretty similar... So it would be done with fsadm -F -b .. , its for vxfs... make sure if you are looking for large files then you have to add -o largefiles along with the command...but for hfs it is different.. so depending on each requirement you have to analysize.. hope this helps..thanks
Abid Iqbal
Regular Advisor

Re: Extending FS in rootvg

Backup data on these mounts.
Reboot system in single user mode.
Extend lv and extend file system using extendfs.
if you need step by step guidance pls let me know.
kunjuttan
Super Advisor

Re: Extending FS in rootvg

If you can provide step by step guidance,it will be very helpful..
Abid Iqbal
Regular Advisor

Re: Extending FS in rootvg

Ok, Pls provide the output of below.
#vgdisplay -v vg00
#bdf
and the size (in GB) to be extended on /opt and /tmp.
kunjuttan
Super Advisor

Re: Extending FS in rootvg

dev/vg00/lvol6 2097152 1890928 204768 90% /tmp
/dev/vg00/lvol4 2097152 1803720 291200 86% /home

vgdisplay output is--
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 13
Open LV 13
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4356
VGDA 2
PE Size (Mbytes) 32
Total PE 4346
Alloc PE 2835
Free PE 1511
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


/dev/vg00/lvol4 7274496 6835232 435840 94% /opt

vgdisplay output is--
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 15
Open LV 15
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 3215
Free PE 1240
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
johnsonpk
Honored Contributor

Re: Extending FS in rootvg

do you have onlineJFS ??

check swlist -l product |grep -i online

if it is there , you can do it online otherwise need downtime as you need to unmount /home and /tmp for extending
Abid Iqbal
Regular Advisor

Re: Extending FS in rootvg

Please capture the said output in a text file as i required in my previous reply.
And also clearly mention the size to be extended.
kunjuttan
Super Advisor

Re: Extending FS in rootvg

Onlinejfs is not there.But I am very clear about extending normal VGs and FS.But here the case is rootvg and /opt,/tmp filesystems.And moreover its a RX series Server.Because of all these reasons,I am asking for the clarifications....
Abid Iqbal
Regular Advisor

Re: Extending FS in rootvg

I think i am not clear yet.
I need the full output of commands
# vgdisplay -v vg00
# bdf
and the the new size of the file system.
Please be precise.
johnsonpk
Honored Contributor
Solution

Re: Extending FS in rootvg

>>I am very clear about extending normal VGs and FS.But here the case is rootvg and /opt,/tmp filesystems.And moreover its a RX series Server.Because of all these reasons,I am asking for the clarifications....

1)take proper down time for the server as /tmp/ opt/ may be used by your application/DB

2)shutdown your server and boot into single user mode

3)mount /usr (/stand , / should be mounted by default)

4) extend the lv corresponding to /opt /tmp to desired size by lvextend command

5) extend fs by extendfs command

6) mount /opt/and /tmp abnd verfy the new size
7) reboot


the above steps will apply for both PA and IA server

regards!
johnson