1833845 Members
2101 Online
110063 Solutions
New Discussion

Re: fsadm option

 
Lorenzo Facello
Valued Contributor

fsadm option

with onlineJFS I have to enlarge the filesystem /xxx
I know that the command is fsadm -options /mountpoint

But at the creation I used the option -c to specify contiguos PE.
Do you know some way to cancel the -c option?
Thanks
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: fsadm option

Hi:

You can use 'lvchange -C n' to change the contiguous allocation policy.

Regards!

...JRF...
Jeff Schussele
Honored Contributor

Re: fsadm option

Hi Lorenzo,

That is an LV policy.

Not sure if it can be done, but try

lvchange -C n /dev/vg_name/lv_name

Note that's a Cap C. Lower case c is mirror consistency.
May not be able to do this - not sure because I've never tried. I KNOW you can't change root, swap or dump. But you *might* be able to change a "normal" LV.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Stuart Abramson_2
Honored Contributor

Re: fsadm option

To extend the filesystem on the fly, (let's say /opt):

a. Must be type "vxfs" in /etc/fstab:

/dev/vg00/lvol4 /opt vxfs delaylog 0 2

b. How big is it now:

cd /opt
bdf .
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 2048000 2025496 22504 99% /opt

c. How big do we want it?

2 GB -> 2.5 GB

d. Must have sufficient space on Volume Group:

vgdisplay vg00

--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 14
Open LV 14
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4005
VGDA 2
PE Size (Mbytes) 4 <--
Total PE 4005 |
Alloc PE 2169 | 4 x 1836 = 7.3 GB
Free PE 1836 <--
Total PVG 0


e. What does the LV look like?

lvdisplay /dev/vg00/lvol4

--- Logical volumes ---
LV Name /dev/vg00/lvol4
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 2000
Current LE 500
Allocated PE 500
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


4. EXTEND THE LOGICAL VOLUME

lvextend -L 2500 /dev/vg00/lvol4
^
|-- lv_size

5. EXTEND THE FILE SYSTEM

a. Calculate the for the fsadm command:

fsadm -b /opt

b. is new number of "blocks" required:

newsize = lv_size x 1024

2500 x 1024 = 2560000


c. fsadm -b 2560000 /opt

Or:

d. fsadm -b 2500m /opt