Operating System - HP-UX
1838568 Members
4945 Online
110127 Solutions
New Discussion

Re: increase file system using online jfs

 
Ng Chee Keong_1
New Member

increase file system using online jfs

Hi there,
May I know the command to increase and decrease JFS file system online. Online JFS has already being installed. Thanks!
5 REPLIES 5
Armin Feller
Honored Contributor

Re: increase file system using online jfs

Example of using extendfs
-------------------------
To increase the capacity of a file system created on a logical volume, enter:

# umount /dev/vg00/lvol1

# lvextend -L larger_size /dev/vg00/lvol1

# extendfs -F hfs /dev/vg00/rlvol1

# mount /dev/vg00/lvol1 mount_directory

Example of using fsadm
----------------------
To resize your On-Line/Advanced JFS file system:

1. If the file system is on a logical volume, then extend the
logical volume, using SAM or lvextend(1M), as in the
example above.

If the file system is not on a logical volume, then the
disk must have space available that a file system is not
already using.

2. Use fsadm(1M) with the -b option to resize the file system.

It is recommended that you perform directory and extent
re-organization (de-fragmentation) first.

For example:

A. To perform directory and extent re-organization, and view
de-fragmentation reports:

# fsadm -d -D -e -E /

where is replaced with the mountpoint of
the JFS file system.

Or, use SAM's Disks and File Systems/File Systems subarea.
Select the file system, and select Actions...VxFS Maintenance.

B. To resize the JFS file system:

# fsadm -b /

where is replaced with the mountpoint of
the JFS file system, and is the desired new size of
the JFS file system.

The fsadm utility will resize the file system whose mount point is
. If is larger than the current size of
the file system, the file system will be expanded to
sectors. Similarly, if is smaller than the current size
of the file system, an attempt will be made to shrink the file
system to sectors.
Patrick Wallek
Honored Contributor

Re: increase file system using online jfs

You can increase either through SAM or by command line with 'lvextend' and 'fsadm' commands.
Armin Feller
Honored Contributor

Re: increase file system using online jfs

1. Increasing an HP OnlineJFS File System

Extend the logical volume e.g. /dev/vg01/lvol5 to the needed size:

# lvextend -L [lv_size_MB] /dev/vg01/lvol5

Extend the JFS file system online:

# fsadm -F vxfs -b [lv_size_MB]M /mountdirectory

NOTE: You need to add M directly to the lv_size_MB.

Check the size of the increased file system:

# bdf



2. Reducing an HP OnlineJFS File System

Reorganize directories/file extents:

# fsadm -F vxfs -d -D -e -E /mountdirectory

Reduce the JFS file system online:

# fsadm -F vxfs -b [lv_size_MB]M /mountdirectory

NOTE: You need to add M directly to the lv_size_MB.

Reduce the logical volume to the needed size:

# lvreduce -L [lv_size_MB] /dev/vg01/lvol5

Check the size of the reduced file system:

# bdf
Trond Haugen
Honored Contributor

Re: increase file system using online jfs

In addition to what's already mentioned also note that you must increase the filesystem beore it grows to 100% as increasing it requiers some space IN the filesystem BEFORE it is bigger.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Pete Randall
Outstanding Contributor

Re: increase file system using online jfs

fsadm -F vxfs -b


Pete

Pete