Hi.

I have a disk in my pool that shows signs of failures.

---8<---------------------------------------------------------------------------
- dmesg extract
2016-07-19T09:22:38.825099+00:00 9c-8e-99-fc-12-b0 scsi: [ID 107833 
kern.notice] /pci@0,0/pci8086,340f@8/pci1000,3020@0 (mpt_sas0):#012#011Timeout 
of 10 seconds expired with 1 commands on target 12 lun 0.
2016-07-19T09:22:38.825125+00:00 9c-8e-99-fc-12-b0 scsi: [ID 107833 
kern.warning] WARNING: /pci@0,0/pci8086,340f@8/pci1000,3020@0 
(mpt_sas0):#012#011Disconnected command timeout for target 12 
w5000cca012b12465, enclosure 1
2016-07-19T09:22:38.976122+00:00 9c-8e-99-fc-12-b0 scsi: [ID 365881 kern.info] 
/pci@0,0/pci8086,340f@8/pci1000,3020@0 (mpt_sas0):#012#011Log info 0x31140000 
received for target 12 w5000cca012b12465.#012#011scsi_status=0x0, 
ioc_status=0x8048, scsi_state=0xc

# uname -a
SunOS 9c-8e-99-fc-12-b0 5.11 joyent_20160504T205801Z i86pc i386 i86pc

# zpool status -v
  pool: zones
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: scrub repaired 0 in 14h9m with 0 errors on Thu Jul  7 04:43:36 2016
config:

        NAME                       STATE     READ WRITE CKSUM
        zones                      ONLINE       0     0     0
          mirror-0                 ONLINE       0     0     0
            c0t5000CCA012B1089Dd0  ONLINE       0     0     0
            c1t5000CCA012AEAFC1d0  ONLINE       0     0     0
          mirror-1                 ONLINE       0     0     0
            c2t5000CCA0124510DDd0  ONLINE       0     0     0
            c3t5000CCA012A1FF61d0  ONLINE       0     0     0
          mirror-2                 ONLINE       0     0     0
            c4t5000CCA012B12465d0  ONLINE       0     0     1
            c5t5000CCA012AEF71Dd0  ONLINE       0     0     0
          mirror-3                 ONLINE       0     0     0
            c6t5000CCA01293E105d0  ONLINE       0     0     0
            c7t5000CCA012AD8ED9d0  ONLINE       0     0     0

errors: No known data errors
---8<---------------------------------------------------------------------------

As you can see, my zones pool is configured as a striped mirror.

I would like to replace the faulty disk with a new one (exact same model).
This is what I am planning on doing:

# zpool offline c4t5000CCA012B12465d0
- shutdown the machine
- replace the drive
- boot
# zpool replace zones c4t5000CCA012B12465d0 <my-new-drive>

I've never done it before so I have 2 questions to ensure I am not doing
anything wrong or stupid here.

1. is what I proposed (offline+replace) correct?
2. the new drive will probably have another device name, won't it? If so, won't
I get into problem if I use the replace command with c4t5000CCA012B12465d0 which
will probably not exist anymore (since that disk got replaced)?

Thank you very much for any hint.

-- 
Antoine


-------------------------------------------
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

Reply via email to