Linux Enlarge the LV
2016-05-24 00:00
429 查看
1,View the free spaces
2,View file system and LV
3,Enlarge the LV
We have increased the size of the logical volume, the size of the file system has been unaffected.4, Resize the filesystemWe now need to resize the ext3 file system to utilize the remaining available space within the logical volume
5, Check out
[code=plain]#vgs vsize xx
2,View file system and LV
[code=plain]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/datavg-backup 1008M 34M 924M 4% /opt/backup # lvdisplay /dev/datavg/backup --- Logical volume --- LV Name /dev/datavg/backup VG Name datavg LV UUID 20vC1U-32uu-yxJk-FGxS-is2B-iAEo-zh3tF6 LV Write Access read/write LV Status available # open 1 LV Size 1.00 GB
3,Enlarge the LV
[code=plain]# lvresize -L +500M /dev/datavg/backup
Extending logical volume backup to 1.49 GBLogical volume backup successfully resized# df -hFilesystem Size Used Avail Use% Mounted on/dev/mapper/datavg-backup1008M 34M 924M 4% /opt/backup
We have increased the size of the logical volume, the size of the file system has been unaffected.4, Resize the filesystemWe now need to resize the ext3 file system to utilize the remaining available space within the logical volume
[code=plain]# resize2fs -p /dev/datavg/backup
resize2fs 1.39 (29-May-2006)Filesystem at /dev/datavg/backup is mounted on /opt/backup; on-line resizing requiredPerforming an on-line resize of /dev/datavg/backup to 390144 (4k) blocks.The filesystem on /dev/datavg/backup is now 390144 blocks long.
5, Check out
[code=plain]# df -h
Filesystem Size Used Avail Use% Mounted on/dev/mapper/datavg-backup1.5G 34M 1.4G 3% /opt/backup
相关文章推荐
- Linux socket 初步
- Linux Kernel 4.0 RC5 发布!
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- Linux 下无损图片压缩小工具介绍