resize

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

resize

Patrick Dupre-4
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: [hidden email]
 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 -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...
Reply | Threaded
Open this post in threaded view
|

Re: resize

Patrick Dupre-4
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: [hidden email]
 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" <[hidden email]>
> To: fedora <[hidden email]>
> 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: [hidden email]
>  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 -- [hidden email]
> To unsubscribe send an email to [hidden email]
> 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@...
>
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...
Reply | Threaded
Open this post in threaded view
|

Re: resize

Michael Cronenworth
In reply to this post by Patrick Dupre-4
On 9/18/18 9:03 AM, Patrick Dupre wrote:
> New size given (2419 extents) not larger than existing size (15500 extents)

This is an important error message. It means the resize operation was not performed
due to the parameters you specified.

I think what you meant to run was with a '+' sign to indicate you want to allocate more.

lvextend -l+100%FREE /dev/VolGrpUsr_DK0/home


Without the '+' sign the command was trying to resize to the number of free extents (2419). Be careful to make sure your command arguments are correct. Incorrectly resizing a filesystem could cause you to lose your data. Do you have backups of your /home data?
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...
Reply | Threaded
Open this post in threaded view
|

Re: resize

Roger Heflin
In reply to this post by Patrick Dupre-4
-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 <[hidden email]> 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: [hidden email]
>  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" <[hidden email]>
> > To: fedora <[hidden email]>
> > 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: [hidden email]
> >  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 -- [hidden email]
> > To unsubscribe send an email to [hidden email]
> > 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@...
> >
> _______________________________________________
> users mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]
> 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@...
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...
Reply | Threaded
Open this post in threaded view
|

Re: resize

Patrick Dupre-4
In reply to this post by Michael Cronenworth
I am not sure about the +100.

However, I rebooted without mounting /home
and I used lvm manager to do the resize.

It seems OK, except that
1) it shows "none" for the file system (lvm manager)
2) the size shown by lvm manager is 35 Go

lvdisplay:
  LV Path                /dev/VolGrpUsr_DK0/home
  LV Name                home
  VG Name                VolGrpUsr_DK0
  LV UUID                c1ldKF-UhPF-ctLD-Gc4e-qiOS-hp1v-GYWAJ8
  LV Write Access        read/write
  LV Creation host, time localhost, 2013-03-01 23:59:33 +0100
  LV Status              available
  # open                 0
  LV Size                35.00 GiB
  Current LE             17919
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:9

and
fsck /dev/VolGrpUsr_DK0/home
fsck from util-linux 2.30.2
e2fsck 1.43.4 (31-Jan-2017)
/dev/mapper/VolGrpUsr_DK0-home: clean, 113656/1984512 files, 13995312/15872000 blocks

but
mount /home
shows a wrong size:
/dev/mapper/VolGrpUsr_DK0-home       31177950 27424574   2157984  93% /home

ie the old size.

How can I fix this issue ?

Thank.

===========================================================================
 Patrick DUPRÉ                                 | | email: [hidden email]
 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:40 PM
> From: "Michael Cronenworth" <[hidden email]>
> To: [hidden email]
> Subject: Re: resize
>
> On 9/18/18 9:03 AM, Patrick Dupre wrote:
> > New size given (2419 extents) not larger than existing size (15500 extents)
>
> This is an important error message. It means the resize operation was not performed
> due to the parameters you specified.
>
> I think what you meant to run was with a '+' sign to indicate you want to allocate more.
>
> lvextend -l+100%FREE /dev/VolGrpUsr_DK0/home
>
>
> Without the '+' sign the command was trying to resize to the number of free extents (2419). Be careful to make sure your command arguments are correct. Incorrectly resizing a filesystem could cause you to lose your data. Do you have backups of your /home data?
> _______________________________________________
> users mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]
> 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@...
>
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...
Reply | Threaded
Open this post in threaded view
|

Re: resize

Roger Heflin
Did you rerun the resize2fs after the reboot/lvmresize/fsck?
On Tue, Sep 18, 2018 at 10:03 AM Patrick Dupre <[hidden email]> wrote:

