Good Morning All,
A CentOS Newbie here. I have a system that has plenty of unused space on the drive. I mean it has been added to a partition, sda2, but it not used.
I have extended the cl-root to 100G from its original 50B but what I am seeing is shown in the attachment: Output.PNG
How do I get /dev/mapper/cl-root, 50G to see the extra space as shown from lblsk?
Also what would be the best way to move /dev/mapper/cl-home to a new location?
Any assistance is greatly appreciated.
WB
Linux Newbie - Resizing Partitions
Linux Newbie - Resizing Partitions
- Attachments
-
- Output.PNG (52.92 KiB) Viewed 1362 times
Re: Linux Newbie - Resizing Partitions
Paste a history of commands with the outputs may be helpful.
What are the lvmdiskscan, lvs, pvs and vgs show?
Check this page also: https://www.centos.org/docs/5/html/Clus ... xtend.html
What are the lvmdiskscan, lvs, pvs and vgs show?
Check this page also: https://www.centos.org/docs/5/html/Clus ... xtend.html
The IT Guy
Re: Linux Newbie - Resizing Partitions
If you are using xfs, "xfs_grow" command can do magic.
Check this discussion also: viewtopic.php?t=56877
Check this discussion also: viewtopic.php?t=56877
The IT Guy
Re: Linux Newbie - Resizing Partitions
/dev/sda2 is an LVM physical volume. If you expanded the partition from its original size then you need to pvresize /dev/sda2 to resize the PV to occupy the new partition size. Once that's done your LVM Volume Group will contain freespace and you can use lvresize -r to resize both the LVM LV and the filesystem that's on it. See
man pvresize
man lvresize
man pvresize
man lvresize
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
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
Re: Linux Newbie - Resizing Partitions
Thanks for the assistance. I was able to resolve the issue: Xfs_growfs -d /dev/mapper/cl-root .
Regards,
Wes_B
Regards,
Wes_B
Re: Linux Newbie - Resizing Partitions
What do you have on the cl-root? The OS takes about 10GB, you have 50GB. Personal files should be in cl-home.