1752286 Members
4680 Online
108786 Solutions
New Discussion юеВ

extend the FS

 
SOLVED
Go to solution
Anjaneyulu
Frequent Advisor

extend the FS

Hi,

I want to increase the space if filesystem. How can i findout the logical volume of that perticular filesystem.

Hoe to extend the size of the filesystem.
7 REPLIES 7

Re: extend the FS

mount -p

will show you the relationship between filesystems and logical volumes, as well as telling you what tupe of filesystem you have.

How you extend depends on whether or not you have Online JFS or not. Check with:

swlist -l product | grep -i jfs

or

vxlicense -p

HTH

Duncan


I am an HPE Employee
Accept or Kudo
MarkSyder
Honored Contributor

Re: extend the FS

bdf|grep filesystem_name

The left-hand column tells you the lvol.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Johnson Punniyalingam
Honored Contributor

Re: extend the FS

Hi,

How can i findout the logical volume of that perticular filesystem.

bdf
Example:-
========
Filesystem kbytes used avail %used Mounted on
This is the Logical volune of the particular File system ---->/dev/vg00/lvol8 3145728 1892429 1175112 62% /var

>>I want to increase the space if filesystem.<<

before increase we need check cople of things
1. vgdisplay -v /dev/vgxx --> look for the free space "available in-order to extend your required logical volume residing under Volume Group

2. Need to check ONLINE - JFS installed or not.? for extending the space with-out umount
2. Do you have ONLINE JFS to increase the file system with-out umounting


>>Hoe to extend the size of the filesystem.<<

follow above steps to verfiy you are required free space / Online Jfs

1. lvextend -L /dev/vgxx/lvolx
2. fsadm -F -vxfs -b M /mount_point
If you d'not have online Jfs installed

# umount
# lvextend -L /dev/vgxx/lvolx
# extendfs -F vxfs /dev/vgxx/rlvolx
# mount /dev/vgxx/lvolxx /mount_point

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Prashanth Waugh
Esteemed Contributor

Re: extend the FS

Hi,

correction in command . here the size should be in kilobytes

fsadm -F -vxfs -b kilobytes /mount_point
Regards
Prashnat

For success, attitude is equally as important as ability
Aneesh Mohan
Honored Contributor

Re: extend the FS

Hi
>fsadm -F -vxfs -b kilobytes /mount_point

No prbs you can specify in MB also followed by "M"

#fsadm -F vxfs -b (totalsize in MB)M /mountpoint

Thanks,
Aneesh
Johnson Punniyalingam
Honored Contributor

Re: extend the FS

>>Prashant Wagh<<< :-

Just in case it helps, you can run fsadm with
-b 4096M for 4096 MB. This makes it a bit easier if you use the -L option to lvextend because the numbers are the same.

If you don't use the "M" bit in your blocksize, remeber that doing the calculation for number of blocks depends on the block size the filesystem was created with which you can determine with "mkfs" with the "-n" option.

Thanks,
Johnson



Problems are common to all, but attitude makes the difference
Suraj K Sankari
Honored Contributor
Solution

Re: extend the FS

Hi,

Before doing all this steps first check your vg is having proper Free PE then only you can extend your lv with above command.
here is the example to check space is there or not in my vg00.

monitor@testbox[/home/monitor] > /usr/sbin/vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 11
Open LV 11
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 32
Total PE 8748
Alloc PE 6876
Free PE 1872
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

This two is required
PE Size (Mbytes) 32
Free PE 1872
This means I have 32*1872=59904MB Free space so I can extend any lv up to 58.5GB under this vg00


Suraj