HPE EVA Storage
1819950 Members
3268 Online
109607 Solutions
New Discussion юеВ

Re: How to reduce the filesystem's size online.

 
Hoang Chi Cong
Advisor

How to reduce the filesystem's size online.

Hi everybody.
Is there any way to reduce the filesystem online( that means no need to umount the filesystem)withow loss the exiting the data.
Because we can encrease the filesystem's size online ( no neet to umount the filesystem.)
Thanks.


Cong
7 REPLIES 7
Shaikh Imran
Honored Contributor

Re: How to reduce the filesystem's size online.

Hi,
If you have HP's Advance Online JFS you can do it with fsadm command.
HP's Base JFS product comes by default with
HPUX 11i but advance JFS you have to purchase the license as it's a priced product.

Regards,
I'll sleep when i am dead.
Shaikh Imran
Honored Contributor

Re: How to reduce the filesystem's size online.

Hi,
Also pls refer the following links
the same discussions are going on here:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=660297

regards,


I'll sleep when i am dead.
Michael Tully
Honored Contributor

Re: How to reduce the filesystem's size online.

You can only reduce a filesystems size with the onlineJFS product. This product is not free. By your message you have this product. What you can do is actually defragment the filesystem using 'fsadm' first. The man page gives details on how this can be achieved.
See 'fsadm_vxfs' man page
Anyone for a Mutiny ?
Alzhy
Honored Contributor

Re: How to reduce the filesystem's size online.

To reduce (assuming you have LVM as your Volume manager):

Reduce the Filesystem first :

fsadm -b nnnnM /mntpnt

Then Reduce its underlying LVOL:

lvreduce -L nnnnM /dev/vgname/lvolname

nnnn is size in Megabytes.


If using VxVM:

/etc/vx/bin/vxresize -g DGNAME VOLNAME SIZE

SIZE syntax can conventions can be:
+10g,-100g (explicit k,m,g) or blocks
Hakuna Matata.
Steven Clementi
Honored Contributor

Re: How to reduce the filesystem's size online.

Also keep in mind that it is not likely you can decrease the Logical unit size. I know the MSA and the EVA do not allow size decreases in Logical/Virtual Disks only increases. Not sure about others (XP, HDS, etc). The FastT does not allow it either (IBM's low to Mid range Storage Solution).


Steven
Steven Clementi
HP Master ASE, Storage, Servers, and Clustering
MCSE (NT 4.0, W2K, W2K3)
VCP (ESX2, Vi3, vSphere4, vSphere5, vSphere 6.x)
RHCE
NPP3 (Nutanix Platform Professional)
Hoang Chi Cong
Advisor

Re: How to reduce the filesystem's size online.

Thanks everybody.

Nelson Caparroso, I follow your suggest but can not. The message is:
fsadm: /etc/default/fs is used for determining the file system type
vxfs fsadm: /dev/vg00/rconghc is currently 1024000 sectors - size will be reduced
vxfs fsadm: allocations found in shrink range, moving data
vxfs fsadm: cannot shrink /dev/vg00/rconghc - blocks are currently in use.
I already read another suggestion but has the same result.
And in my system already buy the onlineJFS product.

Thanks a lots.
Sunil Sharma_1
Honored Contributor

Re: How to reduce the filesystem's size online.

Hi,

First amke sue you have sufficient space for data to accomdate ater shrink and the defragmant data using fsadm -e option (Extent based defragmentation) and then reduce size using fsadm -b. Please use -F vxfs with all comamnd or use fsadm_vxfs insted of fsadm.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***