Disk UNAVAIL in zpool status

Status
Not open for further replies.

fenglin911a

Cadet
Joined
Jul 24, 2013
Messages
5
Hello, I am new for freenas.

FreeNAS Build FreeNAS-8.0.1-RELEASE-amd64 (8081)
Drives are in a Z2+0 array (RAID 60) Drives are in two 8 drive z2 arrays which are striped together

The problem is one of the disks was failed and we couldn't start the server, so we removed the disk and the server can boot normally. but it shows the alert : The volume XX (ZFS) status is DEGRADED
Then we bought a new drive and I just insert it to the server.

Now from the gui-zpool status, this disk here show UNAVAIL

raidz2 ONLINE
da0p2 ONLINE
da1p2 ONLINE
da2p2 ONLINE
da3p2 ONLINE
da4p2 ONLINE
da5p2 ONLINE
da6p2 ONLINE
da7p2 ONLINE
raidz2 DEGRADED
4970748511577484581 UNAVAIL
da8p2 ONLINE
da9p2 ONLINE
da10p2 ONLINE
da11p2 ONLINE
da12p2 ONLINE
da13p2 ONLINE
da14p2 ONLINE


and from view disks here show unknown.



9 Unknown {uuid}d72afb6a-fb67-11e0-a755-0025905333f0 Member of mega raidz21 Auto Always On Disabled Disabled true

How should I do to see the new disk and replace it?

 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Follow the section of the manual for disk replacement. See section 6.3.11 of the FreeNAS manual.
 

fenglin911a

Cadet
Joined
Jul 24, 2013
Messages
5
Follow the section of the manual for disk replacement. See section 6.3.11 of the FreeNAS manual.

Thanks for your reply I read the manual yesterday.

Now I don't see the disk offline and it only shows UNAVAIL, and from here I don't see any offline option for this disk.

2. If the hardware is not AHCI capable, shutdown the system in order to physically replace the disk. When finished, return to the GUI and locate the OFFLINE disk.
3. Once the disk is showing as OFFLINE, click the disk again and then click its “Replace” button. Select the replacement disk from the drop-down menu and click the “Replace Disk” button. If the disk is a member of an encrypted ZFS pool, you will be prompted to input the passphrase for the pool. Once you click the “Replace Disk” button, the ZFS pool will start to resilver. You can use the zpool status command in Shell to monitor the status of the resilvering.
4. If the replaced disk continues to be listed after resilvering is complete, click its entry and use the Detach button to remove the disk from the list.
In the example shown in Figure 6.3r, failed disk ada0 is being replaced by disk ada3 in the encrypted volume named volume1. A warning message reminds you that you need to create a new recovery key after the disk is replaced.


I guess this is the right steps? can I zpool the UNAVAIL disk?

The following are the basic steps for replacing a disk:
■ Offline the disk, if necessary, with the zpool offline command.
■ Remove the disk to be replaced.
■ Insert the replacement disk.
■ Run the zpool replace command. For example: zpool replace pool_name old_device new_device (New device should be given as /dev/name).
■ Bring the disk online with the zpool online command.
 

fenglin911a

Cadet
Joined
Jul 24, 2013
Messages
5
Also this 4970748511577484581 UNAVAIL drive was da8p2, but now the next drive took it place. how could I resolve this?

Thanks
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Correct, the daXX number increases sequentially for your drives. If da6 fails and you reboot the drive that was da7 will now be da6, da8 will be da7, and so on.

The failed disk should have a "replace" button next to it. Click the replace button and choose your new disk. Resilvering should then begin. After that's done(which could take some hours) you'll have to "detach" the failed disk to remove it from the zpool permanently.
 

fenglin911a

Cadet
Joined
Jul 24, 2013
Messages
5
Correct, the daXX number increases sequentially for your drives. If da6 fails and you reboot the drive that was da7 will now be da6, da8 will be da7, and so on.

The failed disk should have a "replace" button next to it. Click the replace button and choose your new disk. Resilvering should then begin. After that's done(which could take some hours) you'll have to "detach" the failed disk to remove it from the zpool permanently.


Thanks so much!

As I mentioned above I just insert the new disk to the DA8 spot (I removed the failed disk), now from the GUI if I click the replace I can't see the drive, and from the zpool status, it's showing like this.

Do I have to do restart the server in order to see the disk?
 

Attachments

  • 3.jpg
    3.jpg
    21.6 KB · Views: 742
  • 1.jpg
    1.jpg
    17.4 KB · Views: 782
  • 2.jpg
    2.jpg
    56.7 KB · Views: 792

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
It looks like you do need to reboot.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
When you do I'd go into your BIOS and make sure your SATA controller is set to AHCI mode. If you are using a HBA/RAID controller you should have AHCI set in there as well.
 
Joined
Aug 30, 2018
Messages
1
Hi, I have the same problem

Code:
sistemas@nas-02:~ % zpool status -v
  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0h1m with 0 errors on Tue Aug 28 03:46:29 2018
config:

	NAME		STATE	 READ WRITE CKSUM
	freenas-boot  ONLINE	   0	 0	 0
	  ada3p2	ONLINE	   0	 0	 0

errors: No known data errors

  pool: pool-01
 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 0h27m with 0 errors on Sun Aug 19 00:27:25 2018
config:

	NAME											STATE	 READ WRITE CKSUM
	pool-01										 DEGRADED	 0	 0	 0
	  raidz2-0									  DEGRADED	 0	 0	 0
		11511086115832652850						UNAVAIL	  0	 0	 0  was /dev/gptid/10ccf29a-75fb-11e6-8939-984be1088343
		gptid/11e2376c-75fb-11e6-8939-984be1088343  ONLINE	   0	 0	 0
		gptid/12ca8427-75fb-11e6-8939-984be1088343  ONLINE	   0	 0	 0
		gptid/13f0a299-75fb-11e6-8939-984be1088343  ONLINE	   0	 0	 0



I try reboot and the disk is AHCI mode :(

Regards
 
Status
Not open for further replies.
Top