I have a Dell R730 server at work, which connects to a back-end storage with optical fiber cables. In addition, the server itself also has 6 disks. Two of the disks have already been configured as RAID1 and has the operating system installed on it.
Today, I want to configure the remaining 4 disks as RAID10, and setup logical volume on it. The first part was easy. All I had to do was to login to the Integrated Dell Remote Access Controller (iDRAC), and create a new Virtual Disk from the 4 physical disks. The second part is a bit tricky. As the server is connected to the stroage server, it sees a lot of disks.
# ls -l /dev/sd*
brw-rw----. 1 root disk 8, 0 Jan 24 23:53 /dev/sda
brw-rw----. 1 root disk 8, 1 Jan 24 23:53 /dev/sda1
brw-rw----. 1 root disk 8, 2 Jan 24 23:53 /dev/sda2
brw-rw----. 1 root disk 8, 16 Jan 25 02:31 /dev/sdb
brw-rw----. 1 root disk 8, 32 Jan 24 23:55 /dev/sdc
brw-rw----. 1 root disk 8, 48 Jan 24 23:55 /dev/sdd
brw-rw----. 1 root disk 8, 64 Jan 24 23:53 /dev/sde
brw-rw----. 1 root disk 8, 80 Jan 24 23:53 /dev/sdf
brw-rw----. 1 root disk 8, 96 Jan 24 23:53 /dev/sdg
brw-rw----. 1 root disk 8, 112 Jan 24 23:53 /dev/sdh
brw-rw----. 1 root disk 8, 128 Jan 24 23:53 /dev/sdi
brw-rw----. 1 root disk 8, 144 Jan 24 23:53 /dev/sdj
brw-rw----. 1 root disk 8, 160 Jan 24 23:53 /dev/sdk
brw-rw----. 1 root disk 8, 176 Jan 24 23:53 /dev/sdl
brw-rw----. 1 root disk 8, 192 Jan 24 23:53 /dev/sdm
brw-rw----. 1 root disk 8, 208 Jan 24 23:53 /dev/sdn
brw-rw----. 1 root disk 8, 224 Jan 24 23:53 /dev/sdo
brw-rw----. 1 root disk 8, 240 Jan 24 23:53 /dev/sdp
brw-rw----. 1 root disk 65, 0 Jan 24 23:53 /dev/sdq
brw-rw----. 1 root disk 65, 16 Jan 24 23:55 /dev/sdr
I need to identify which device is the disk presented by the Dell’s controller PERC H730P.
# lshw -short -C disk
H/W path Device Class Description
=============================================================
/0/100/1/0/2.0.0 /dev/sda disk 299GB PERC H730P Mini
/0/100/1/0/2.1.0 /dev/sdb disk 3999GB PERC H730P Mini
/0/100/2.2/0/0.2.0 /dev/sdi disk 1999GB DS4200
/0/100/2.2/0/0.2.1 /dev/sdj disk 1999GB DS4200
/0/100/2.2/0/0.3.0 /dev/sdl disk 1999GB DS4200
/0/100/2.2/0/0.3.1 /dev/sdn disk 1999GB DS4200
/0/100/2.2/0/0.0.0 /dev/sdc disk 3298GB MD36xxf
/0/100/2.2/0/0.0.1 /dev/sdd disk 3298GB MD36xxf
/0/100/2.2/0/0.0.1f disk 20MB Universal Xport
/0/100/2.2/0/0.1.0 /dev/sde disk 3298GB MD36xxf
/0/100/2.2/0/0.1.1 /dev/sdf disk 3298GB MD36xxf
/0/100/2.2/0/0.1.1f disk 20MB Universal Xport
/0/100/2.2/0.1/0.0.1f disk 20MB Universal Xport
/0/100/2.2/0.1/0.1.0 /dev/sdk disk 3298GB MD36xxf
/0/100/2.2/0.1/0.1.1 /dev/sdm disk 3298GB MD36xxf
/0/100/2.2/0.1/0.1.1f disk 20MB Universal Xport
/0/100/2.2/0.1/0.2.0 /dev/sdo disk 1999GB DS4200
/0/100/2.2/0.1/0.2.1 /dev/sdp disk 1999GB DS4200
/0/100/2.2/0.1/0.3.0 /dev/sdq disk 1999GB DS4200
/0/100/2.2/0.1/0.3.1 /dev/sdr disk 1999GB DS4200
/0/100/2.2/0.1/0.0.0 /dev/sdg disk 3298GB MD36xxf
/0/100/2.2/0.1/0.0.1 /dev/sdh disk 3298GB MD36xxf
/0/100/1f.2/0.0.0 /dev/cdrom disk DVD+-RW GTA0N
It’s /dev/sdb
, as it’s close to being the 4TB created from 4 x 2TB disks as RAID10.
As I’m about to finish this post, I also found out that I could have easily used this command instead:
# multipath -ll
mpathe (3600c0ff00029c8b1f6fa0e5a01000000) dm-5 Lenovo ,DS4200
size=1.8T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| `- 11:0:2:1 sdj 8:144 active ready running
|-+- policy='service-time 0' prio=50 status=enabled
| `- 12:0:3:1 sdr 65:16 active ready running
|-+- policy='service-time 0' prio=10 status=enabled
| `- 11:0:3:1 sdn 8:208 active ready running
`-+- policy='service-time 0' prio=10 status=enabled
`- 12:0:2:1 sdp 8:240 active ready running
mathvm4_vd2 (36d4ae52000a5fa490000105b58dc9a7b) dm-3 DELL ,MD36xxf
size=3.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 rdac' wp=rw
|-+- policy='service-time 0' prio=14 status=active
| |- 11:0:0:1 sdd 8:48 active ready running
| `- 12:0:1:1 sdm 8:192 active ready running
`-+- policy='service-time 0' prio=9 status=enabled
|- 11:0:1:1 sdf 8:80 active ready running
`- 12:0:0:1 sdh 8:112 active ready running
mathvm4_vd1 (36d4ae52000a5fa490000105a58dc9a23) dm-4 DELL ,MD36xxf
size=3.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 rdac' wp=rw
|-+- policy='service-time 0' prio=14 status=active
| |- 11:0:1:0 sde 8:64 active ready running
| `- 12:0:0:0 sdg 8:96 active ready running
`-+- policy='service-time 0' prio=9 status=enabled
|- 11:0:0:0 sdc 8:32 active ready running
`- 12:0:1:0 sdk 8:160 active ready running
mpathg (361866da0770b210021fb3b86ab7cff72) dm-6 DELL ,PERC H730P Mini
size=3.6T features='0' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
`- 0:2:1:0 sdb 8:16 active ready running
mpathf (3600c0ff00029c7d7f5fa0e5a01000000) dm-2 Lenovo ,DS4200
size=1.8T features='0' hwhandler='0' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| `- 11:0:3:0 sdl 8:176 active ready running
|-+- policy='service-time 0' prio=50 status=enabled
| `- 12:0:2:0 sdo 8:224 active ready running
|-+- policy='service-time 0' prio=10 status=enabled
| `- 12:0:3:0 sdq 65:0 active ready running
`-+- policy='service-time 0' prio=10 status=enabled
`- 11:0:2:0 sdi 8:128 active ready running
Great, now I can continue to setup LVM on /dev/sdb
.