Extra Hard Disk to Centos/Directadmin Installation

evildon

Verified User
Joined
May 19, 2010
Messages
7
Hi

I have a small/BIG issue with my new server. The server comes with 3x 120GB SSD.

My datacenter installed the Centos with Directadmin for me, but it seems it only contains ONE hard disk. Here is my installed disk partition -

[root@ ~]# df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 19G 0 100% /
/dev/root 20G 19G 0 100% /
devtmpfs 7.8G 516K 7.8G 1% /dev
/dev/md2 90G 4.4G 81G 6% /home
tmpfs 7.8G 24K 7.8G 1% /dev/shm


See already the /dev/root and rootfs already filled (don't know how :( ) Due to this i get frequent MYSQL error with less space. Also you can see only the 120GB is listed out there.

Here my disk details - [root@]# fdisk -l

Code:
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2550    20478976   fd  Linux raid autodetect
/dev/sda2            2550       14463    95687680   fd  Linux raid autodetect
/dev/sda3           14463       14593     1047552   82  Linux swap / Solaris

Disk /dev/sdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        2550    20478976   fd  Linux raid autodetect
/dev/sdb2            2550       14463    95687680   fd  Linux raid autodetect
/dev/sdb3           14463       14593     1047552   82  Linux swap / Solaris

Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1        2550    20478976   fd  Linux raid autodetect
/dev/sdc2            2550       14463    95687680   fd  Linux raid autodetect
/dev/sdc3           14463       14593     1047552   82  Linux swap / Solaris

Disk /dev/md2: 98.0 GB, 97984118784 bytes
2 heads, 4 sectors/track, 23921904 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

So would really need some one's help to effectively utilize this hard disk space. Expand the OS and add more storage.

Hope some one here help me out.

Regards
 
Hello,

It seems you've got a RAID (mirror) built of two disks. The third is either is used as spare or not mounted at all.

check output of:

Code:
cat /proc/mdstat

If you need someone to change it please feel free to contact me by PM for a quote.
 
Hello,

It seems you've got a RAID (mirror) built of two disks. The third is either is used as spare or not mounted at all.

check output of:

Code:
cat /proc/mdstat

If you need someone to change it please feel free to contact me by PM for a quote.

Here is the output -

Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md1 : active raid1 sdc1[2] sdb1[1] sda1[0]
20478912 blocks [3/3] [UUU]

md2 : active raid1 sdc2[2] sdb2[1] sda2[0]
95687616 blocks [3/3] [UUU]

unused devices: <none>
 
I'd rather suggest to use 2 x SSD in a mirror (RAID-1) and + 1 SSD mounted for extra purposes.

Though it's possible to use the three disks without mirror so to get ~360 Gb of disk space. That's risky. But still possible.
 
I'd rather suggest to use 2 x SSD in a mirror (RAID-1) and + 1 SSD mounted for extra purposes.

Though it's possible to use the three disks without mirror so to get ~360 Gb of disk space. That's risky. But still possible.

Can you help me out doing that... .. around 100GB data would be enough for my sites data... so rest can be used effectively to avoid slowing things out.
 
Alex, may i ask why not RAID5? Since there are 3 disks he should use a RAID5 to have 250GB Space without leave a disk out of the RAID with the risk that may cause (if important data in it of course) :)

Regards
 
RAID5 would be ideal for this. But in this case a boot from a rescue disk is required, and there might be a downtime for several hours while raid rebuilding and filesystem resizing.
 
Back
Top