无法收缩逻辑卷 - 混合消息是否有可用空间

无法收缩逻辑卷 - 混合消息是否有可用空间

我想缩小我的逻辑卷 (LV)

$ df -h
Filesystem                                   Size  Used Avail Use% Mounted on
...
/dev/mapper/MyOnlyVolumeGroup-MyLogicVolume   59G   23G   35G  40% /MyData

但即使上面应该有35G空间,当我命令

$ sudo e2fsck -f /dev/mapper/MyOnlyVolumeGroup-MyLogicVolume
e2fsck 1.42.9 (4-Feb-2014)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/mapper/MyOnlyVolumeGroup-MyLogicVolume: 258758/3932160 files (0.8% non-contiguous), 6109625/15728640 blocks

然后询问最小尺寸,我得到

$ sudo resize2fs -P /dev/mapper/MyOnlyVolumeGroup-MyLogicVolume
resize2fs 1.42.9 (4-Feb-2014)
Estimated minimum size of the filesystem: 5990176

现在,我不确定这是什么单位。起初,我以为总大小是 59GB,但请注意“5 990 176” - sooo...这是什么意思?

但是,如果我假设这意味着 59GB,则意味着我无法缩小 LV。这与程序 kvpm(用于 LVM 管理的 GUI)所讲述的事实是一致的

文件系统已经尽可能小了

当我试图告诉它“减少逻辑卷”时。根据 kvpm 的说法,正如df -h所说的那样,空间是可用的。另外,我的文件管理器告诉我有可用空间。

那么为什么我会从resize2fskvpm 收到此消息以及我可以做什么来缩小 LV?


附加信息:

$ sudo tune2fs -l /dev/mapper/MyOnlyVolumeGroup-MyLogicVolume
tune2fs 1.42.9 (4-Feb-2014)
Filesystem volume name:   <none>
Last mounted on:          /MyData
Filesystem UUID:          3a478ae0-2736-414d-b98d-e23195a616e6
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              3932160
Block count:              15728640
Reserved block count:     637401
Free blocks:              9619015
Free inodes:              3673402
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      316
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
RAID stride:              2957
Flex block group size:    16
Filesystem created:       Sun Mar 15 18:11:11 2015
Last mount time:          Tue Nov 24 17:58:59 2020
Last write time:          Tue Nov 24 18:01:46 2020
Mount count:              0
Maximum mount count:      -1
Last checked:             Tue Nov 24 18:01:46 2020
Check interval:           0 (<none>)
Lifetime writes:          5461 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      d19dddab-633a-4f89-a5b9-6ba7e364d385
Journal backup:           inode blocks

相关内容