linux扩展硬盘空间(lvm)

本文详细介绍了在Linux环境中如何扩展硬盘空间,通过LVM(逻辑卷管理)技术增加卷组容量,并对逻辑卷进行扩容。首先使用fdisk创建新分区,接着格式化新分区,然后将新分区加入到卷组vg_mould中,最后扩展逻辑卷lv_root的大小并调整文件系统大小。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、添加新硬盘

fdisk -l 查看新加硬盘

或 (原有硬盘没有进行完整的分区,硬盘资源有剩余没有挂载

硬盘共有cylinders 1040253,现用208051

)本篇文章按图中情况编写

二、新建分区

fdisk /dev/vda

[root@localhost /]# fdisk /dev/vda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x1949791c.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
 
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
 
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').
 
Command (m for help): m                //输入m查看帮助文档
Command action
   a   toggle a boota
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值