LVM 扩容问题解决

resize2fs

resize2fs : operation not permitted while trying to add grounp #25


syslog:

ext4-fs warning (device dm-0):ext4_group_add:1605: no reserved GDT blocks,can not resize


fdisk  /dev/sda

vgextend debian /dev/sda3

lvextend -L 40G /dev/mapper/debian-root

resize2fs /dev/mapper/debian-root


The original on-line resize scheme required gdt blocks to be reserved
so there would be room for the group descriptor table blocks (which
had to be contiguous).  The number of group descriptor blocks that was
reserved calculated to be a thousand times the size of the original
file system, which would normally be enough.  *But* it was also capped
by a limitation in how we reserved the gdt blocks such that the sum of
the in-use gdt blocks plus reserved gdt blocks could not exceed 1024
blocks.  Before the 64-bit option, this was not a problem, since we
would hit the 16T limitation at the same time.  However, when the
64-bit option is enabled, it's possible to run out of gdt blocks using
the old scheme; this is the limitation which you hit.

In the very latest kernels, we have added a new on-line resizing
scheme, which does not require that block group descriptors be
contiguous.  However, it requires the very latest version of e2fsprogs
(1.42.6) and the to-be-released 3.7 kernel (the new on-line resizing
code landed in 3.7-rc1, during the merge window).

If you are willing to temporarily boot a bleeding edge 3.7 kernel and
use the resize2fs from e2fsprogs 1.42.6, you'll be able to resizing
your partition.  After you do this, you could fall back to the Debian
stable kernel and things should work w/o problems; the latest kernel
and e2fsprogs code is needed just for the online resize operation.
The resulting file system will be recognized by older kernels and
e2fsprogs programs

连接:

https://www.spinics.net/lists/linux-ext4/msg35015.html


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在Ubuntu服务器版中,扩容可以通过多种方式实现,具体取决于你的需求和环境。以下是一些常见的扩容方法: 1. 增加硬盘空间:如果你的服务器硬盘空间不足,可以通过添加新的硬盘来扩容。首先,将新硬盘连接到服务器上,并使用命令`lsblk`或`fdisk -l`来查看新硬盘的设备名称(如`/dev/sdb`)。然后,使用工具(如`fdisk`或`parted`)对新硬盘进行分区,并使用`mkfs`命令创建文件系统。最后,将新分区挂载到现有文件系统中,或者将其作为独立的挂载点使用。 2. 扩展现有分区:如果你已经有一个分区,但需要更多的空间,可以通过扩展现有分区来实现。首先,使用工具(如`fdisk`或`parted`)对现有分区进行调整,将其扩展到新的空间。然后,使用`resize2fs`命令来调整文件系统大小,以便能够使用新的空间。 3. 使用逻辑卷管理器(LVM):LVM是一种高级的磁盘管理工具,可以提供更灵活的扩容和管理选项。通过创建物理卷、卷组和逻辑卷,你可以动态地调整存储空间的大小。具体操作包括创建物理卷、将物理卷添加到卷组中、创建逻辑卷,并将其格式化和挂载。 4. 使用网络存储:如果你的服务器需要更多的存储空间,但物理硬件限制了扩容的可能性,你可以考虑使用网络存储解决方案,如网络附加存储(NAS)或存储区域网络(SAN)。这些解决方案允许你将存储设备连接到服务器,并通过网络访问额外的存储空间。 以上是一些常见的Ubuntu服务器版扩容方法。具体选择取决于你的需求和环境。如果你有更具体的问题或需要更详细的指导,请提供更多信息,我将尽力帮助你。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值