hyper linux v增强_Hyper-V下扩展Linux磁盘空间的方法

背景:开发服务器是虚拟机,原来只规划了2G,后来发现硬盘不够用了,需要进行扩容。文章说必须基于LVM,命令检验一下。据说centos默认安装也是LVM的。[sss@localhost ~]$lvdisplay--- Logical volume ---LV Path /dev/vg_vm/lv_rootLV Name lv_rootVG ...
摘要由CSDN通过智能技术生成

背景:开发服务器是虚拟机,原来只规划了2G,后来发现硬盘不够用了,需要进行扩容。

文章说必须基于LVM,命令检验一下。据说centos默认安装也是LVM的。

[sss@localhost ~]$lvdisplay

--- Logical volume ---

LV Path                /dev/vg_vm/lv_root

LV Name                lv_root

VG Name                vg_vm

LV UUID                bWyLlY-hYra-7hPc-2eU9-tXMH-FJFa-7ZLDoF

LV Write Access        read/write

LV Creation host, time vm.sss, 2015-01-05 03:29:55 +0800

LV Status              available

# open                 1

LV Size                6.71 GiB

Current LE             1718

Segments               1

Allocation             inherit

Read ahead sectors     auto

- currently set to     256

Block device           253:0

--- Logical volume ---

LV Path                /dev/vg_vm/lv_swap

LV Name                lv_swap

VG Name                vg_vm

LV UUID                oLj3cQ-USD7-JIGZ-HMJz-NlmA-aQf6-lECYyC

LV Write Access        read/write

LV Creation host, time vm.sss, 2015-01-05 03:29:56 +0800

LV Status              available

# open                 1

LV Size                816.00 MiB

Current LE             204

Segments               1

Allocation             inherit

Read ahead sectors     auto

- currently set to     256

Block device           253:1

[sss@localhost ~]$sudo fdisk -l

Disk /dev/sda: 32.2 GB, 32212254720 bytes

255 heads, 63 sectors/track, 3916 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x00036057

Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          64      512000   83  Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2              64        1045     7875584   8e  Linux LVM

Disk /dev/mapper/vg_vm-lv_root: 7205 MB, 7205814272 b

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值