Getting disk serial - mapping gptid to mfituil ?

Status
Not open for further replies.

elliotpea

Cadet
Joined
Jul 28, 2017
Messages
7
I have a failed drive in a FreeNas server hosted at OVH. I need to get the drive swapped, but i'm extremely conscious of them pulling the wrong drive.

FreeNas isn't reporting any serial numbers in it's GUI. I have done the below so far, I don't know how to map the device to the drive serial.

pool: vol0
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: scrub repaired 0 in 15h23m with 0 errors on Sun Jul 9 23:23:55 2017
config:

NAME STATE READ WRITE CKSUM
vol0 DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
4720622759705179538 UNAVAIL 0 64 0 was /dev/gptid/2a4bad04-4573-11e7-bd76-001e67cb3c7a
gptid/2af09f67-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
gptid/2b9ad3ca-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
gptid/2c440267-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
gptid/2ce91024-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
gptid/2d8f9a88-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
mirror-3 ONLINE 0 0 0
gptid/2e376cc0-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
gptid/2edb2c23-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
mirror-4 ONLINE 0 0 0
gptid/2f8402f6-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
gptid/302bfda0-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
mirror-5 ONLINE 0 0 0
gptid/30d274f0-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
gptid/317ad2a6-4573-11e7-bd76-001e67cb3c7a ONLINE 0 0 0
logs
gptid/cd56ac86-4576-11e7-bd76-001e67cb3c7a ONLINE 0 0 0

Using glabel to get the device:

#glabel status | grep 2af09f67-4573-11e7-bd76-001e67cb3c7a
gptid/2af09f67-4573-11e7-bd76-001e67cb3c7a N/A mfisyspd5p2

Mfiutil:

#mfiutil show drives
mfi0 Physical Drives:
9 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ48KYH> SCSI-6 E1:S5
10 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ49TKH> SCSI-6 E1:S2
11 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ48EMH> SCSI-6 E1:S6
12 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ4AS6H> SCSI-6 E1:S8
13 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ49HWH> SCSI-6 E1:S9
14 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ48RDH> SCSI-6 E1:S10
15 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ48NVH> SCSI-6 E1:S1
16 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ49T1H> SCSI-6 E1:S11
17 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ48T9H> SCSI-6 E1:S4
18 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ4BAMH> SCSI-6 E1:S7
19 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ4A0JH> SCSI-6 E1:S3
20 ( 5589G) JBOD <HGST HUS726060ALS640 A2D0 serial=1EJ4AX8H> SCSI-6 E1:S0
21 ( 149G) JBOD <INTEL SSDSC2BB16 0370 serial=BTWL340106TD160MGN> SATA E2:S4

I now have serial numbers and devices, how do i map the two together?


Thanks,

Elliot
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
smartctl -a will show you serial numbers. But since you are using a raid card who knows what you are going to get. You should get a proper HBA before you lose your data.
 

BigDave

FreeNAS Enthusiast
Joined
Oct 6, 2013
Messages
2,479
response deleted
 

elliotpea

Cadet
Joined
Jul 28, 2017
Messages
7
Hi,

Thanks for the reply,

This is a temporary server until i shift a few things in our rack and purchase a new server - it's a backup server so it's not mission critical.

smartctl is showing nothing useful due to the LSI raid card. Everything is in passthru at the moment.

Is there any other way to map the two together?

Failing that can i detect the dead disk from mfiuttl, megacli, or from the raid bios if i reboot?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
This is why you can't is raid cards, plus the data loss thing. If this isn't mission critical rebuild it because I'm my eyes you don't have a backup.

Other than that I have no clue how you get the serial numbers. How do you replace a drive when it's in a raid? Try your raid card manual?

Sent from my Nexus 5X using Tapatalk
 
Status
Not open for further replies.
Top