Looking for assistance in correcting the misconfiguration of pvs,lgs and pvs in Redhat server
Hi,
I am new to Linux OS systems. We have built a few Red hat Enterprise Servers by selecting the auto disk configuration. Looking at the below configuration, I see only the partition SD5 is used with LVs and other partitions like SDA2 has several other LVs which are not in use.
We got a request to increase the /dev/mapper/rhel00-home volume size, but looking at the below configuration I see have some doubts on few partition which are not in use and can be removed to reclaim the space to add it to SDA5 partition and RHEL00 VG to extend the size of LVs. Do we need increase the disk size from VMware to add more space to /Home or can we cleanup misconfigurations in server to add more space to /Home?
Please check the below details and advise the steps to fix this. Thanks for your valuable time and feedback.
df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 32G 0 32G 0% /dev
tmpfs 32G 84K 32G 1% /dev/shm
tmpfs 32G 514M 31G 2% /run
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/mapper/rhel00-root 70G 7.3G 63G 11% /
/dev/mapper/rhel00-home 42G 35G 6.6G 85% /home
/dev/sda3 1014M 406M 609M 40% /boot
//dalnxfile01.corp.local/Apps/Boomi/Boomi_Prod 98T 70T 28T 72% /mnt/boomiappsshare
10.4.6.170:/NFSBoomiPRD 280T 2.4T 278T 1% /mnt/boomishare
tmpfs 6.3G 12K 6.3G 1% /run/user/42
tmpfs 6.3G 0 6.3G 0% /run/user/1385450380
tmpfs 6.3G 0 6.3G 0% /run/user/0
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 1G 0 part
├─sda2 8:2 0 79G 0 part
│ ├─rhel-swap 253:1 0 2G 0 lvm
│ ├─rhel-root 253:4 0 50G 0 lvm
│ └─rhel-home 253:5 0 27G 0 lvm
├─sda3 8:3 0 1G 0 part /boot
├─sda4 8:4 0 1K 0 part
└─sda5 8:5 0 119G 0 part
├─rhel00-root 253:0 0 70G 0 lvm /
├─rhel00-swap 253:2 0 7.9G 0 lvm [SWAP]
└─rhel00-home 253:3 0 41.1G 0 lvm /home
sr0 11:0 1 1024M 0 rom
sudo: /etc/sudoers:132:18: values for "logfile" must start with a '/'
--- Physical volume ---
PV Name /dev/sda5
VG Name rhel00
PV Size <119.00 GiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 30463
Free PE 0
Allocated PE 30463
PV UUID tUX13r-y1Hw-b5aN-lEXC-d04K-L7tr-vJhJC6
--- Physical volume ---
PV Name /dev/sda2
VG Name rhel
PV Size <79.00 GiB / not usable 3.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 20223
Free PE 1
Allocated PE 20222
PV UUID wT3RB8-IfId-Rr07-rEC0-gGeP-uUaJ-pEecvs
sudo pvs && sudo vgs
sudo: /etc/sudoers:132:18: values for "logfile" must start with a '/'
PV VG Fmt Attr PSize PFree
/dev/sda2 rhel lvm2 a-- <79.00g 4.00m
/dev/sda5 rhel00 lvm2 a-- <119.00g 0
sudo: /etc/sudoers:132:18: values for "logfile" must start with a '/'
VG #PV #LV #SN Attr VSize VFree
rhel 1 3 0 wz--n- <79.00g 4.00m
rhel00 1 3 0 wz--n- <119.00g 0