Operating System - HP-UX
1832576 Members
3993 Online
110043 Solutions
New Discussion

Re: Extending mount point

 
SOLVED
Go to solution
OFC_EDM
Respected Contributor

Extending mount point

I want to extend my /patch mount point which is in vg0c. All disk in vg0c is to be assigned to this mount point.

But I noticed 741 Free PE on the last disk in the group. See below.

So I used the following command to try and extend the mount point.

fsadm -F vxfs -b 104988672 /patch

It didn't work. Am I using the correct command?
For the sectors a I calculated as follows:
PE size (32) x # of PE's 3204 * 1024 = 104988672

Cheers
(P.S. Online JFS is on the system)

--- Volume groups --
VG Name /dev/vg0c
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 1068
VGDA 6
PE Size (Mbytes) 32
Total PE 3204
Alloc PE 2463
Free PE 741
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg0c/lvol1
LV Status available/syncd
LV Size (Mbytes) 78816
Current LE 2463
Allocated PE 2463
Used PV 3


--- Physical volumes ---
PV Name /dev/dsk/c8t2d7
PV Name /dev/dsk/c9t2d7 Alternate Link
PV Status available
Total PE 1068
Free PE 0
Autoswitch On

PV Name /dev/dsk/c9t3d0
PV Name /dev/dsk/c8t3d0 Alternate Link
PV Status available
Total PE 1068
Free PE 0
Autoswitch On

PV Name /dev/dsk/c8t3d1
PV Name /dev/dsk/c9t3d1 Alternate Link
PV Status available
Total PE 1068
Free PE 741
Autoswitch On
The Devil is in the detail.
7 REPLIES 7
Doug O'Leary
Honored Contributor
Solution

Re: Extending mount point

Hey;

First, you need to extend the logical volume via lvextend

lvextend -l ${total_num_extents} ${lv}
fsadm -F vxfs -b ${new_size_in_k} ${mount_point}

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
A. Clay Stephenson
Acclaimed Contributor

Re: Extending mount point

You must first run lvextend to "grow" the logical volume before doing the fsadm -b on the filesystem.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Extending mount point

You must first run lvextend to "grow" the logical volume before doing the fsadm -b on the filesystem. Man lvextend for details.
If it ain't broke, I can fix that.
Sandman!
Honored Contributor

Re: Extending mount point

Did you extend lvol1 using lvextend first and then fsadm'ed it?

# lvextend -L 102528 /dev/vg0c/lvol1

# fsadm -F vxfs -b 104988672 /patch

cheers!
erics_1
Honored Contributor

Re: Extending mount point

Extend the lvol first...then the FS. I prefer the 'm' option with fsadm to specify the filesystem size in megabytes. May help in not second guessing yourself.

fsadm -F vxfs -b 102528m /patch

Regards,
Eric
OFC_EDM
Respected Contributor

Re: Extending mount point

Thanks I needed that kick in the pants.
The obvious was escaping me today.

This is what I did.
lvextend -l 3204 /dev/vg0c/lvol1
fsadm -F vxfs -b 104988672 /patch

I prefer to calculate the sectors be cause using the "m" option to specify megabytes always seems to waste a little space.

I'll assign points right away.
The Devil is in the detail.
OFC_EDM
Respected Contributor

Re: Extending mount point

-
The Devil is in the detail.