please help with raid

qwerin

Cadet
Joined
Nov 21, 2019
Messages
2
i try enything how replace disk from unimportet pool:

Code:
root@freenas[/]# zpool status -v
  pool: freenas-boot
 state: ONLINE
  scan: scrub repaired 0 in 0 days 00:04:34 with 0 errors on Sun Nov 17 03:49:36 2019
config:

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

errors: No known data errors
root@freenas[/]# zpool import
   pool: main
     id: 16992692955589150642
  state: FAULTED
 status: One or more devices are missing from the system.
 action: The pool cannot be imported. Attach the missing
        devices and try again.
        The pool may be active on another system, but can be imported using
        the '-f' flag.
   see: http://illumos.org/msg/ZFS-8000-3C
 config:

        main                                            FAULTED  corrupted data
          raidz1-0                                      FAULTED  corrupted data
            gptid/8ae2cad1-d0da-11e9-a070-50e549646143  ONLINE
            8776366179033367868                         UNAVAIL  cannot open
            gptid/8ea7b18c-d0da-11e9-a070-50e549646143  ONLINE
            gptid/8ff17c18-d0da-11e9-a070-50e549646143  ONLINE
root@freenas[/]# zpool status main
cannot open 'main': no such pool



Code:
root@freenas[/]# glabel status
                                      Name  Status  Components
gptid/8ae2cad1-d0da-11e9-a070-50e549646143     N/A  ada0p2
gptid/8ea7b18c-d0da-11e9-a070-50e549646143     N/A  ada2p2
gptid/8ff17c18-d0da-11e9-a070-50e549646143     N/A  ada3p2
gptid/2c03ed27-d0e5-11e9-9fba-408d5cc90e2b     N/A  da0p1
gptid/8ac840bd-d0da-11e9-a070-50e549646143     N/A  ada0p1


Code:
root@freenas[/]# gpart show
=>        40  3907029088  ada0  GPT  (1.8T)
          40          88        - free -  (44K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)

=>        63  3907029105  ada1  MBR  (1.8T)
          63        1985        - free -  (993K)
        2048    33961984     1  linux-data  [active]  (16G)
    33964032     3145728     2  linux-swap  (1.5G)
    37109760  3869914305     4  linux-data  (1.8T)
  3907024065        5103        - free -  (2.5M)

=>        40  3907029088  ada2  GPT  (1.8T)
          40          88        - free -  (44K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)

=>        40  3907029088  ada3  GPT  (1.8T)
          40          88        - free -  (44K)
         128     4194304     1  freebsd-swap  (2.0G)
     4194432  3902834696     2  freebsd-zfs  (1.8T)

=>      40  30277552  da0  GPT  (14G)
        40      1024    1  freebsd-boot  (512K)
      1064  30244864    2  freebsd-zfs  (14G)
  30245928     31664       - free -  (15M)


ada1 is new disk ...
 

garm

Wizard
Joined
Aug 19, 2017
Messages
1,556
you cant replace a disk if the pool isn’t imported. The same pool requirement apply to both importing and resilvering. A single drive failure shouldn’t have caused a pool failure, what was the state of the pool prior to (reboot?)?
 

qwerin

Cadet
Joined
Nov 21, 2019
Messages
2
you can't replace a disk if the pool isn’t imported. The same pool requirement apply to both importing and resilvering. A single drive failure shouldn’t have caused a pool failure, what was the state of the pool prior to (reboot?)?
sorry server restart to this state ..
 
Top