LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   New RHES - how to resize current disks and create new the disks (https://www.linuxquestions.org/questions/linux-server-73/new-rhes-how-to-resize-current-disks-and-create-new-the-disks-4175478045/)

spuds99 09-21-2013 08:51 PM

New RHES - how to resize current disks and create new the disks
 
Hi,

I have a new Red Hat ES server that has the following disks already on it:

root#fdisk -l
Disk /dev/sda 1500.3 GB

Device Boot
/dev/sda1
/dev/sda2

Disk /dev/sda3 60 GB mount is /
Disk /dev/sda4 17 GB (swap)
Disk /dev/sda5 1430 GB mount is /home

I would like to:

(1) reduce/move the space from the /dev/sda5 Disk (filesystem) to the /dev/sda3 Disk
(2) create a couple other new Disks/VolGroup-LogicalVol that I can put the freed up space on say /dev/sda6/VolGroup-LogicalVol and /dev/sda7/VolGroup-LogicalVol using ext3 probably(?)

How can I accomplish these changes?

Thank you.

- Spuds99

michaelk 09-23-2013 06:31 AM

Please post the complete output of the fdisk command. We need to see exactly how the drive is partitioned.

A logical volume is not the same thing as a logical partition. It does not appear that you are using LVM.

dt64 09-29-2013 02:24 PM

What you want to do is not that easy. I guess it would be easier and quicker if you make a good external backup and repartition your HDD to a layout that suits your needs (including LVM if wanted). After that restore your backup and you'll be fine.

Any other way will include a lot hassling around with partitions, LVMs, UUIDs, messing up fstab, grub and many other system files etc.

btw: why do you have sda1 and sda2 in /boot?

syg00 09-29-2013 06:13 PM

Quote:

Originally Posted by michaelk (Post 5033098)
Please post the complete output of the fdisk command. We need to see exactly how the drive is partitioned.

Perhaps better to use
Code:

parted /dev/sda "print free"
Post using [code] tags as I just did to maintain the data layout correctly.


All times are GMT -5. The time now is 01:54 PM.