Operating System - HP-UX
1833184 Members
3188 Online
110051 Solutions
New Discussion

Reducing F/S using Online JFS version2

 
SOLVED
Go to solution
Kevin Lamb
Frequent Advisor

Reducing F/S using Online JFS version2

I have a HPUX 10.20 file sytem that requires reducing (so I can use the extents elsewhere) I know how to do this with standard LVM commands but this entails unmounting the directory (need to keep on line if possible)

We are using Online JFS version 2 and I believe that the disk layout is level3, can I use fsadm_vxfs commands to reduce the filesystem without causing filesystem corruption, or would I be better off backing up the data and unmounting the filesystem, then lvreducing, recreating the filesystem and restoring the data.

Any assistance would be helpful as I have only used Online JFS twice in my sysad time.

Cheers,

Kev


2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Reducing F/S using Online JFS version2

It's better to backup the file system as a precautionary measure always. You should have unused extents available at the end for you to
perform this operation.

#fsadm -b size_in_KB /your_filesystem

size_in_KB=your_newsize_inMB*1024

Once this is successful you can
do

lvreduce -L size_in_MB /dev/vgxx/your_lvol

If fsadm fails, you may try to do a defragmentation
using

fsadm -d -D -e -E /your_filesystem

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
linuxfan
Honored Contributor

Re: Reducing F/S using Online JFS version2

Hi Kevin,


Though the Online JFS version 2 supported reducing the filesystem while they were mounted, there have been cases where the data got corrupted but that seems to have changed with the new version of Online JFS ver 3.3

I would strongly recommend backing up your data before trying either option.

-Ramesh
They think they know but don't. At least I know I don't know - Socrates