redhat 7 lvm resize on same disk
Hello,
I have 1 TB space on the computer. I installed RHEL7 on about 100 GB using Code:
/dev/sda1 /boot 1GB vgs or pvs i see vgs size as close to 100 GB I do not see rest of 900GB available in vg("sys") While I was making partitions during installation process..I did not see any options were I could create lvm(named "sys") of size 1000GB and then on that lvm... i add my sys-root.. sys-home etc etc.. I remember back in redhat 5/6 days you could do that with installer. Is there a way to increase my pv/vg size to actual disk size ? Or i have reinstall OS again.. even if do reinstall where is the option to make lvm expanded on whole disk. Thank you |
Don't tell us what you see, post (in full) what the commands return.
LVM, even back to its original incarnation, was designed to facilitate growing components. There should be no reason to have to re-install. Code:
lsblk -f |
LVM provides Logical Volumes (LV's) - you can dynamically expand or reduce them.
It's a good idea to leave some unallocated space - which is what you appear to have done. Note that if you want to grow or reduce a LV you must grow/reduce the file system defined on them after/before (as appropriate). |
1 Attachment(s)
Here I took screen shots since I have ilo access to the machine.
Disk /dev/sda is acually over 2 TB. |
1 Attachment(s)
now the old and beautiful centos 6 installer.
|
Simply resize the pv, if you don't give it a size it will occupy the entire disk. When resizing the lv(s), use "-r" to automatically resize the filesystem for common filesystems. Had you supplied the data I asked for we could be sure.
Redhat has an excellent LVM admin guide. |
1 Attachment(s)
here is output from lsblk -f
|
1 Attachment(s)
I resized pv with pvresize --setpysicalvolumesize 1900gb
now is see this warning. |
Quote:
|
All times are GMT -5. The time now is 06:23 PM. |