[Bug 1149148] New: partitioner: can't shrink filesystem - says it is full but it isn't
http://bugzilla.suse.com/show_bug.cgi?id=1149148 Bug ID: 1149148 Summary: partitioner: can't shrink filesystem - says it is full but it isn't Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: kdupke@suse.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 816609 --> http://bugzilla.suse.com/attachment.cgi?id=816609&action=edit yast2 log for shrinking FS yast2-storage-ng-4.2.37-lp151.381.1.x86_64 I try to shrink a volume and get the message: Cannot be resized. Max size. FS full. No space left in VG. Filesystem Size Used Avail Use% Mounted on /dev/mapper/BACKUP_R6-BACKUP_R6 21T 14T 6.5T 69% /Backup Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/BACKUP_R6-BACKUP_R6 657M 6.8M 650M 2% /Backup PV VG Fmt Attr PSize PFree /dev/sdf BACKUP_R6 lvm2 a-- 20.51t 0 LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert BACKUP_R6 BACKUP_R6 -wi-ao---- 20.51t Should it not be possible to *shrink* the FS? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1149148
Kai Dupke
http://bugzilla.suse.com/show_bug.cgi?id=1149148
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c2
Ancor Gonzalez Sosa
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c3
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c4
--- Comment #4 from Kai Dupke
Depends on what is reasonable. It will likely need research for every filesystem.
I wonder if this has to be a factor, or if a fixed amount (i.e. 250GB) would do as well.
Another problem is that the maximal size for ext4 is set to 16 TiB. This is done since ext4 needs the 64bit feature to handle larger devices (https://www.netways.de/blog/2017/12/13/how-to-use-ext4-beyond-16tib/). E.g. an ext4 normally created on SLE12 SP3 cannot be grown beyond 16 TiB. So strictly speaking the 64bit feature must be checked (using dumpe2fs).
In the shrinking case, this can't be an issue, can it be? In case a size bigger then 16TB, 64bit must be already enabled, right? So shrinking does not need to check this flag. I wonder if it is checked for extending, but at least for openSUSE I am not aware of any notice when I extended a FS beyond 16TB (this system alone has 2 FS > 16TB) resp. created a FS that big. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1149148
David Diaz
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c5
--- Comment #5 from Arvin Schnell
(In reply to Arvin Schnell from comment #3)
Depends on what is reasonable. It will likely need research for every filesystem.
I wonder if this has to be a factor, or if a fixed amount (i.e. 250GB) would do as well.
Likely not a good idea, e.g. for an almost empty 200 GiB filesystem.
Another problem is that the maximal size for ext4 is set to 16 TiB. This is done since ext4 needs the 64bit feature to handle larger devices (https://www.netways.de/blog/2017/12/13/how-to-use-ext4-beyond-16tib/). E.g. an ext4 normally created on SLE12 SP3 cannot be grown beyond 16 TiB. So strictly speaking the 64bit feature must be checked (using dumpe2fs).
In the shrinking case, this can't be an issue, can it be? In case a size bigger then 16TB, 64bit must be already enabled, right? So shrinking does not need to check this flag.
The library provides the possible range for resizing. For the range to be correct the flag is needed and that was the use-case I had in mind.
I wonder if it is checked for extending, but at least for openSUSE I am not aware of any notice when I extended a FS beyond 16TB (this system alone has 2 FS > 16TB) resp. created a FS that big.
The libstorage provides the maximal allowed value for a FS. Whether the UI code uses it I cannot say. BTW: The resize operation might have to move several TiB on the disk. That could take several hours. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1149148
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c6
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c7
--- Comment #7 from Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c8
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c9
--- Comment #9 from Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1149148
http://bugzilla.suse.com/show_bug.cgi?id=1149148#c10
--- Comment #10 from Kai Dupke
participants (1)
-
bugzilla_noreply@novell.com