Pomoc mdadm - jak usunąć "Duplicate device detected "

Paweł Tołoczko

Enterprise Admin...
Q's Architect
8 Listopad 2013
939
259
113
43
Cork
QNAP
TS-x70
Ethernet
1 GbE
Podczas przywracania macierzy z OFFLINE na online ... najwyraźniej pomyliła mi się literka ...

mam 7x RAID 1 - single
1x Spear
Bash:
[~] # md_checker

Welcome to MD superblock checker (v1.4) - have a nice day~

Scanning system...

Legacy Firmware Detected!
Scanning disks...

RAID metadata found!
UUID:           9a609d01:5f266a4f:ca4d7fa9:5f33f2fb
Level:          raid1
Devices:        1
Name:           md4
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 6 09:45:39 2018
Status:         ONLINE (md4) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   1  /dev/sda3  0   Active   Jun 13 13:18:38 2019       28   A
===============================================================================


RAID metadata found!
UUID:           2e250ef5:8bf9ab55:8396dbc2:f3e89663
Level:          raid1
Devices:        1
Name:           md3
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 6 09:43:37 2018
Status:         ONLINE (md1) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   2  /dev/sdb3  0   Active   Jun 13 13:17:46 2019       28   A
===============================================================================


RAID metadata found!
UUID:           483ec2c4:52a595c8:73bfc1fa:b41fda2c
Level:          raid1
Devices:        1
Name:           md2
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 6 09:42:36 2018
Status:         ONLINE (md2) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   3  /dev/sdc3  0   Active   Jun 13 13:16:46 2019       28   A
===============================================================================


RAID metadata found!
UUID:           dc035935:aceaa4d7:f32dc6a5:d1ac89f8
Level:          raid1
Devices:        1
Name:           md1
Chunk Size:     -
md Version:     1.0
Creation Time:  Apr 3 01:21:08 2019
Status:         OFFLINE
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   4  /dev/sdd3  0   Active   Jun 13 13:13:29 2019       11   A
   5  /dev/sde3  0   Active   Jun 15 13:35:12 2019       14   A
===============================================================================
 WARNING: Duplicate device detected for #(0)!


RAID metadata found!
UUID:           6e3cdb6e:878d0aa5:4eb4627a:68c578c4
Level:          raid1
Devices:        1
Name:           md7
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 7 10:25:36 2018
Status:         ONLINE (md7) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   6  /dev/sdf3  0   Active   Jun 13 13:14:47 2019       26   A
===============================================================================


RAID metadata found!
UUID:           abc37fd2:8c8728cb:f9146a8f:f14c4329
Level:          raid1
Devices:        1
Name:           md6
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 7 10:14:34 2018
Status:         ONLINE (md6) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   7  /dev/sdg3  0   Active   Jun 13 13:15:36 2019       24   A
===============================================================================


RAID metadata found!
UUID:           073130fe:db5b52d4:e59ca2d9:3bae117a
Level:          raid1
Devices:        1
Name:           md5
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 6 10:00:18 2018
Status:         ONLINE (md5) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   8  /dev/sdh3  0   Active   Jun 13 13:19:29 2019       28   A
===============================================================================

Kod:
[~] # vgdisplay
  --- Volume group ---
  VG Name               vg2
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  26
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.63 TiB
  PE Size               4.00 MiB
  Total PE              951431
  Alloc PE / Size       951431 / 3.63 TiB
  Free  PE / Size       0 / 0
  VG UUID               Drdg2H-Ofd2-VPY6-rN1O-qBjf-WI7v-FqYVWq

  --- Volume group ---
  VG Name               vg3
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  40
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.63 TiB
  PE Size               4.00 MiB
  Total PE              951431
  Alloc PE / Size       951431 / 3.63 TiB
  Free  PE / Size       0 / 0
  VG UUID               RhG0cH-NS2g-Uh1m-MPzI-7dWZ-2Nxo-Gxwxpr

  --- Volume group ---
  VG Name               vg6
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  40
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.63 TiB
  PE Size               4.00 MiB
  Total PE              951431
  Alloc PE / Size       951431 / 3.63 TiB
  Free  PE / Size       0 / 0
  VG UUID               IMZAYH-c1I4-MqnW-SAdc-isod-ie8W-7C3aXw

  --- Volume group ---
  VG Name               vg4
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  32
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.63 TiB
  PE Size               4.00 MiB
  Total PE              951431
  Alloc PE / Size       951431 / 3.63 TiB
  Free  PE / Size       0 / 0
  VG UUID               uL0BAr-5VnN-xaXw-gjRH-7d99-Gx1X-IIo0dF

  --- Volume group ---
  VG Name               vg5
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  40
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.63 TiB
  PE Size               4.00 MiB
  Total PE              951431
  Alloc PE / Size       951431 / 3.63 TiB
  Free  PE / Size       0 / 0
  VG UUID               5R2hLC-zrBH-1JZ4-CMFV-c3Z0-YLcn-Wpwt6M

  --- Volume group ---
  VG Name               vg7
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  40
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               3.63 TiB
  PE Size               4.00 MiB
  Total PE              951431
  Alloc PE / Size       951431 / 3.63 TiB
  Free  PE / Size       0 / 0
  VG UUID               TWbXh7-iYTh-h018-Ng7d-Ag1U-bn6J-YxoHAS

