This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Identifying hard drives

Hard disks, HDD, RAID Hardware, disk controllers, SATA, PATA, SCSI, IDE, On Board, USB, Firewire, CF (Compact Flash)
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
rlgs
NewUser
NewUser
Posts: 3
Joined: 02 May 2013 06:15
Status: Offline

Identifying hard drives

Post by rlgs »

I've recently built a NAS box using an 8 port RAID card. I'm not using it for RAID, and I have a single ZFS pool.. N4F can see the drives and has assigned them names of mfid0 - 7 but it can't identify the drive model or serial number.

Now one of the drives has failed (mfid7) but I don't know which one it is. Is there a way to identify it other than by removing each drive one by one and rebooting N4F?

Also, since N4F can't read the SMART status of the drives I can't use the email report to notify me of a drive failure. Is there a way to query the ZFS status with a script?

User avatar
dnar
Starter
Starter
Posts: 65
Joined: 27 Apr 2013 10:38
Location: Perth Australia
Status: Offline

Re: Identifying hard drives

Post by dnar »

Have you enabled SMART for each drive in N4F?

Drive 0 should be the one connected to the first card port and so on.
NAS 1: NAS4Free 9.3.0.2 x64 embedded, Intel Core 2 E8400, 8GB, 6 x WD Green 1TB in RAIDZ2, Highpoint 2720 SAS x 8 card 6Gbps
NAS 2: NAS4Free 10.2.0.2 x64 embedded, Intel Core i3-3220, 8GB, 7 x WD Green 750GB in RAIDZ1, onboard SATA 3Gbps

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4865
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Identifying hard drives

Post by raulfg3 »

Add disk one At time, And write serial number in name field.
Once done , print/save your disk config. So If one disk fail, You can easy identify.


Other option is to label disk using gpart, prior to add to zfs pool.
12.1.0.4 - Ingva (revision 7743) on SUPERMICRO X8SIL-F 8GB of ECC RAM, 11x3TB disk in 1 vdev = Vpool = 32TB Raw size , so 29TB usable size (I Have other NAS as Backup)

Wiki
Last changes

HP T510

rlgs
NewUser
NewUser
Posts: 3
Joined: 02 May 2013 06:15
Status: Offline

Re: Identifying hard drives

Post by rlgs »

Thansk for the replies dnar and raulfg3. SMART is enabled but it can't be read through the RAID card. I have 2 more drives connected to the motherboard and N4F can see them and their SMART data OK. The SATA cables I'm using have a 4 to 1 configuration, so I can't trace which one is which.

I guess I should have taken the time to identify the drives properly when I set it up. Using gpart is a good idea.
It looks like I'll have to do it the hard way now :-(

esyan
NewUser
NewUser
Posts: 3
Joined: 06 May 2013 08:11
Status: Offline

Re: Identifying hard drives

Post by esyan »

HI:
I am assuming you have a Perc5 or Perc6 sata controller?
I believe it's the controller that's changing yout drives when a drive fail.
Nas4free does not have a module buiild in for your mfid0-7 drives.

This is How I find my drives location.
You have 2 options:
a) Get a usb dvd player and load FreeBSD 8.3 or 9.1 DVD and boot up with it.
After it boots, You do not want to install FreeBSD but goto " FIXIT ".
It's the option I use to run " MFIUTIL " .
ie: mfiutil show drives
This will list the drives you have at your controller.
Do a search mfiutil
b) Copy an image to a usb drive with FreeBSD 8.3 or 9.1.
Use the same instruction above.
Using mfiutil will get the serial numbers and location of the drives.

Turn " OFF " your nas sytem.
Pull out the bad drive and compare the serial number with the printout.
install new drive, turn your system back "ON"

I find you have to go into Perc5 controller bios first to rename all the drives that connected to the controller.
ie: disk00, disk01, disk02, ... disk07.
it's like seting up your controller the first time.
This will set your original confiiguration before a drive had fail.
Exit from controller bios and let Nas4free complete boot up.
You can use putty to connect to your NAS.
Login in putty and initialize your new drive and add to your zpool.

That' it...

I am trying to compile mfiutil into nas4free but no success at the moment.
If someone know's howto. Please let me know.

dreesedatalink
NewUser
NewUser
Posts: 3
Joined: 06 May 2013 18:01
Status: Offline

Re: Identifying hard drives

Post by dreesedatalink »

depending on the raid card manufacturer most have an identify disk function. and from nas4free you should be able to match drive serial numbers from webUI to raid bios then in raid bios its usually labeled as blink drive or locate disk something along those lines.


hope it helps.

rlgs
NewUser
NewUser
Posts: 3
Joined: 02 May 2013 06:15
Status: Offline

Re: Identifying hard drives

Post by rlgs »

Esyan, it's an LSI card. I don't think it was changing the drives, I just hadn't identified them properly when I built the NAS and so I was unprepared when a drive failed. Your suggestion looks interesting and I'll try it next time, but I have already identified the drives now by adding them one at a time. Mfiutil looks like it would be a good addition to N4F, good luck with implementing it.

Dreesedatalink, unfortunately there were no drive serial numbers in the webui, otherwise the job would have been much simpler. There no lights on my hard drives either, it's a budget NAS built from spare parts and leftover hard drives from an office upgrade. It would be a good idea to have HDD lights though, I'm not sure if this card supports that but I'll have a look and see if it does.

Post Reply

Return to “Hard disk & controller”