As for the replace itself. If the names are different, the replace command takes an option argument with the new name of the device.
On Tue, Jul 19, 2016 at 7:22 AM, Greg Treantos <[email protected]> wrote: > eventually.. I usually see one disk then over time others follow.. > > On Tue, Jul 19, 2016 at 7:29 AM, Antoine Jacoutot <[email protected]> > wrote: > >> Not 100% sure no. But in doubt... >> I'll reboot first to make sure but if the controller was the issue, >> wouldn't I see the same errors on other disks ? >> >> On Jul 19, 2016 13:11, Greg Treantos <[email protected]> wrote: >> >> Are you sure the disk is bad? I see this on my system all the time, its >> something with my controller. I reboot and the error is gone.. >> >> On Tue, Jul 19, 2016 at 5:46 AM, Antoine Jacoutot <[email protected]> >> wrote: >> >> 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 >> >> >> http://www.listbox.com >> >> >> >> >> -- >> Greg >> >> http://www.linkedin.com/in/gregtreantos >> *smartos-discuss* | Archives >> <https://www.listbox.com/member/archive/184463/=now> >> <https://www.listbox.com/member/archive/rss/184463/24942108-82cf155c> | >> Modify <https://www.listbox.com/member/?&> Your Subscription >> <http://www.listbox.com> >> >> >> > > > -- > Greg > > http://www.linkedin.com/in/gregtreantos > *smartos-discuss* | Archives > <https://www.listbox.com/member/archive/184463/=now> > <https://www.listbox.com/member/archive/rss/184463/25764656-eb4e9471> | > Modify > <https://www.listbox.com/member/?&> > 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
