小编und*_*ine的帖子

找出快照精简卷上的已用空间

我有以下 lvm 配置。

Hard Disk: /dev/sdb  (Size 10 GB)
VG: vg_root on /dev/sdb
THIN_POOL thin_pool occupying the whole physical extent
lvcreate -y --extents 100%free --thin vg_root/thin_pool

Thin volume on the thin pool
lvcreate --name lv_1 --virtualsize 1GB --thinpool vg_root/thin_pool

Another thin volume on the thin_pool
lvcreate --name lv_2 --virtualsize 2GB --thinpool vg_root/thin_pool
mount and create a file of 1 GB on the volume

Snapshot volume for lv_2
lvcreate -y --setactivationskip n --snapshot --thinpool vg_root/thin_pool vg_root/lv_2 --name snapshot_1
mount and create …
Run Code Online (Sandbox Code Playgroud)

lvm snapshot thin-provisioning

5
推荐指数
0
解决办法
1445
查看次数

在 ext4 上挂载“结构需要清理”的文件系统

有一个多年前创建的(并且多次调整大小)带有 ext4 的文件系统。电源故障后,它停止安装。\n当我尝试手动安装它时,我收到错误:

\n
# mount /dev/space/vservershosting-vs /mnt/\nmount: /mnt: mount(2) system call failed: Structure needs cleaning.\n
Run Code Online (Sandbox Code Playgroud)\n

dmesg 中有更多信息:

\n
[32618.800854] EXT4-fs error (device dm-44): __ext4_iget:5080: inode #2: block 1953722220: comm mount: invalid block\n[32619.264574] EXT4-fs (dm-44): get root inode failed\n[32619.264633] EXT4-fs (dm-44): mount failed\n
Run Code Online (Sandbox Code Playgroud)\n

fsck 无需任何修复即可通过:

\n
# fsck.ext4 -c -f -v /dev/space/vservershosting-vs\ne2fsck 1.44.5 (15-Dec-2018)\nChecking for bad blocks (read-only test): done                                                 \n/dev/space/vservershosting-vs: Updating bad block inode.\nPass 1: Checking inodes, blocks, and sizes\nPass 2: Checking directory structure                                           \nPass 3: Checking …
Run Code Online (Sandbox Code Playgroud)

linux filesystems ext4 mount

5
推荐指数
0
解决办法
1万
查看次数

标签 统计

ext4 ×1

filesystems ×1

linux ×1

lvm ×1

mount ×1

snapshot ×1

thin-provisioning ×1