Ms2

From Wikitech
Jump to navigation Jump to search

New RAID layout of ms2, after the restore:

Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
md16 : active raid1 sdav1[0] sdaf1[2] sdan1[1]
      244187904 blocks [3/3] [UUU]
      
md15 : active raid1 sdh1[0] sdp1[2] sdx1[1]
      244187904 blocks [3/3] [UUU]
      
md1 : active raid1 sdas1[3](S) sdak1[4](S) sdag1[5](S) sdao1[6](S) sda1[0] sdi1[2] sdq1[1]
      244187904 blocks [3/3] [UUU]
      
md4 : active raid1 sdah1[0] sdz1[2] sdap1[1]
      244187904 blocks [3/3] [UUU]
      
md6 : active raid1 sdai1[0] sdaa1[2] sdaq1[1]
      244187904 blocks [3/3] [UUU]
      
md8 : active raid1 sdab1[0] sdar1[2] sdaj1[1]
      244187904 blocks [3/3] [UUU]
      
md9 : active raid1 sde1[0] sdm1[2] sdu1[1]
      244187904 blocks [3/3] [UUU]
      
md11 : active raid1 sdf1[0] sdn1[2] sdv1[1]
      244187904 blocks [3/3] [UUU]
      
md13 : active raid1 sdg1[0] sdo1[2] sdw1[1]
      244187904 blocks [3/3] [UUU]
      
md3 : active raid1 sdj1[2] sdb1[0] sdr1[1]
      244187904 blocks [3/3] [UUU]
      
md5 : active raid1 sdc1[0] sdk1[2] sds1[1]
      244187904 blocks [3/3] [UUU]
      
md7 : active raid1 sdl1[2] sdd1[0] sdt1[1]
      244187904 blocks [3/3] [UUU]
      
md12 : active raid1 sdal1[0] sdad1[2] sdat1[1]
      244187904 blocks [3/3] [UUU]
      
md14 : active raid1 sdae1[2] sdam1[0] sdau1[1]
      244187904 blocks [3/3] [UUU]
      
md0 : active raid1 sdy1[0] sdac1[1]
      78123968 blocks [2/2] [UU]
      
unused devices: <none>
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi5 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi7 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi8 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi9 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi10 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi11 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi12 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi13 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi14 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi15 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi16 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi17 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi18 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi19 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi20 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi21 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi22 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi23 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi24 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi25 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi26 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi27 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi28 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi29 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi30 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: HITACHI HDS7250S Rev: K2AO
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi31 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi32 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi33 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi34 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi35 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi36 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi37 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi38 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi39 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi40 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi41 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi42 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi43 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi44 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi45 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi46 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi47 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: SEAGATE ST32500N Rev: n/a 
  Type:   Direct-Access                    ANSI  SCSI revision: 05


Data recovery

After all RAID superblocks went missing, LVS found all PVs on individual disks (with duplicates) and assembled a VG out of it.

 ES   data -wi-ao 3.00T                               
      /dev/sdi(0),/dev/sdj(0),/dev/sdz(0),/dev/sdk(0),/dev/sdaa(0),/dev/sdl(0),/dev/sdar(0),
      /dev/sdm(0),/dev/sdn(0),/dev/sdad(0),/dev/sdo(0),/dev/sdat(0),/dev/sdp(0),/dev/sdau(0)

New layout

New layout-to-be, with Solaris device names:

md1  c0t0d0 c1t0d0 c2t0d0
(spares)         c4t0d0 c5t0d0
md3  c0t1d0 c1t1d0 c2t1d0
md4  c3t1d0 c4t1d0 c5t1d0
md5  c0t2d0 c1t2d0 c2t2d0
md6  c3t2d0 c4t2d0 c5t2d0
md7  c0t3d0 c1t3d0 c2t3d0
md8  c3t3d0 c4t3d0 c5t3d0
md9  c0t4d0 c1t4d0 c2t4d0
(spares)        c4t4d0 c5t4d0
md11 c0t5d0 c1t5d0 c2t5d0
md12 c3t5d0 c4t5d0 c5t5d0
md13 c0t6d0 c1t6d0 c2t6d0
md14 c3t6d0 c4t6d0 c5t6d0
md15 c0t7d0 c1t7d0 c2t7d0
md16 c3t7d0 c4t7d0 c5t7d0

Striking the devices in use by LVM, we get:

md1  c0t0d0        c2t0d0
(spares)    c4t0d0 c5t0d0
md3  c0t1d0        c2t1d0
md4         c4t1d0 c5t1d0
md5  c0t2d0        c2t2d0
md6         c4t2d0 c5t2d0
md7  c0t3d0        c2t3d0
md8  c3t3d0 c4t3d0 c5t3d0
md9  c0t4d0        c2t4d0
(spares)           c4t4d0
md11 c0t5d0        c2t5d0
md12        c4t5d0 c5t5d0
md13 c0t6d0        c2t6d0
md14 c3t6d0(b) c4t6d0
md15 c0t7d0        c2t7d0
md16 c3t7d0 c4t7d0