I managed to get server 2 running ok with the replaced disk and I have 2 spares
again. But server 1 is difficult…
format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <HP-LOGICAL VOLUME-6.64-136.70GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@0,0
1. c0t1d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@1,0
2. c0t2d0 <drive type unknown>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@2,0
Disk number 2 is reported as OK from the HP ilo page. It is the same drive as
number 0 and 1 (and all other disks)
I tried a lot of things to get it recognized and to attach it as spare to the
pool, but nothing works.
zpool add zones spare c0t2d0
cannot label 'c0t2d0': try using fdisk(1M) and then provide a specific slice
fdisk c0t2d0
fdisk: Cannot open device /dev/rdsk/c0t2d0.
format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <HP-LOGICAL VOLUME-6.64-136.70GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@0,0
1. c0t1d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@1,0
2. c0t2d0 <drive type unknown>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@2,0
3. c0t3d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@3,0
4. c0t4d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@4,0
5. c0t5d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@5,0
6. c0t6d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@6,0
7. c0t8d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@8,0
8. c0t9d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@9,0
9. c0t10d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@a,0
10. c0t11d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@b,0
11. c0t12d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@c,0
12. c0t13d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@d,0
13. c0t14d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@e,0
14. c0t15d0 <HP-LOGICAL VOLUME-6.64-279.37GB>
/pci@0,0/pci8086,3408@1/pci103c,3245@0/sd@f,0
Specify disk (enter its number): 2
Error: can't open disk '/dev/rdsk/c0t2d0p0'.
AVAILABLE DRIVE TYPES:
0. Auto configure
1. Quantum ProDrive 80S
2. Quantum ProDrive 105S
3. CDC Wren IV 94171-344
4. SUN0104
5. SUN0207
6. SUN0327
7. SUN0340
8. SUN0424
9. SUN0535
10. SUN0669
11. SUN1.0G
12. SUN1.05
13. SUN1.3G
14. SUN2.1G
15. SUN2.9G
16. Zip 100
17. Zip 250
18. Peerless 10GB
19. other
Specify disk type (enter its number):
Specify disk type (enter its number): 0
Auto configure failed
No Solaris fdisk partition found.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format>
so I am a little bit lost at this point, I read some thing about dd-ing a
working disk layout to this disk but that didn’t work either.
dd if=/dev/rdsk/c0t12d0s2 of=/dev/dsk/c0t2d0s2
dd: /dev/rdsk/c0t12d0s2: open: I/O error
Van: Schweiss, Chip [mailto:[email protected]]
Verzonden: vrijdag 28 juli 2017 22:16
Aan: [email protected]
Onderwerp: Re: [smartos-discuss] zpool repair fails
The replace is already done. You need to detach the old disk from the pool:
zpool detach zones 4055832659617835295
-Chip
On Fri, Jul 28, 2017 at 11:58 AM, the outsider <[email protected]
<mailto:[email protected]> > wrote:
I have 2 SmartOS servers and suddenly they both had a faulty drive.
Nothing was damaged, since the zones pool has 2 spares and it took one of the
spares to replace the faulty drive.
But….
We have exchanged the faulty drives and we want to have a healthy pool of
course. And there I fail at knowledge
Both new drives are recognized by the server ILO and marked as good.
zpool status -x
pool: zones
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
repaired.
scan: resilvered 90.9G in 0h39m with 0 errors on Sat Jul 8 07:38:18 2017
config:
NAME STATE READ WRITE CKSUM
zones DEGRADED 0 0 0
mirror-0 ONLINE 0 0 0
c0t10d0 ONLINE 0 0 0
c0t11d0 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
c0t12d0 ONLINE 0 0 0
c0t13d0 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
c0t14d0 ONLINE 0 0 0
c0t15d0 ONLINE 0 0 0
mirror-3 DEGRADED 0 0 0
c0t1d0 ONLINE 0 0 0
spare-1 DEGRADED 0 0 0
c0t2d0 FAULTED 0 0 0 too many errors
c0t8d0 ONLINE 0 0 0
mirror-4 ONLINE 0 0 0
c0t3d0 ONLINE 0 0 0
c0t4d0 ONLINE 0 0 0
mirror-5 ONLINE 0 0 0
c0t5d0 ONLINE 0 0 0
c0t6d0 ONLINE 0 0 0
cache
c0t0d0 ONLINE 0 0 0
spares
c0t8d0 INUSE currently in use
c0t9d0 AVAIL
errors: No known data errors
zpool zones clear does nothing. Trying to replace c0t2d0 with c0t8d0 doesn’t
work either.
zpool replace zones c0t2d0 c0t8d0
cannot replace c0t2d0 with c0t8d0: c0t8d0 is busy
where to go from here?
The error at the other server is different:
zpool status -x
pool: zones
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 30.9G in 2h16m with 0 errors on Wed Jul 5 21:33:29 2017
config:
NAME STATE READ WRITE CKSUM
zones DEGRADED 0 0 0
mirror-0 ONLINE 0 0 0
c1t0d0 ONLINE 0 0 0
c1t9d0 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
c1t10d0 ONLINE 0 0 0
c1t11d0 ONLINE 0 0 0
mirror-2 ONLINE 0 0 0
c1t12d0 ONLINE 0 0 0
c1t13d0 ONLINE 0 0 0
mirror-3 ONLINE 0 0 0
c1t14d0 ONLINE 0 0 0
c1t2d0 ONLINE 0 0 0
mirror-4 DEGRADED 0 0 0
c1t3d0 ONLINE 0 0 0
spare-1 DEGRADED 0 0 0
4055832659617835295 UNAVAIL 0 0 0 was
/dev/dsk/c1t4d0s0
c1t7d0 ONLINE 0 0 0
mirror-5 ONLINE 0 0 0
c1t5d0 ONLINE 0 0 0
c1t6d0 ONLINE 0 0 0
cache
c1t1d0 ONLINE 0 0 0
spares
c1t7d0 INUSE currently in use
c1t8d0 AVAIL
errors: No known data errors
smartos-discuss | <https://www.listbox.com/member/archive/184463/=now>
Archives <https://www.listbox.com/member/archive/rss/184463/27966043-4eecc9e4>
| <https://www.listbox.com/member/?&> Modify Your Subscription
<http://www.listbox.com>
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com