vo0d0o

Registered
Apr 11, 2016
2
0
1
Netherlands
cPanel Access Level
Root Administrator
Hello,
i have dedicated server with 2 * 1 TB harddrives.
Currently i can use only 1 hdd.
How can i use the 2nd 1TB hdd for accounts (hosting) too?

In WHM at
Home » Server Status » Server Information
i see this info :
Code:
Physical Disks
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:0:0: [sdb] Attached SCSI disk
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 type 0
Code:
Current Disk Usage
Filesystem      Size  Used Avail Use% Mounted on
/dev/md1        909G   83G  780G  10% /
tmpfs            16G     0   16G   0% /dev/shm
/dev/md0        477M   41M  411M  10% /boot
/usr/tmpDSK     4.0G  1.2G  2.6G  32% /tmp
At SSH is see this info:
Code:
df -a
Filesystem     1K-blocks     Used Available Use% Mounted on
/dev/md1       952410044 86845868 817177824  10% /
proc                   0        0         0    - /proc
sysfs                  0        0         0    - /sys
devpts                 0        0         0    - /dev/pts
tmpfs           16353884        0  16353884   0% /dev/shm
/dev/md0          487588    41619    420373  10% /boot
none                   0        0         0    - /proc/sys/fs/binfmt_misc
/usr/tmpDSK      4128448  1230408   2688328  32% /tmp
/tmp             4128448  1230408   2688328  32% /var/tmp
Which HDD is not usable for WHM ? SDB (= md2)
What i must do to use the 2nd 1TB HDD to create accounts in WHM?
(cPanel create at the installation a /home folder at the HDD where all
accounts stored in)
I want to make the 2nd HDD usable as md2 with the /home2 folder on it.

Please help... i don't know which drive is in use and which one is free (currently not used).
Is md1 = SDA ???

Thanks in advice for your help!
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
Hello :),

At this time you are using only one HDD for your server. You have create only / paratition on your server that mean your cPanel and your hosting accounts are using that 1st HDD of your server. First You need to check your RAID and HDD configuration on your server.

Please provide me the following commands output so that we can assist you on this.

Code:
lsblk

cat /proc/mdstat

fdisk -l | grep Disk

mdadm --detail /dev/md0

mdadm --detail /dev/md1

mdadm --detail /dev/md2
 

vo0d0o

Registered
Apr 11, 2016
2
0
1
Netherlands
cPanel Access Level
Root Administrator
Hello, here are the outputs you want

Code:
lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
loop0     7:0    0     4G  0 loop  /tmp
sda       8:0    0 931.5G  0 disk
├─sda1    8:1    0     8G  0 part  [SWAP]
├─sda2    8:2    0   923G  0 part
│ └─md1   9:1    0 922.9G  0 raid1 /
└─sda3    8:3    0   500M  0 part
  └─md0   9:0    0   500M  0 raid1 /boot
sdb       8:16   0 931.5G  0 disk
├─sdb1    8:17   0     8G  0 part  [SWAP]
├─sdb2    8:18   0   923G  0 part
│ └─md1   9:1    0 922.9G  0 raid1 /
└─sdb3    8:19   0   500M  0 part
  └─md0   9:0    0   500M  0 raid1 /boot
Code:
cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda3[0] sdb3[1]
      511936 blocks super 1.0 [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1]
      967727104 blocks super 1.1 [2/2] [UU]
      bitmap: 3/8 pages [12KB], 65536KB chunk

unused devices: <none>
Code:
fdisk -l | grep Disk
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
Disk identifier: 0x000bef1b
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
Disk identifier: 0x00042222
Disk /dev/md1: 991.0 GB, 990952554496 bytes
Disk identifier: 0x00000000
Disk /dev/md0: 524 MB, 524222464 bytes
Disk identifier: 0x00000000
Code:
mdadm --detail /dev/md0
/dev/md0:
        Version : 1.0
  Creation Time : Tue Apr  5 10:18:24 2016
     Raid Level : raid1
     Array Size : 511936 (500.02 MiB 524.22 MB)
  Used Dev Size : 511936 (500.02 MiB 524.22 MB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Sun Apr 10 17:47:35 2016
          State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
  Spare Devices : 0

           Name : sd-74634:0
           UUID : 4eb3fe40:33991329:f6838134:b1532fc4
         Events : 22

    Number   Major   Minor   RaidDevice State
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3
Code:
mdadm --detail /dev/md1
/dev/md1:
        Version : 1.1
  Creation Time : Tue Apr  5 10:18:25 2016
     Raid Level : raid1
     Array Size : 967727104 (922.90 GiB 990.95 GB)
  Used Dev Size : 967727104 (922.90 GiB 990.95 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Mon Apr 11 13:48:17 2016
          State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
  Spare Devices : 0

           Name : sd-74634:1
           UUID : 77179c54:47cb69fe:63917336:88604688
         Events : 3338

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       18        1      active sync   /dev/sdb2
Code:
mdadm --detail /dev/md2
mdadm: cannot open /dev/md2: No such file or directory