1832898 Members
2367 Online
110048 Solutions
New Discussion

Re: lvreduce Filesystem

 
SOLVED
Go to solution
Ahmed_58
Regular Advisor

lvreduce Filesystem

Hi all,
It is first time for me ging to reduce a filesystem using lvreduce, and then extendfs another filesystem with JFS not instaaled. DO I have to do anything else other than unmount before that, fsadm for example?
I'll backup the filesystem before doing anything.

regards,
Ahmed
4 REPLIES 4
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: lvreduce Filesystem

Hi Ahmed,
Since you do not have OnlineJFS installed, you can not do anything else but this

Create 2 good backups!

# umount /filesystem
# lvreduce -L XX /dev/vgXX/lvolX
# newfs -F vxfs /dev/vgXX/rlvolx
( add the -o largesfiles if you need them)
# mount -a

Restore your data from your backup.

Hope this helps,
Robert-Jan
Ahmed_58
Regular Advisor

Re: lvreduce Filesystem

Robert,
Million thanks.
Regards,
Ahmed
Ahmed_58
Regular Advisor

Re: lvreduce Filesystem

Robert,
Thanks,
Ahmed
Darrel Louis
Honored Contributor

Re: lvreduce Filesystem

Hi Ahmed,

Check the man pages for all three, the man pages also give some examples.
Is this a vxfs or hfs Filesystem, is it a data mountpoint or your root filesystem?

man lvextend: Increases disk space allocated to a logical volume.
man extendfs: Extends the size of a filesystem residing on a logical volume.
man lvreduce: Decreases disk space allocated to a logical volume.

GoodLuck

Darrel