Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to expand CentOS Linux release 7 disk capacity

Shulou Source: shulou.com Published: 2022-06-01 02:51:32 09月30日 Update

This article is about how to carry out CentOS Linux release 7 disk expansion, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

[root@Userv-a cl] # cat / etc/redhat-release

CentOS Linux release 7.5.1804 (Core)

[root@Userv-a cl] #

[root@Userv-a ~] # fdisk-l

Disk / dev/sda: 107.4 GB, 107374182400 bytes, 209715200 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk label type: dos

Disk identifier: 0x000a70d7

Device Boot Start End Blocks Id System

/ dev/sda1 * 2048 2099199 1048576 83 Linux

/ dev/sda2 2099200 209715199 103808000 8e Linux LVM

Disk / dev/mapper/cl-root: 53.7 GB, 53687091200 bytes, 104857600 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk / dev/mapper/cl-swap: 8455 MB, 8455716864 bytes, 16515072 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk / dev/mapper/cl-home: 44.1 GB, 44149243904 bytes, 86228992 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

[root@Userv-a ~] # echo "- -" > / sys/class/scsi_host/host0/scan

[root@Userv-a ~] # fdisk-l

Disk / dev/sda: 107.4 GB, 107374182400 bytes, 209715200 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk label type: dos

Disk identifier: 0x000a70d7

Device Boot Start End Blocks Id System

/ dev/sda1 * 2048 2099199 1048576 83 Linux

/ dev/sda2 2099200 209715199 103808000 8e Linux LVM

Disk / dev/mapper/cl-root: 53.7 GB, 53687091200 bytes, 104857600 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk / dev/mapper/cl-swap: 8455 MB, 8455716864 bytes, 16515072 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk / dev/mapper/cl-home: 44.1 GB, 44149243904 bytes, 86228992 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk / dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

[root@Userv-a ~] # pvcreate / dev/sdb

Physical volume "/ dev/sdb" successfully created.

[root@Userv-a ~] # pvs

PV VG Fmt Attr PSize PFree

/ dev/sda2 cl lvm2 a muri-

Tags: Disk more knowledge article practical that is work meeting article look knowledge point industry details information information channel follow part channel study work related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Shulou Tech Info Shulou Technology vpn MariaDB