LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Linux Partition creation. (https://www.linuxquestions.org/questions/linux-server-73/linux-partition-creation-680797/)

rdharmalingam 11-03-2008 06:29 AM

Linux Partition creation.
 
Folks

I have HP DL120 server with HW RAID 1 Configured. While installation time I have used only around 60 GB Remaining around 80 GB i have free space. I want to create a new partition with 80 and it has to be mounted with /data.

I dont have any LVM setup here.

How to create /dev/mapper/ddXXXXXXXX device mapper id?


Current Partition type.

[root@localhost mapper]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/ddf1_RHL5p3
59G 2.6G 53G 5% /
/dev/mapper/ddf1_RHL5p1
190M 16M 165M 9% /boot
tmpfs 3.0G 0 3.0G 0% /dev/shm


[root@localhost mapper]# fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 7858 62918572+ 83 Linux
/dev/sda3 7859 15691 62918572+ 83 Linux
/dev/sda4 15692 19435 30073680 5 Extended
/dev/sda5 15692 16213 4192933+ 82 Linux swap / Solaris

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 25 200781 83 Linux
/dev/sdb2 26 7858 62918572+ 83 Linux
/dev/sdb3 7859 15691 62918572+ 83 Linux
/dev/sdb4 15692 19435 30073680 5 Extended
/dev/sdb5 15692 16213 4192933+ 82 Linux swap / Solaris
[root@localhost mapper]#

budword 11-03-2008 07:20 AM

What is your question exactly ? What program to use to partition drives ? What distro ? How to set up LVM or raid ?

David

monsm 11-03-2008 08:42 AM

Hi,
Firstly take a backup of your system (at least your data files).

You need to check yourself, but far as I know Gparted and QtParted, both GUIs of the command line Parted tool, can resize existing partitions. So you can resize your existing partition to make space for your new one.
Then use e.g. cfdisk to create the new one from the free space you created.
Then format the new partition e.g. to ext3. You lastly edit the /etc/fstab file to mount the new partition to /data, or wherever else you want it.

Good luck and don't forget the back first...

Mons


All times are GMT -5. The time now is 02:26 AM.