ZFS Add Disk-By-ID = wwn?

Status
Not open for further replies.
Hey all... did a search for this but didn't see anything, so sorry if this is already posted. I originally (being a newb to zfs) created my vdev by using /dev/sdc /dev/sdd, etc (yea i know...real bad move!)...and it eventually bit me in the ass. After many reboots I was able to get my home server to align the drives correctly and my pool came back.

In order to fix this I did a zpool export <pool> and then ran zpool import -d /dev/disk/by-id <pool>

This seems to have kinda worked, but rather then grab the disk-id, it seems to have grabbed the wwn. If i do a ls -la /dev/disk/by-id | grep sdd i get the following.
Code:
scsi-35000c50065b811cb -> ../../sdd
scsi-35000c50065b811cb-part1 -> ../../sdd1
scsi-35000c50065b811cb-part9 -> ../../sdd9
scsi-SATA_ST1000NM0033-9ZM_Z1W16VXC -> ../../sdd
scsi-SATA_ST1000NM0033-9ZM_Z1W16VXC-part1 -> ../../sdd1
scsi-SATA_ST1000NM0033-9ZM_Z1W16VXC-part9 -> ../../sdd9
wwn-0x5000c50065b811cb -> ../../sdd
wwn-0x5000c50065b811cb-part1 -> ../../sdd1
wwn-0x5000c50065b811cb-part9 -> ../../sdd9
So I have 2 questions: 1> which of these is the actual disk id? If I were to destroy my pool and recreate it, which one do I use? 2> Is it good / acceptable practice to leave these as wwn. I read on another forum that I can do a rm -rf wwn* from /dev/disk/by-id and then re-export and import and it will grab the correct id...is this accurate and safe?

Thanks in advance for any assistance!
 
Judging by the disk nominations, you're on Linux. This is a FreeBSD forum, we support FreeBSD and FreeBSD alone. We're not a "generic" ZFS support forum just because FreeBSD uses ZFS.

Rule #7: FreeBSD Forums Rules

Thread locked.
 
/dev/sd[a..z]? Are you sure you are on the right OS forum?
 
Status
Not open for further replies.
Back
Top