LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Convert NTFS Partition to LVM (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-convert-ntfs-partition-to-lvm-4175427058/)

grendle65 09-13-2012 08:45 AM

How to Convert NTFS Partition to LVM
 
Hello, I am new to Linux and also this site. I have a Redhat 5 enterprise server that keeps running low on space. After looking through the server i have come accross an NTFS partition that is not being used. I would like to take that 107 GB and add it to my current LVM.

First - How do i mount that drive to see what is on it

Second - how do i convert that space to the existing LVM?

Thanks
DJ

MensaWater 09-13-2012 08:54 AM

Haven't done it but the answer to your first question appears to be addressed well at:
http://linuxconfig.org/How_to_mount_...d_write_access

On your second question:
You'd unmount the NTFS filesystem if still mounted.
Use fdisk or parted to change the partition type from NTFS to Linux LVM
Run pvcreate on the partition to make it a Physical Volume (PV) ready for LVM
Use vgextend to add the new PV to your existing volume group (VG).
Use lvextend to add the new space in the VG to the logical volume (LV)
Use resize2fs to make the ext* filesystem use the space that was added to the LV. (Assuming this is an ext2 or ext3 filesystem).

In Linux there are manual pages for most commands. You can run the following to get more details:
man fdisk
man pvcreate
man vgextend
man lvextend
man resize2fs


All times are GMT -5. The time now is 05:32 PM.