lv resize
# lvreduce -L -400G /dev/vg_atalinux001/lv_home
# resize2fs /dev/vg_atalinux001/lv_home
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/vg_atalinux001/lv_home is mounted on /home; on-line resizing required
On-line shrinking from 107852800 to 2995200 not supported.
# umount /home
# resize2fs /dev/vg_atalinux001/lv_home
resize2fs 1.41.12 (17-May-2010)
Please run 'e2fsck -f /dev/vg_atalinux001/lv_home' first.
# e2fsck -f /dev/vg_atalinux001/lv_home
一通回车之后就挂了...
# mount -a
mount: wrong fs type, bad option, bad superblock on /dev/mapper/vg_atalinux001-lv_home,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
# tail /var/log/messages
Dec 12 11:09:54 ata-linux-001 kernel: dm-2: rw=1217, want=428081160, limit=23961600
Dec 12 11:09:54 ata-linux-001 kernel: Buffer I/O error on device dm-2, logical block 53510144
Dec 12 11:09:54 ata-linux-001 kernel: lost page write due to I/O error on dm-2
Dec 12 11:09:54 ata-linux-001 kernel: JBD2: I/O error detected when updating journal superblock for dm-2-8.
Dec 12 11:09:54 ata-linux-001 kernel: attempt to access beyond end of device
Dec 12 11:09:54 ata-linux-001 kernel: dm-2: rw=1217, want=428081160, limit=23961600
Dec 12 11:09:54 ata-linux-001 kernel: Buffer I/O error on device dm-2, logical block 53510144
Dec 12 11:09:54 ata-linux-001 kernel: lost page write due to I/O error on dm-2
Dec 12 11:09:54 ata-linux-001 kernel: JBD2: I/O error detected when updating journal superblock for dm-2-8.
Dec 12 11:14:19 ata-linux-001 kernel: EXT4-fs (dm-2): bad geometry: block count 107852800 exceeds size of device (2995200 blocks)
# mkfs.ext4 /dev/vg_atalinux001/lv_home
之后好了。
lvreduce 需谨慎使用呀,使用前把数据要全拷贝出来才安全。
lv resize的更多相关文章
- Logical Volume Manager (LVM)
LVM 是一种可用在Linux内核的逻辑分卷管理器:可用于管理磁盘驱动器或其他类似的大容量存储设备. 本文提供如何在 Arch Linux 中配置和使用 Logical Volume Manager ...
- Linux LVM学习总结——放大LV容量
本篇介绍LVM管理中的命令lvresize,我们先创建一个卷组VG VolGroup02,它建立在磁盘/dev/sdc (大小为8G)上.创建逻辑卷LV时,我们故意只使用了一小部分.具体情况如下所示 ...
- 在linux中减小和增大LV的过程与思考
今天在安装oracle 11 rac的时候,查看操作系统df -lh,发现/home目录竟然分了500多G,/根目录才有50G,当时我就爆了句粗口,这TM系统是怎么做的. Filesystem ...
- 扩展LV
LVM最大的特性就是可以弹性调整磁盘容量下面扩展一个已经存在的LV [root@ol6--rac1 mnt]# lvdisplay --- Logical volume --- LV Path /de ...
- LVM管理之减少LV的大小
LVM管理之减少LV的大小 规定动作 1.umount filesystem 2.e2fsck filesystem 3.resize2fs filesystem 4.lvredure 实例演示——— ...
- centos6上调整lv逻辑卷
author:headsen chen date:2019-03-18 14:48:17 1,查看分区状态,发现/ 分区不够用./home分区太大了.浪费 [root@localhost ~]# d ...
- Resize CentOS Linux hard drive partition (centos 6.3 调整LVS磁盘大小)
查看当前磁盘信息: [root@localhost ~]# df -h 文件系统 容量 已用 可用 已用%% 挂载点/dev/mapper/VolGroup-lv_root ...
- 同时调整lv分区的大小(减少一个,增加另一个)
author:headsen chen date: 2018-04-20 16:48:06 1.查看分区:/home 为67G,太大了,/ 是50g,太小了. [root@localhost ~]# ...
- Linux中逻辑卷(LV)的创建、增大和减小
首先说一下在缩小逻辑卷的时候要注意的问题:第一步使用resize2fs命令更改文件系统的容量:第二步使用lvreduce命令减小逻辑卷的容量.这两个顺序千万不要搞反了,而且要保证缩减后的逻辑卷容量大于 ...
随机推荐
- npm更新方法
今天npm的版本更新发现小于3.0 尝试了npm install npm -g 安装么有成功换成了 cnpm install npm -g安装之后就可以
- C#开发 —— 基础知识
C# 用于开发可以运行在 .Net 平台上的应用程序,C# 本身只是一种语言,尽管它是用于生成面向 .Net 环境的代码,但它本身不是 .Net 的一部分 Console.WriteLine 命名空间 ...
- POJ 1742 Coins 优化后的多重背包
Coins Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 37853 Accepted: 12849 Descripti ...
- java bigdecimal (java double也时会失真)
BigDecimal加减乘除运算 2011-11-21 21:22 6470人阅读 评论(0) 收藏 举报 stringdivjavaup工具 java.math.BigDecimal.BigDeci ...
- JavaScript学习总结(9)——JS常用函数(一)
本文中,收集了一些比较常用的Javascript函数,希望对学习JS的朋友们有所帮助. 1. 字符串长度截取 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 ...
- notification-应用实例
这几天接触到了notification,现在就把它的常用方法总结下. 直接看如下代码就行了 ComponentName componetName = new ComponentName("c ...
- vmware-虚拟机播放器的下载、安装
如果是在window下安装的话: 1.下载vmware: 到官网下载免费个人版本 https://my.vmware.com/cn/web/vmware/free#desktop_end_user_c ...
- 关于结构体COORD介绍
COORD是windows API中定义的一种结构,表示一个字符在控制台屏幕上的坐标.其定义为: typedef struct _COORD { SHORT X; // horizontal coor ...
- sqlserver 导入excel数据
有的时候需要将excel数据导入到数据库中,这里介绍一下操作方法: 1.可能需要安装sqlserver的插件 [AccessDatabaseEngine],这个可以在网上早,很多. 2.安装插件后,右 ...
- 解决vmware 和hyper-v不能共存的问题
只需在 Windows 中以管理员身份运行命令提示符 cmd 1.运行 bcdedit /copy {current} /d "Windows 8 (关闭 Hyper-V)"命令, ...