LVM and VxVM

Reducing vxfs file system without OnlineJFS

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Reducing vxfs file system without OnlineJFS

What steps need to be followed to the file system and Logical Volume size of a VxFS file system on a server that is not running OnlineJFS ?

Also will the data for the file system have to be restored ??
3 REPLIES 3
Pete Randall
Outstanding Contributor
Solution

Re: Reducing vxfs file system without OnlineJFS

1. Backup the data
2. Run lvreduce to shrink the logical volume
3. Run newfs to create the apprpriately sized file system
4. Restore the data


Pete

Pete
Yang Qin_1
Honored Contributor

Re: Reducing vxfs file system without OnlineJFS

Agree with Pete, just want to mention that you need to "umount" the file system if you want to reduce the size of mounted file system. Without OnlineJFS, you have to reduce the size of a file system / logical volume off line.

You may have a chance to keep the data on a shrinked logical volume but it is not guaranteed according to lvreduce manpage. So, even with OnlineJFS, always make a backup before run lvreduce.

Yang
MikeL_4
Super Advisor

Re: Reducing vxfs file system without OnlineJFS

Thanks