Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running Red Hat 7.1 enterprise where I have a lvm volume for "/" with a xfs filesystem. With an ext2 file system I would use lvextend on the lvm volume then use e2fsck -f on the
lvm volume then resize2fs. What do you use with the xfs lvm volume? What do I use to replace e2fsck and resize2fs?
If you use the --resizefs parameter, then after the volume has been extended, it will extend the file system for you.
Same parameter on lvreduce works.
I am finding information on commands but little information on the process. Found xfs_growfs and this worked after I preformed a lvextend. Obvious now but a documented process would help. If anyone can provide a link I would appreciate it very much. Some things I still find that are not clear to me about this process. With an ext type LVM volume I would execute lvextend, e2fsck -f and then resize2fs against the lvm volume. Is there something else that needs to be executed or does the xfs_growfs do both of the later executed commands; (e2fsck & resize2fs)? Is there a way to check the xfs filesystem while mounted. xfs_check is not a command on Red Hat 7.1 enterprise and xfs_repair -n will not work on a mounted filesystem. I tried xfs_info and it is unclear to me if it will report and flag errors.
An overall introduction to LVM can be found in an excellent magazine (Full Circle) - see back issue 80, choose your preferred language at http://fullcirclemagazine.org/issue-80/
The part relevant to LVM is on pages 12 - 18.
RHEL has excellent doco - go there and download the LVM Admin Guide and the Storage Admin Guide. The latter covers xfs expanding and checking.
I only rarely use xfs - has too many limitations in setups that aren't massively scaled.
The xfs_repair states that the lvm volume is required to be unmounted to be repaired. I was disappointed when xfs_repair -n would not check a mounted lvm volume. Unfortunately I have not found any utility that would check a mounted xfs lvm volume.
I appreciate all the pointers to understanding LVM and file systems. Lot of good information and I may have missed something. I would appreciate a confirmation to confirm that checking can not be performed on a mounted xfs lvm volume or proven wrong that a xfs lvm volume can be check on a xfs lvm volume. Thank everyone.
The xfs_repair states that the lvm volume is required to be unmounted to be repaired. I was disappointed when xfs_repair -n would not check a mounted lvm volume. Unfortunately I have not found any utility that would check a mounted xfs lvm volume.
I appreciate all the pointers to understanding LVM and file systems. Lot of good information and I may have missed something. I would appreciate a confirmation to confirm that checking can not be performed on a mounted xfs lvm volume or proven wrong that a xfs lvm volume can be check on a xfs lvm volume. Thank everyone.
Just signed on to confirm that you CAN resize an XFS Logical Volume while it is mounted. Just like you could before on ext2/3/4.
The command is "xfs_growfs /dev/volume_group_name/lv_name". Just tested and verified it on Cent OS 7.1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.