>
> I am not sure about the +100.
>
> However, I rebooted without mounting /home
> and I used lvm manager to do the resize.
>
> It seems OK, except that
> 1) it shows "none" for the file system (lvm manager)
> 2) the size shown by lvm manager is 35 Go
>
> lvdisplay:
>   LV Path                /dev/VolGrpUsr_DK0/home
>   LV Name                home
>   VG Name                VolGrpUsr_DK0
>   LV UUID                c1ldKF-UhPF-ctLD-Gc4e-qiOS-hp1v-GYWAJ8
>   LV Write Access        read/write
>   LV Creation host, time localhost, 2013-03-01 23:59:33 +0100
>   LV Status              available
>   # open                 0
>   LV Size                35.00 GiB
>   Current LE             17919
>   Segments               2
>   Allocation             inherit
>   Read ahead sectors     auto
>   - currently set to     256
>   Block device           253:9
>
> and
> fsck /dev/VolGrpUsr_DK0/home
> fsck from util-linux 2.30.2
> e2fsck 1.43.4 (31-Jan-2017)
> /dev/mapper/VolGrpUsr_DK0-home: clean, 113656/1984512 files, 13995312/15872000 blocks
>
> but
> mount /home
> shows a wrong size:
> /dev/mapper/VolGrpUsr_DK0-home       31177950 27424574   2157984  93% /home
>
> ie the old size.
>
> How can I fix this issue ?
>
> Thank.
>
> ===========================================================================
>  Patrick DUPRÉ                                 | | email: [hidden email]
>  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:40 PM
> > From: "Michael Cronenworth" <[hidden email]>
> > To: [hidden email]
> > Subject: Re: resize
> >
> > On 9/18/18 9:03 AM, Patrick Dupre wrote:
> > > New size given (2419 extents) not larger than existing size (15500 extents)
> >
> > This is an important error message. It means the resize operation was not performed
> > due to the parameters you specified.
> >
> > I think what you meant to run was with a '+' sign to indicate you want to allocate more.
> >
> > lvextend -l+100%FREE /dev/VolGrpUsr_DK0/home
> >
> >
> > Without the '+' sign the command was trying to resize to the number of free extents (2419). Be careful to make sure your command arguments are correct. Incorrectly resizing a filesystem could cause you to lose your data. Do you have backups of your /home data?
> > _______________________________________________
> > users mailing list -- [hidden email]
> > To unsubscribe send an email to [hidden email]
> > 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@...
> >
> _______________________________________________
> users mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]
> 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@...
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...
Reply | Threaded
Open this post in threaded view
|

Re: resize

Patrick Dupre-4
It seems fixed by running a couple of times fsck -f and resize2fs.

Nov, only the lvm manager shows a filesystem "none" (no file system)!
I going to reboot.

===========================================================================
 Patrick DUPRÉ                                 | | email: [hidden email]
 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 5:16 PM
> From: "Roger Heflin" <[hidden email]>
> To: "Community support for Fedora users" <[hidden email]>
> Subject: Re: resize
>
> Did you rerun the resize2fs after the reboot/lvmresize/fsck?
> On Tue, Sep 18, 2018 at 10:03 AM Patrick Dupre <[hidden email]> wrote:
> >
> > I am not sure about the +100.
> >
> > However, I rebooted without mounting /home
> > and I used lvm manager to do the resize.
> >
> > It seems OK, except that
> > 1) it shows "none" for the file system (lvm manager)
> > 2) the size shown by lvm manager is 35 Go
> >
> > lvdisplay:
> >   LV Path                /dev/VolGrpUsr_DK0/home
> >   LV Name                home
> >   VG Name                VolGrpUsr_DK0
> >   LV UUID                c1ldKF-UhPF-ctLD-Gc4e-qiOS-hp1v-GYWAJ8
> >   LV Write Access        read/write
> >   LV Creation host, time localhost, 2013-03-01 23:59:33 +0100
> >   LV Status              available
> >   # open                 0
> >   LV Size                35.00 GiB
> >   Current LE             17919
> >   Segments               2
> >   Allocation             inherit
> >   Read ahead sectors     auto
> >   - currently set to     256
> >   Block device           253:9
> >
> > and
> > fsck /dev/VolGrpUsr_DK0/home
> > fsck from util-linux 2.30.2
> > e2fsck 1.43.4 (31-Jan-2017)
> > /dev/mapper/VolGrpUsr_DK0-home: clean, 113656/1984512 files, 13995312/15872000 blocks
> >
> > but
> > mount /home
> > shows a wrong size:
> > /dev/mapper/VolGrpUsr_DK0-home       31177950 27424574   2157984  93% /home
> >
> > ie the old size.
> >
> > How can I fix this issue ?
> >
> > Thank.
> >
> > ===========================================================================
> >  Patrick DUPRÉ                                 | | email: [hidden email]
> >  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:40 PM
> > > From: "Michael Cronenworth" <[hidden email]>
> > > To: [hidden email]
> > > Subject: Re: resize
> > >
> > > On 9/18/18 9:03 AM, Patrick Dupre wrote:
> > > > New size given (2419 extents) not larger than existing size (15500 extents)
> > >
> > > This is an important error message. It means the resize operation was not performed
> > > due to the parameters you specified.
> > >
> > > I think what you meant to run was with a '+' sign to indicate you want to allocate more.
> > >
> > > lvextend -l+100%FREE /dev/VolGrpUsr_DK0/home
> > >
> > >
> > > Without the '+' sign the command was trying to resize to the number of free extents (2419). Be careful to make sure your command arguments are correct. Incorrectly resizing a filesystem could cause you to lose your data. Do you have backups of your /home data?
> > > _______________________________________________
> > > users mailing list -- [hidden email]
> > > To unsubscribe send an email to [hidden email]
> > > 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@...
> > >
> > _______________________________________________
> > users mailing list -- [hidden email]
> > To unsubscribe send an email to [hidden email]
> > 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@...
> _______________________________________________
> users mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]
> 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@...
>
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...
Reply | Threaded
Open this post in threaded view
|

