Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help on fsdam

Status
Not open for further replies.

uadmin

Technical User
Jun 13, 2001
122
GB
Hi
I am trying to exend a volume using fsadm and can not get what block size i require.
I have done a lvextend -L 300 /dev/vg00/lvol8
now i need to run fsadm -F vxfs -b < block size > /dev/vg00/rlvol8.

if i look at a lvdisplay i get the following :--- Logical volumes ---
LV Name /dev/vg00/lvol8
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1012
Current LE 253
Allocated PE 253
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t6d0 253 253

Can you please tell me where i get the current size from so i can * new size.

Thanks
Simon
Simon Peter Wickham
Email: s.wickham@zoom.co.uk
 
Your LV is currently 1012 MB (253 LE/PE * 4 MB per extent)

By running lvextend -L 300 /dev/vg00/lvol8, you are trying to extend the LV to 300MB which is smaller than it's current size of 1012MB. You should have got an error message like the following
lvextend: &quot;LogicalExtentsNumber&quot; is not bigger than current setting.

 
Since you are using fsadm then it meanshave online jfs install and you are trying to extend your filesystem online.

if /dev/vg00/lvol8 mount to /home
lvextend -L 300 /dev/vg00/lvol8
fsadm -b 300M /home

This should work for you.
 
I'm not sure you can use -b 300M with fsadm, as -b means the number of 1kB sectors (in this case 300*1024=307200). I'm sure that
#fsadm -b 307200 /home
will work.
 
thanks for the help.
it has now worked . Simon Peter Wickham
Email: s.wickham@zoom.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top