逻辑卷的扩容

 时间:2026-02-14 05:15:43

1、把上个实验中的逻辑卷vo扩展至290M:

[root@linuxprobe ~]# lvextend -L 290M /dev/storage/vo 

Rounding size to boundary between physical extents: 292.00 MiB 

Extending logical volume vo to 292.00 MiB 

Logical volume vo successfully resized

2、检查磁盘完整性,重置硬盘容量:

[root@linuxprobe ~]# e2fsck -f /dev/storage/vo 

e2fsck 1.42.9 (28-Dec-2013) 

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/storage/vo: 11/38000 files (0.0% non-contiguous), 10453/151552 blocks 

[root@linuxprobe ~]# resize2fs /dev/storage/vo 

resize2fs 1.42.9 (28-Dec-2013) 

Resizing the filesystem on /dev/storage/vo to 299008 (1k) blocks. 

The filesystem on /dev/storage/vo is now 299008 blocks long.

3、重新挂载硬盘设备并查看挂载状态:

[root@linuxprobe ~]# mount -a 

[root@linuxprobe ~]# df -h 

Filesystem Size Used Avail Use% Mounted on 

/dev/mapper/rhel-root 18G 3.0G 15G 17% / 

devtmpfs 985M 0 985M 0% /dev 

tmpfs 994M 80K 994M 1% /dev/shm 

tmpfs 994M 8.8M 986M 1% /run 

tmpfs 994M 0 994M 0% /sys/fs/cgroup 

/dev/sr0 3.5G 3.5G 0 100% /media/cdrom 

/dev/sda1 497M 119M 379M 24% /boot

/dev/mapper/storage-vo 279M 2.1M 259M 1% /linuxprobe

  • 如何解决VMware12虚拟机启动报错
  • win10系统如何设置审核系统事件?
  • 如何启用或关闭Windows功能
  • win10台式电脑怎么导入注册表
  • 电脑磁盘卷标怎么改
  • 热门搜索
    钙片什么时候吃最好早上还是晚上 运动会入场解说词 苍耳子的功效与作用 什么是帽子戏法 大料的功效与作用 什么是三角恋 腋毛的作用 黄花菜的功效与作用 什么是广告策划 什么时候怀孕最好