linux卷组大小查看,Linux逻辑卷,卷组管理

一.LVM创建过程

1.首先在分区上创建物理卷

[root@wenqing ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes

255 heads, 63 sectors/track, 5221 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: 0x000d7ee8

Device Boot      Start         End      Blocks   Id  System

/dev/sda1               1         523     4194304   8e  Linux LVM

Partition 1 does not end on cylinder boundary.

/dev/sda2   *         523        5222    37747712   83  Linux

Disk /dev/sdb: 10.7 GB, 10737418240 bytes

255 heads, 63 sectors/track, 1305 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: 0x00000000

Disk /dev/mapper/vg_wenqing-LogVol00: 4290 MB, 4290772992 bytes

255 heads, 63 sectors/track, 521 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: 0x00000000

#这里使用/dev/sdb分区

https://www.cndba.cn/Expect-le/article/109

2.建立物理卷

[root@wenqing ~]# pvcreate /dev/sdb

Physical volume "/dev/sdb" successfully created

3.使用物理卷建立卷组

[root@wenqing ~]# vgcreate oslvm /dev/sdb

Volume group "oslvm" successfully created

[root@wenqing ~]# vgs

VG         #PV #LV #SN Attr   VSize  VFree

oslvm        1   0   0 wz--n- 10.00g 10.00g

vg_wenqing   1   1   0 wz--n-  4.00g     0

4.在卷组中建立逻辑卷

[root@wenqing ~]# lvcreate -L 500M -n ruyan oslvm

Logical volume "ruyan" created.

[root@wenqing ~]# lvs

LV       VG         Attr       LSize   Pool Orig

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值