Re: resize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-l does not umount a filesystem if files are open on it.   Not sure -l
should ever be used, one needs to determine what is using the
filesystem and a normal umount needs to be done.

So even though it does not show in df and /proc/mounts the filesystem
is still mounted which is why resize2fs says it is mounted.

The lvextend output worries me since it seems to indicate it is
reducing the size, you probably should do a -l + otherwise it may want
to change the size lower, I would examine the lv and make sure it did
not get resized lower.
On Tue, Sep 18, 2018 at 9:24 AM Patrick Dupre <pdupre@xxxxxxx> wrote:
>
> I also get:
>
> Logical volume is not mounted but is in use. Please close all applications using this device (eg iscsi)
>
> How can I close all applications using the device ?
>
> ===========================================================================
>  Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>  Université du Littoral-Côte d'Opale           | |
>  Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
>  189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
> ===========================================================================
>
>
> > Sent: Tuesday, September 18, 2018 at 4:03 PM
> > From: "Patrick Dupre" <pdupre@xxxxxxx>
> > To: fedora <users@xxxxxxxxxxxxxxxxxxxxxxx>
> > Subject: resize
> >
> > Hello,
> >
> > Did I made a mistake?
> > This what did:
> >
> > umount -l /home
> >
> > lvdisplay /dev/VolGrpUsr_DK0
> > [root@Homere ~]# vgdisplay VolGrpUsr_DK0
> >   --- Volume group ---
> >   VG Name               VolGrpUsr_DK0
> >   System ID
> >   Format                lvm2
> >   Metadata Areas        1
> >   Metadata Sequence No  9
> >   VG Access             read/write
> >   VG Status             resizable
> >   MAX LV                0
> >   Cur LV                2
> >   Open LV               1
> >   Max PV                0
> >   Cur PV                1
> >   Act PV                1
> >   VG Size               45.00 GiB
> >   PE Size               2.00 MiB
> >   Total PE              23039
> >   Alloc PE / Size       20620 / 40.27 GiB
> >   Free  PE / Size       2419 / 4.72 GiB
> >   VG UUID               Im54sE-P2g0-NbYZ-bBMn-f0kX-32Fe-2eykHU
> >
> >
> > lvextend -l100%FREE /dev/VolGrpUsr_DK0/home
> > New size given (2419 extents) not larger than existing size (15500 extents)
> >
> > then
> > resize2fs /dev/VolGrpUsr_DK0/home
> > resize2fs 1.43.4 (31-Jan-2017)
> > resize2fs: Device or resource busy while trying to open /dev/VolGrpUsr_DK0/home
> > Couldn't find valid filesystem superblock.
> >
> > It seems that the extended part cannot be formatted!
> >
> > How can I solve the issue?
> > I still can mount /home
> > The partition size did not change.
> >
> > Thank for your help.
> >
> > ===========================================================================
> >  Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
> >  Laboratoire de Physico-Chimie de l'Atmosphère | |
> >  Université du Littoral-Côte d'Opale           | |
> >  Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
> >  189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
> > ===========================================================================
> > _______________________________________________
> > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> > List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
> >
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux