Jared Stoker
Cadet
- Joined
- Sep 20, 2014
- Messages
- 6
Ok, I'm new to freenas and I have a small pool of 4 random sized drives. I was planning on removing one of the smaller ones and replacing it with a larger one. First I detached the pool, then I wiped the drive in question. <insert expletives>. I did in fact look up ways to do this first. Anyways, I need help to add the wiped drive back into the zpool so that I can reattach the pool. The wipe was a quick one and didn't wipe any of the hard data. - ada3 is the drive I need to add back in.
[root@freenas] /# camcontrol devlist
<COMPAQ RAID 1(1+0) OK> at scbus0 target 0 lun 0 (da0,pass0)
<COMPAQ RAID 0 OK> at scbus0 target 1 lun 0 (da1,pass1)
<ST31500341AS CC1H> at scbus3 target 0 lun 0 (ada0,pass2)
<ST3250823AS 3.03> at scbus3 target 1 lun 0 (ada1,pass3)
<WDC WD3200AAJS-00L7A0 01.03E01> at scbus4 target 0 lun 0 (ada2,pass4)
<ST3160811AS 3.AAE> at scbus4 target 1 lun 0 (ada3,pass5)
<SanDisk Cruzer 1.26> at scbus6 target 0 lun 0 (pass6,da2)
[root@freenas] /# gpart show ada3
=> 34 312581741 ada3 GPT (149G)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 308387336 2 freebsd-zfs (147G)
312581768 7 - free - (3.5k)
[root@freenas] /# zpool import
pool: Backup
id: 7530902688017962925
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://illumos.org/msg/ZFS-8000-6X
config:
Backup UNAVAIL missing device
gptid/c2511c04-1c30-11e4-b749-001517294f28 ONLINE
gptid/c2d7fe55-1c30-11e4-b749-001517294f28 ONLINE
gptid/c3479575-1c30-11e4-b749-001517294f28 ONLINE
cache
18258670900347583938
Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.
[root@freenas] /# glabel status
Name Status Components
gptid/c3479575-1c30-11e4-b749-001517294f28 N/A ada0p2
gptid/c2511c04-1c30-11e4-b749-001517294f28 N/A ada1p2
gptid/c2d7fe55-1c30-11e4-b749-001517294f28 N/A ada2p2
gptid/082aede9-1c31-11e4-b749-001517294f28 N/A da0p2
gptid/f00908e9-1c30-11e4-b749-001517294f28 N/A da1p2
ufs/FreeNASs3 N/A da2s3
ufs/FreeNASs4 N/A da2s4
ufs/FreeNASs1a N/A da2s1a
gptid/c19a6a37-1c30-11e4-b749-001517294f28 N/A ada3p2
[root@freenas] /# camcontrol devlist
<COMPAQ RAID 1(1+0) OK> at scbus0 target 0 lun 0 (da0,pass0)
<COMPAQ RAID 0 OK> at scbus0 target 1 lun 0 (da1,pass1)
<ST31500341AS CC1H> at scbus3 target 0 lun 0 (ada0,pass2)
<ST3250823AS 3.03> at scbus3 target 1 lun 0 (ada1,pass3)
<WDC WD3200AAJS-00L7A0 01.03E01> at scbus4 target 0 lun 0 (ada2,pass4)
<ST3160811AS 3.AAE> at scbus4 target 1 lun 0 (ada3,pass5)
<SanDisk Cruzer 1.26> at scbus6 target 0 lun 0 (pass6,da2)
[root@freenas] /# gpart show ada3
=> 34 312581741 ada3 GPT (149G)
34 94 - free - (47k)
128 4194304 1 freebsd-swap (2.0G)
4194432 308387336 2 freebsd-zfs (147G)
312581768 7 - free - (3.5k)
[root@freenas] /# zpool import
pool: Backup
id: 7530902688017962925
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: http://illumos.org/msg/ZFS-8000-6X
config:
Backup UNAVAIL missing device
gptid/c2511c04-1c30-11e4-b749-001517294f28 ONLINE
gptid/c2d7fe55-1c30-11e4-b749-001517294f28 ONLINE
gptid/c3479575-1c30-11e4-b749-001517294f28 ONLINE
cache
18258670900347583938
Additional devices are known to be part of this pool, though their
exact configuration cannot be determined.
[root@freenas] /# glabel status
Name Status Components
gptid/c3479575-1c30-11e4-b749-001517294f28 N/A ada0p2
gptid/c2511c04-1c30-11e4-b749-001517294f28 N/A ada1p2
gptid/c2d7fe55-1c30-11e4-b749-001517294f28 N/A ada2p2
gptid/082aede9-1c31-11e4-b749-001517294f28 N/A da0p2
gptid/f00908e9-1c30-11e4-b749-001517294f28 N/A da1p2
ufs/FreeNASs3 N/A da2s3
ufs/FreeNASs4 N/A da2s4
ufs/FreeNASs1a N/A da2s1a
gptid/c19a6a37-1c30-11e4-b749-001517294f28 N/A ada3p2