Kod:
[~] # pvscan
  PV /dev/md7   VG vg2             lvm2 [3.63 TiB / 0    free]
  PV /dev/md6   VG vg3             lvm2 [3.63 TiB / 0    free]
  PV /dev/md4   VG vg6             lvm2 [3.63 TiB / 0    free]
  PV /dev/md2   VG vg4             lvm2 [3.63 TiB / 0    free]
  PV /dev/md1   VG vg5             lvm2 [3.63 TiB / 0    free]
  PV /dev/md5   VG vg7             lvm2 [3.63 TiB / 0    free]
  Total: 6 [21.78 TiB] / in use: 6 [21.78 TiB] / in no VG: 0 [0   ]

Kod:
[~] # vgs
  VG   #PV #LV #SN Attr   VSize VFree
  vg2    1   3   0 wz--n- 3.63t    0
  vg3    1   3   0 wz--n- 3.63t    0
  vg4    1   3   0 wz--n- 3.63t    0
  vg5    1   3   0 wz--n- 3.63t    0
  vg6    1   3   0 wz--n- 3.63t    0
  vg7    1   3   0 wz--n- 3.63t    0

Kod:
[~] # lvs
  LV    VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  lv545 vg2  -wi------- 37.16g
  lv8   vg2  Vwi---t---  3.52t tp2
  tp2   vg2  twi---t---  3.53t
  lv2   vg3  Vwi---t---  3.52t tp3
  lv551 vg3  -wi------- 37.16g
  tp3   vg3  twi---t---  3.53t
  lv4   vg4  Vwi---t---  3.52t tp4
  lv547 vg4  -wi------- 37.16g
  tp4   vg4  twi---t---  3.53t
  lv5   vg5  Vwi---t---  3.52t tp5
  lv548 vg5  -wi------- 37.16g
  tp5   vg5  twi---t---  3.53t
  lv549 vg6  -wi------- 37.16g
  lv6   vg6  Vwi---t---  3.52t tp6
  tp6   vg6  twi---t---  3.53t
  lv550 vg7  -wi------- 37.16g
  lv7   vg7  Vwi---t---  3.52t tp7
  tp7   vg7  twi---t---  3.53t

i pytanie jak naprawic to:

Kod:
RAID metadata found!
UUID:           dc035935:aceaa4d7:f32dc6a5:d1ac89f8
Level:          raid1
Devices:        1
Name:           md1
Chunk Size:     -
md Version:     1.0
Creation Time:  Apr 3 01:21:08 2019
Status:         OFFLINE
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   4  /dev/sdd3  0   Active   Jun 13 13:13:29 2019       11   A
   5  /dev/sde3  0   Active   Jun 15 13:35:12 2019       14   A
===============================================================================
 WARNING: Duplicate device detected for #(0)!

















Wersja oprogramowania Firmware: 4.3.6 Build 0895
Model serwera: QNAP TS-870 PRO
 
nadal ..

Kod:
[~] # /etc/init.d/init_lvm.sh
Changing old config name...
mv: can't rename '/etc/config/ssdcache.conf': No such file or directory
mv: can't rename '/etc/config/qlvm.conf': No such file or directory
mv: can't rename '/etc/config/qdrbd.conf': No such file or directory
mv: can't rename '/etc/config/raid.conf': No such file or directory
Reinitialing...
Detect disk(8, 0)...
dev_count ++ = 0Detect disk(8, 16)...
dev_count ++ = 1Detect disk(8, 32)...
dev_count ++ = 2Detect disk(8, 48)...
dev_count ++ = 3Detect disk(8, 64)...
dev_count ++ = 4Detect disk(8, 80)...
dev_count ++ = 5Detect disk(8, 96)...
dev_count ++ = 6Detect disk(8, 112)...
dev_count ++ = 7Detect disk(8, 128)...
ignore non-root enclosure disk(8, 128).
Detect disk(8, 0)...
Detect disk(8, 16)...
Detect disk(8, 32)...
Detect disk(8, 48)...
Detect disk(8, 64)...
Detect disk(8, 80)...
Detect disk(8, 96)...
Detect disk(8, 112)...
Detect disk(8, 128)...
ignore non-root enclosure disk(8, 128).
/etc/init.d/init_lvm.sh: line 11: 25253 Segmentation fault      /sbin/storage_util --sys_startup
Done

