linux给根目录扩容,Linux给根目录扩容时,为什么执行lvextend之后扩容的大小并不是100%?...

因为1k是1024

[root@xxxx-centos7-template ~]# lvcreate -L 99G -n data centos

Logical volume "data" created.

[root@xxxx-centos7-template ~]# lvdisplay

--- Logical volume ---

LV Path /dev/centos/swap

LV Name swap

VG Name centos

LV UUID vFM0SF-6giK-lWPg-iCTY-usKM-ywpA-bp5zxd

LV Write Access read/write

LV Creation host, time xxxx-centos7-template, 2018-04-20 13:44:01 +0800

LV Status available

open 2

LV Size 8.00 GiB

Current LE 2048

Segments 1

Allocation inherit

Read ahead sectors auto

* currently set to 8192

Block device 253:1

--- Logical volume ---

LV Path /dev/centos/root

LV Name root

VG Name centos

LV UUID mtRvdH-eFlc-3EiS-xQbW-lqfm-y6K5-bAiZrv

LV Write Access read/write

LV Creation host, time xxxx-centos7-template, 2018-04-20 13:44:01 +0800

LV Status available

open 1

LV Size 41.80 GiB

Current LE 10701

Segments 1

Allocation inherit

Read ahead sectors auto

* currently set to 8192

Block device 253:0

--- Logical volume ---

LV Path /dev/centos/data

LV Name data

VG Name centos

LV UUID Jj7pYx-vlUm-2z9U-UcK0-Wx3m-182t-UeQH25

LV Write Access read/write

LV Creation host, time xxxx-centos7-template, 2019-03-13 20:50:49 +0800

LV Status available

open 0

LV Size 99.00 GiB

Current LE 25344

Segments 1

Allocation inherit

Read ahead sectors auto

* currently set to 8192

Block device 253:2

[root@xxxx-centos7-template ~]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/mapper/centos-root 42G 1.6G 41G 4% /

devtmpfs 3.9G 0 3.9G 0% /dev

tmpfs 3.9G 0 3.9G 0% /dev/shm

tmpfs 3.9G 8.5M 3.9G 1% /run

tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup

/dev/sda1 197M 103M 95M 53% /boot

tmpfs 799M 0 799M 0% /run/user/0

/dev/mapper/centos-data 98G 61M 93G 1% /data

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值