Operating System - HP-UX
1833777 Members
1935 Online
110063 Solutions
New Discussion

Re: fsadm reduce filesystem size - URGENT!!

 
SOLVED
Go to solution
ISHS WC
Occasional Contributor

fsadm reduce filesystem size - URGENT!!

1. what will happen if the new size of fsadm is smaller than the data size in the filesystem?
2. If used a wrong smaller new size than the data size, can I stop the process?

Thanks!
6 REPLIES 6
Robert-Jan Goossens_1
Honored Contributor

Re: fsadm reduce filesystem size - URGENT!!

Hi,

fasdm it back to the original size and check your data. You may need to restore data from your backup, depending on how much free space you had in your filesystem.

Robert-Jan
Univer_1
Valued Contributor
Solution

Re: fsadm reduce filesystem size - URGENT!!

hi,

It just fails.

If the process run successfully, you will not lose any data.

In a jfs(vxfs) Version 3 or above disk layout, if there are file system resources in use in the sectors being removed, fsadm relocates those resources to sectors staying within the reduced file system. The time needed for relocation depends on the number of blocks being moved.

In older disk layouts, file system structural components are fixed, so reducing the size of a file system fails if there are file system resources in use in the sectors being removed.

regards

Univer
Alex Georgiev
Regular Advisor

Re: fsadm reduce filesystem size - URGENT!!

On 11i V2 with recent patches it fails right away.

On 11i (11.11) it will still fail but will take some time (a few minutes) before it errors out, and will print an obscure error message. I've actually done it twice by mistake where I left out the M at the end of the -b parameter. I've also watched several people specify the wrong size by leaving out the M parameter. In all cases fsadm left the file system in tack (did not reduce it).

Having said that... I'm sure it depends on your patch level! The more recent your patches, the better!

As far as whether you can Ctrl-C out of it... I did it on a test 11i machine after about 15 seconds of running, and fsadm left the file system in tact. Again, I'm sure it depends on your patches!
ISHS WC
Occasional Contributor

Re: fsadm reduce filesystem size - URGENT!!

Thanks for all your replys!

I got the following on screen at this moment and I think it still moving data and still have long to wait for the result since it is a large mirrored filesystem.

#bdf
/dev/vg01/lvol1 18874368 9506776 9221248 51% /u24
#fsadm -b 36864 /u24
fsadm: /etc/default/fs is used for determining the file system type
vxfs fsadm: /dev/vg01/rlvol1 is currently 18874368 sectors - size will be reduced
vxfs fsadm: allocations found in shrink range, moving data


ISHS WC
Occasional Contributor

Re: fsadm reduce filesystem size - URGENT!!

Just got it finished, it just failed and leave the file system unchanged. It got almost 4 hours to complete.

Thanks very much to all of you!
ISHS WC
Occasional Contributor

Re: fsadm reduce filesystem size - URGENT!!

Command finished without corruption.