Re: resize

François Patte
In reply to this post by Patrick Dupre-4
Le 18/09/2018 à 16:24, Patrick Dupre a écrit :
> 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 ?

lsof | grep /home

--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: resize

Patrick Dupre-4
In reply to this post by Patrick Dupre-4
Every thing is fine after a reboot.

Thank for the suggestions

===========================================================================
 Patrick DUPRÉ                                 | | email: [hidden email]
 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 5:02 PM
> From: "Patrick Dupre" <[hidden email]>
> To: [hidden email]
> Cc: [hidden email]
> Subject: Re: resize
>
> I am not sure about the +100.
>
> However, I rebooted without mounting /home
> and I used lvm manager to do the resize.
>
> It seems OK, except that
> 1) it shows "none" for the file system (lvm manager)
> 2) the size shown by lvm manager is 35 Go
>
> lvdisplay:
>   LV Path                /dev/VolGrpUsr_DK0/home
>   LV Name                home
>   VG Name                VolGrpUsr_DK0
>   LV UUID                c1ldKF-UhPF-ctLD-Gc4e-qiOS-hp1v-GYWAJ8
>   LV Write Access        read/write
>   LV Creation host, time localhost, 2013-03-01 23:59:33 +0100
>   LV Status              available
>   # open                 0
>   LV Size                35.00 GiB
>   Current LE             17919
>   Segments               2
>   Allocation             inherit
>   Read ahead sectors     auto
>   - currently set to     256
>   Block device           253:9
>
> and
> fsck /dev/VolGrpUsr_DK0/home
> fsck from util-linux 2.30.2
> e2fsck 1.43.4 (31-Jan-2017)
> /dev/mapper/VolGrpUsr_DK0-home: clean, 113656/1984512 files, 13995312/15872000 blocks
>
> but
> mount /home
> shows a wrong size:
> /dev/mapper/VolGrpUsr_DK0-home       31177950 27424574   2157984  93% /home
>
> ie the old size.
>
> How can I fix this issue ?
>
> Thank.
>
> ===========================================================================
>  Patrick DUPRÉ                                 | | email: [hidden email]
>  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:40 PM
> > From: "Michael Cronenworth" <[hidden email]>
> > To: [hidden email]
> > Subject: Re: resize
> >
> > On 9/18/18 9:03 AM, Patrick Dupre wrote:
> > > New size given (2419 extents) not larger than existing size (15500 extents)
> >
> > This is an important error message. It means the resize operation was not performed
> > due to the parameters you specified.
> >
> > I think what you meant to run was with a '+' sign to indicate you want to allocate more.
> >
> > lvextend -l+100%FREE /dev/VolGrpUsr_DK0/home
> >
> >
> > Without the '+' sign the command was trying to resize to the number of free extents (2419). Be careful to make sure your command arguments are correct. Incorrectly resizing a filesystem could cause you to lose your data. Do you have backups of your /home data?
> > _______________________________________________
> > users mailing list -- [hidden email]
> > To unsubscribe send an email to [hidden email]
> > 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@...
> >
> _______________________________________________
> users mailing list -- [hidden email]
> To unsubscribe send an email to [hidden email]
> 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@...
>
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...
Reply | Threaded
Open this post in threaded view
|

Re: resize

Chris Murphy
In reply to this post by Patrick Dupre-4


On Tue, Sep 18, 2018, 8:09 AM Patrick Dupre <[hidden email]> wrote:
Hello,

Did I made a mistake?
This what did:

umount -l /home


There is no need to umount when growing ext4. Only for shrinking must it be unmounted.

XFS can only be grown,.no shrink. And growing can only be done while mounted.

Btrfs grows and shrinks, only while mounted.


Chris Murphy

_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
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@...