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!

Cannot Replace Failing Disk

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
budgynana
NewUser
NewUser
Posts: 2
Joined: 19 Sep 2014 14:59
Status: Offline

Cannot Replace Failing Disk

Post by budgynana »

I have a 6 disk RAID-Z2 and 1 of my drives is failing so I'm trying to replace it. I'm trying to follow the documentation and offline the drive but cannot as it says my ada2.nop is missing/not present. Skipping this, I've gone to replace the drive and issued the command:

Code: Select all

zpool replace poolname ada2
But it won't do anything. I've tried the same command with ada2.nop but no dice either. I'm not at home at the moment so I can't give the exact errors I've received but basically the nop device, or lack of, seems to be getting in the way.

I'm using a mix of 4K and non 4K drives and when I built the array I enabled advanced formatting, which created .nop devices. I exported the pool and used gnop destroy to remove these. Now this seems to be coming back and preventing me proceeding as it is looking for the nop devices. How do I get around this?

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Cannot Replace Failing Disk

Post by b0ssman »

Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

budgynana
NewUser
NewUser
Posts: 2
Joined: 19 Sep 2014 14:59
Status: Offline

Re: Cannot Replace Failing Disk

Post by budgynana »

That's the guide I tried to follow. Weird thing is it's now working. Still couldn't get the GUI to replace the disk but command line is working this time, resilvering right at this moment.

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

Re: Cannot Replace Failing Disk

Post by raulfg3 »

remenber to sync detected & current in: Disks|ZFS|Configuration

PD: Button Sync at the botton page.

http://wiki.nas4free.org/doku.php?id=do ... n_detected
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

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 758
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: Cannot Replace Failing Disk

Post by ChriZathens »

I am not 100% sure, but IIRC, if you shut down the system, replace the bad drive with a new one, and then turn on, only then

Code: Select all

zpool replace poolname adax 
works. At least in my experience taking first the drive offline leads to the need of using clear config and import disks and then

Code: Select all

zpool replace poolname 5232342453356624 adax 

Not sure if it happens to everyone, but that's what I've experienced twice so far..
Perhaps the wiki needs a review at this point, or maybe simply I am doing something wrong. ..
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)

Ian
NewUser
NewUser
Posts: 1
Joined: 03 Jun 2015 21:21
Status: Offline

Re: Cannot Replace Failing Disk

Post by Ian »

I tried to follow the wiki, but something does not seem to be right.

I got a dropped disk, so I shutdown and replaced the disk in the same slot and with the same cable connected to the same sata port.

What I got was:
but got

Code: Select all

nas4free:~# zpool status
  pool: tank
 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: resilvered 236K in 0h0m with 0 errors on Mon Jun  1 21:03:53 2015
config:

	NAME                     STATE     READ WRITE CKSUM
	tank                     DEGRADED     0     0     0
	  raidz2-0               DEGRADED     0     0     0
	    ada5p2               ONLINE       0     0     0
	    ada0p2               ONLINE       0     0     0
	    ada4p2               ONLINE       0     0     0
	    3012169731482246756  UNAVAIL      0     0     0  was /dev/ada1p2
	    ada2p2               ONLINE       0     0     0
	    ada3p2               ONLINE       0     0     0
The wiki says I should replace the disk with the command

Code: Select all

zpool replace <poolname> <device>
.
and provides the example:

Code: Select all

zpool replace pool0 ada2
On my system I tried the following:

Code: Select all

zpool replace tank ada1p2
But got back:

Code: Select all

cannot open 'ada1p2': no such GEOM provider. 
must be a full path or shorthand device name
The wiki also proves an example:

Code: Select all

zpool replace tank 8771208834592470066 ada1p1
Again on my system:

Code: Select all

zpool replace tank 3012169731482246756 ada1p2
but I got back:

Code: Select all

cannot open 'ada1p2': no such GEOM provider
must be a full path or shorthand device name
In fact I tried all kind of combinations:

"zpool replace tank ada1" => "cannot replace ada1 with ada1: no such device in pool"
"zpool replace tank /dev/ada1p2" => "cannot open '/dev/ada1p2': No such file or directory"
"zpool replace tank /dev/ada1" => "cannot replace /dev/ada1 with /dev/ada1: no such device in pool"
"zpool replace tank 30121697317482246756" => "cannot open '30121697317482246756': no such GEOM provider. must be a full path or shorthand device name"
"zpool replace tank 3012169731482246756 ada1p2" => "cannot open 'ada1p2': no such GEOM provider. must be a full path or shorthand device name"
"zpool replace tank 3012169731482246756 /dev/ada1p2 => "cannot open '/dev/ada1p2': No such file or directory"

Until I hit on:

Code: Select all

zpool replace tank 3012169731482246756 /dev/ada1
Bingo ...

Maybe it was just my machine, but what are the rules for the name of the BAD disk that should be used ?

Thanks
Ian

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Cannot Replace Failing Disk

Post by b0ssman »

ada1p2 means ada1 device partition 2.
if you have not created partition 2 you can not use it.
therefore only ada1 exists.
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

Post Reply

Return to “ZFS (only!)”