[ale] Extend file system with -r while using lvextend command

Jim Kinney jim.kinney at gmail.com
Mon May 8 10:40:52 EDT 2017


I've used it often with ill effects. The filesystem is not unmounted. It
just changes the bits that mark the logical end of a filesystem and updates
the kernel memory of it while updating the special blocks in the filesystem
to reflect the new end point.

On May 8, 2017 10:33 AM, "Elliot Holden" <elliot at elliotmywebguy.com> wrote:

> I found out you can extend the filesystem while extending the lvm
> simultaneously. So it does not have to be in 2 separate commands. Using the
> -r option or --resizefs with lvextend will do the trick. This way you don't
> have to unmount the filesystem, extend the filesystem (with xfs_growfs) and
> then remount the filesystem. Here is the syntax.
>
> [elliot at newton ~]$ sudo lvextend -l +100%FREE -r /dev/rhel/home
>
>
> Does any see an issue with doing this type of modification while the
> filesystem is still mounted? Does anyone know if the filesystem gets
> unmounted and remounted during this command while using -r ? Just in case
> some other process is writing to the filesystem at the same time. It's been
> brought to my attention by a member of my Perl group that you could
> potentially lose data this way. So I wanted to find out if there are any
> protections going on in the background while executing this command.
>
>
> Thanks
>
>
> E.
>
> --
> Elliot Holden
> 706-231-9776
> elliot at elliotmywebguy.com
> http://www.elliotmywebguy.com
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20170508/ff00574d/attachment.html>


More information about the Ale mailing list