[~] # md_checker

Welcome to MD superblock checker (v1.4) - have a nice day~

Scanning system...

Legacy Firmware Detected!
Scanning disks...

RAID metadata found!
UUID:           9a609d01:5f266a4f:ca4d7fa9:5f33f2fb
Level:          raid1
Devices:        1
Name:           md4
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 6 09:45:39 2018
Status:         ONLINE (md4) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   1  /dev/sda3  0   Active   Jun 13 13:18:38 2019       28   A
===============================================================================


RAID metadata found!
UUID:           2e250ef5:8bf9ab55:8396dbc2:f3e89663
Level:          raid1
Devices:        1
Name:           md3
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 6 09:43:37 2018
Status:         ONLINE (md1) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   2  /dev/sdb3  0   Active   Jun 16 02:57:45 2019       28   A
===============================================================================


RAID metadata found!
UUID:           483ec2c4:52a595c8:73bfc1fa:b41fda2c
Level:          raid1
Devices:        1
Name:           md2
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 6 09:42:36 2018
Status:         ONLINE (md2) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   3  /dev/sdc3  0   Active   Jun 13 13:16:46 2019       28   A
===============================================================================


RAID metadata found!
UUID:           dc035935:aceaa4d7:f32dc6a5:d1ac89f8
Level:          raid1
Devices:        1
Name:           md1
Chunk Size:     -
md Version:     1.0
Creation Time:  Apr 3 01:21:08 2019
Status:         OFFLINE
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   4  /dev/sdd3  0   Active   Jun 13 13:13:29 2019       11   A
   5  /dev/sde3  0   Active   Jun 15 13:35:12 2019       14   A
===============================================================================
 WARNING: Duplicate device detected for #(0)!


RAID metadata found!
UUID:           6e3cdb6e:878d0aa5:4eb4627a:68c578c4
Level:          raid1
Devices:        1
Name:           md7
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 7 10:25:36 2018
Status:         ONLINE (md7) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   6  /dev/sdf3  0   Active   Jun 13 13:14:47 2019       26   A
===============================================================================


RAID metadata found!
UUID:           abc37fd2:8c8728cb:f9146a8f:f14c4329
Level:          raid1
Devices:        1
Name:           md6
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 7 10:14:34 2018
Status:         ONLINE (md6) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   7  /dev/sdg3  0   Active   Jun 13 13:15:36 2019       24   A
===============================================================================


RAID metadata found!
UUID:           073130fe:db5b52d4:e59ca2d9:3bae117a
Level:          raid1
Devices:        1
Name:           md5
Chunk Size:     -
md Version:     1.0
Creation Time:  Mar 6 10:00:18 2018
Status:         ONLINE (md5) [U]
===============================================================================
 Disk | Device | # | Status |   Last Update Time   | Events | Array State
===============================================================================
   8  /dev/sdh3  0   Active   Jun 13 13:19:29 2019       28   A
===============================================================================
Czy może, shutdown, wyjąc dyski - power up i włożyć i się naprawi ;-) przy ponownym klepaniu komend.
 
a proste RECOVER nie pomaga ?

awww.qnap.com_images_faq_disk_unplug_03.jpg
 
Nie tra dady , QTS nie działa :) - nadal jestem na etapie ticket'a gdzie nic nie działa po upgrade do 4.3.6 Build xxxx
Tak jak radzisz, robiłem w 4.3.5 i po kolei dodawałem dyski ...

Support mi zrobił wszystkie dyski online z offline (+ wygenerował logi) ... ale .. po 2 dniach ... system zaliczył shutdown ....
no i zachciało mi się go podnieść do takiego samego stanu jak przed shutdown'em ... i rypnęły mi się literki ... eh.
QNAP Helpdesk -
#KAF-599-71584
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. Raid offline qnap
  2. ręczne przyłączenie
  3. raid 10 offline
  4. Found duplicate PV