Hard Drive Configurations

General support questions
Post Reply
Jpatt
Posts: 2
Joined: 2021/10/06 20:18:23

Hard Drive Configurations

Post by Jpatt » 2021/10/06 20:30:45

Just set up an CentOS 7 server with GUI support and not sure how this happened but my hard drives are not configured properly.
I have two physical hard drives at 500 gig each but I am not seeing the second hard drive available and I'm assuming that it is because they combined as a logical drive. Ultimatly I trying to free up some space so I can have a seperate drive or partition. Not sure where to start hope the following configuration can assist in pointing me in the right direction.

Thanks in advance.

root@localhost fusion]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home centos -wi-ao---- <872.57g
root centos -wi-ao---- 50.00g
swap centos -wi-ao---- 7.75g

[root@localhost fusion]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 2 3 0 wz--n- 930.32g 4.00m

[root@localhost fusion]# df -Th
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs tmpfs 3.8G 11M 3.8G 1% /run
tmpfs tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/mapper/centos-root xfs 50G 14G 37G 27% /
/dev/sda2 xfs 1014M 227M 788M 23% /boot
/dev/sda1 vfat 200M 12M 189M 6% /boot/efi
/dev/mapper/centos-home xfs 873G 634M 872G 1% /home
tmpfs tmpfs 766M 32K 766M 1% /run/user/1000

root@localhost fusion]# ls -1 /dev/[sv]d[a-z]
/dev/sda
/dev/sdb
[root@localhost fusion]#

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: Hard Drive Configurations

Post by Whoever » 2021/10/07 02:45:05

It looks like all your hard drive space from the two disks is used already:
VG #PV #LV #SN Attr VSize VFree
centos 2 3 0 wz--n- 930.32g 4.00m
"lsblk" will show you quite clearly how your disk space is organized and used.

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Hard Drive Configurations

Post by jlehtone » 2021/10/07 08:35:14

Jpatt wrote:
2021/10/06 20:30:45
I'm assuming that it is because they combined as a logical drive.

[root@localhost fusion]# vgs
VG #PV #LV #SN Attr VSize VFree
centos 2 3 0 wz--n- 930.32g 4.00m

/dev/mapper/centos-root xfs 50G 14G 37G 27% /
/dev/sda2 xfs 1014M 227M 788M 23% /boot
/dev/sda1 vfat 200M 12M 189M 6% /boot/efi
/dev/mapper/centos-home xfs 873G 634M 872G 1% /home
Yes. The VG (LVM volume group) "centos" contains two PV (physical volume), which I guess to be /dev/sda3 and /dev/sdb1 (lsblk or pvs would show).
Within that VG (so somehow on the two disks) you have three LV (logical volumes): "root", "swap", and "home".

The home and root have filesystem type XFS. It is not possible to shrink XFS.
If you want either to be smaller, then you have to remove it, create a new with "better" size, and restore data (from backup).
If the install is new, with no precious data yet, then just reinstall and select the manual partitioning option in the installer.

Jpatt
Posts: 2
Joined: 2021/10/06 20:18:23

Re: Hard Drive Configurations

Post by Jpatt » 2021/10/07 13:27:33

Thank you for the reply.

I will reload and configure the hard drives differently.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Hard Drive Configurations

Post by TrevorH » 2021/10/07 13:28:17

The automatic partitioning selection in the installer is rubbish. Set it up manually.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply