All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Turmel <philip@turmel.org>
To: Daniel Sanabria <sanabria.d@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: missing arrays after OS upgrade
Date: Wed, 25 Mar 2015 08:15:39 -0400	[thread overview]
Message-ID: <5512A6EB.10104@turmel.org> (raw)
In-Reply-To: <CAHscji1spYx8vvUQ2=PsU4VRCb4+kOqAstJqyK0SbYJ6=OSYiQ@mail.gmail.com>

Hi Daniel,

{Convention on kernel.org is to trim quotes, then interleave replies or
bottom-post.}

On 03/25/2015 07:49 AM, Daniel Sanabria wrote:
> Thank you very much Phil,
> 
> Below the output of lsdrv followed by /proc/mdstat and mdadm.conf
> (will clean up dmesg a bit before attaching it here):

When you do, turn off line wrap.  I forgot to suggest that.

> PCI [ahci] 07:00.0 SATA controller: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
> ├scsi 0:x:x:x [Empty]
> └scsi 1:x:x:x [Empty]
> PCI [ata_piix] 00:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family) 4 port SATA IDE Controller #1
> ├scsi 2:0:0:0 ATA      WDC WD5000AAKS-0 {WD-WMAWF0085724}
> │└sda 465.76g [8:0] Partitioned (dos)
> │ ├sda1 199.00m [8:1] ext4 {4e51f903-37ca-4479-9197-fac7b2280557}
> │ │└Mounted as /dev/sda1 @ /boot
> │ ├sda2 29.30g [8:2] MD raid10,near2 (0/2) (w/ sdc1) in_sync {9af006ca-8845-bbd3-bfe7-8010bc810f04}
> │ │└md126 29.30g [9:126] MD v0.90 raid10,near2 (2) clean, 64k Chunk {9af006ca:8845bbd3:bfe78010:bc810f04}
> │ │ │                    PV LVM2_member 28.03g used, 1.26g free {cE4ePh-RWO8-Wgdy-YPOY-ehyC-KI6u-io1cyH}
> │ │ └VG vg_bigblackbox 29.29g 1.26g free {VWfuwI-5v2q-w8qf-FEbc-BdGW-3mKX-pZd7hR}
> │ │  ├dm-6 7.81g [253:6] LV LogVol_opt ext4 {b08d7f5e-f15f-4241-804e-edccecab6003}
> │ │  │└Mounted as /dev/mapper/vg_bigblackbox-LogVol_opt @ /opt
> │ │  ├dm-0 9.77g [253:0] LV LogVol_root ext4 {4dabd6b0-b1a3-464d-8ed7-0aab93fab6c3}
> │ │  │└Mounted as /dev/mapper/vg_bigblackbox-LogVol_root @ /
> │ │  ├dm-8 1.95g [253:8] LV LogVol_tmp ext4 {f6b46363-170b-4038-83bd-2c5f9f6a1973}
> │ │  │└Mounted as /dev/mapper/vg_bigblackbox-LogVol_tmp @ /tmp
> │ │  └dm-4 8.50g [253:4] LV LogVol_var ext4 {ab165c61-3d62-4c55-8639-6c2c2bf4b021}
> │ │   └Mounted as /dev/mapper/vg_bigblackbox-LogVol_var @ /var
> │ ├sda3 244.14g [8:3] MD raid5 (3) inactive {2cff15d1-e411-447b-fd5d-472103e44022}
> │ ├sda4 1.00k [8:4] Partitioned (dos)
> │ ├sda5 30.00g [8:5] MD raid0 (0/3) (w/ sdb5,sdc5) in_sync 'reading.homeunix.com:3' {acd5374f-7262-8c93-6a90-6c4b5f675ce5}
> │ │└md124 90.00g [9:124] MD v1.2 raid0 (3) clean, 512k Chunk, None (None) None {acd5374f:72628c93:6a906c4b:5f675ce5}
> │ │ │                    PV LVM2_member 86.00g used, 3.99g free {VmsWRd-8qHt-bauf-lvAn-FC97-KyH5-gk89ox}
> │ │ └VG libvirt_lvm 89.99g 3.99g free {t8GQck-f2Eu-iD2V-fnJQ-kBm6-QyKw-dR31PB}
> │ │  ├dm-9 8.00g [253:9] LV builder Partitioned (dos)
> │ │  ├dm-10 8.00g [253:10] LV builder2 Partitioned (dos)
> │ │  ├dm-11 8.00g [253:11] LV builder3 Partitioned (dos)
> │ │  ├dm-13 8.00g [253:13] LV builder5.3 Partitioned (dos)
> │ │  ├dm-12 8.00g [253:12] LV builder5.6 Partitioned (dos)
> │ │  ├dm-5 8.00g [253:5] LV centos_updt Partitioned (dos)
> │ │  ├dm-7 8.00g [253:7] LV cms Partitioned (dos)
> │ │  └dm-2 30.00g [253:2] LV win7 Partitioned (dos)
> │ └sda6 3.39g [8:6] Empty/Unknown
> ├scsi 2:0:1:0 ATA      WDC WD5000AAKS-0 {WD-WCASY7694185}
> │└sdb 465.76g [8:16] Partitioned (dos)
> │ ├sdb2 244.14g [8:18] MD raid5 (3) inactive {2cff15d1-e411-447b-fd5d-472103e44022}
> │ ├sdb3 7.81g [8:19] swap {9194f492-881a-4fc3-ac09-ca4e1cc2985a}
> │ ├sdb4 1.00k [8:20] Partitioned (dos)
> │ ├sdb5 30.00g [8:21] MD raid0 (1/3) (w/ sda5,sdc5) in_sync 'reading.homeunix.com:3' {acd5374f-7262-8c93-6a90-6c4b5f675ce5}
> │ │└md124 90.00g [9:124] MD v1.2 raid0 (3) clean, 512k Chunk, None (None) None {acd5374f:72628c93:6a906c4b:5f675ce5}
> │ │                      PV LVM2_member 86.00g used, 3.99g free {VmsWRd-8qHt-bauf-lvAn-FC97-KyH5-gk89ox}
> │ └sdb6 3.39g [8:22] Empty/Unknown
> ├scsi 3:0:0:0 ATA      WDC WD5000AAKS-0 {WD-WCASZ0505379}
> │└sdc 465.76g [8:32] Partitioned (dos)
> │ ├sdc1 29.30g [8:33] MD raid10,near2 (1/2) (w/ sda2) in_sync {9af006ca-8845-bbd3-bfe7-8010bc810f04}
> │ │└md126 29.30g [9:126] MD v0.90 raid10,near2 (2) clean, 64k Chunk {9af006ca:8845bbd3:bfe78010:bc810f04}
> │ │                      PV LVM2_member 28.03g used, 1.26g free {cE4ePh-RWO8-Wgdy-YPOY-ehyC-KI6u-io1cyH}
> │ ├sdc2 244.14g [8:34] MD raid5 (3) inactive {2cff15d1-e411-447b-fd5d-472103e44022}
> │ ├sdc3 1.00k [8:35] Partitioned (dos)
> │ ├sdc5 30.00g [8:37] MD raid0 (2/3) (w/ sda5,sdb5) in_sync 'reading.homeunix.com:3' {acd5374f-7262-8c93-6a90-6c4b5f675ce5}
> │ │└md124 90.00g [9:124] MD v1.2 raid0 (3) clean, 512k Chunk, None (None) None {acd5374f:72628c93:6a906c4b:5f675ce5}
> │ │                      PV LVM2_member 86.00g used, 3.99g free {VmsWRd-8qHt-bauf-lvAn-FC97-KyH5-gk89ox}
> │ └sdc6 3.39g [8:38] Empty/Unknown
> └scsi 3:0:1:0 ATA      WDC WD30EZRX-00D {WD-WCC4N1294906}
>  └sdd 2.73t [8:48] Partitioned (gpt)
>   ├sdd1 2.00t [8:49] MD raid5 (0/3) (w/ sde1,sdf1) in_sync 'lamachine:128' {f2372cb9-d381-6fd6-ce86-d826882ec82e}
>   │└md127 4.00t [9:127] MD v1.2 raid5 (3) read-auto, 512k Chunk {f2372cb9:d3816fd6:ce86d826:882ec82e}
>   │ │                   PV LVM2_member 3.50t used, 511.75g free {NrF3vV-nS1f-wtjY-SfZk-xwUE-YbSB-TWWdLu}
>   │ └VG vg_media 4.00t 511.75g free {cPGpZK-OdZ6-sW71-8Rtf-x23f-BgEU-WGEmid}
>   │  └dm-1 3.50t [253:1] LV lv_media ext4 {ef90c386-76e6-4843-a427-88412948d49f}
>   └sdd2 500.00g [8:50] MD raid0 (0/3) (w/ sde2,sdf2) in_sync 'lamachine:129' {895dae98-d1a4-96de-4f59-0b8bcb8ac12a}
>    └md125 1.46t [9:125] MD v1.2 raid0 (3) clean, 512k Chunk, None (None) None {895dae98:d1a496de:4f590b8b:cb8ac12a}
>     │                   PV LVM2_member 512.00g used, 987.62g free {70aHF7-aTfj-X2y6-qYXF-szQu-QBFW-q4UlfG}
>     └VG vg_virt_dir 1.46t 987.62g free {SQXqhD-j5dR-Xsdh-NBoR-YMqk-YwfF-hyf9ur}
>      └dm-3 512.00g [253:3] LV lv_virt_dir1 ext4 {1929e452-ae83-4766-bf0e-8575a7d1a3c8}
> PCI [ata_piix] 00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family) 2 port SATA IDE Controller #2
> ├scsi 4:0:0:0 ATA      WDC WD30EZRX-00D {WD-WCC4NCWT13RF}
> │└sde 2.73t [8:64] Partitioned (gpt)
> │ ├sde1 2.00t [8:65] MD raid5 (1/3) (w/ sdd1,sdf1) in_sync 'lamachine:128' {f2372cb9-d381-6fd6-ce86-d826882ec82e}
> │ │└md127 4.00t [9:127] MD v1.2 raid5 (3) read-auto, 512k Chunk {f2372cb9:d3816fd6:ce86d826:882ec82e}
> │ │                     PV LVM2_member 3.50t used, 511.75g free {NrF3vV-nS1f-wtjY-SfZk-xwUE-YbSB-TWWdLu}
> │ └sde2 500.00g [8:66] MD raid0 (1/3) (w/ sdd2,sdf2) in_sync 'lamachine:129' {895dae98-d1a4-96de-4f59-0b8bcb8ac12a}
> │  └md125 1.46t [9:125] MD v1.2 raid0 (3) clean, 512k Chunk, None (None) None {895dae98:d1a496de:4f590b8b:cb8ac12a}
> │                       PV LVM2_member 512.00g used, 987.62g free {70aHF7-aTfj-X2y6-qYXF-szQu-QBFW-q4UlfG}
> └scsi 5:0:0:0 ATA      WDC WD30EZRX-00D {WD-WCC4NPRDD6D7}
>  └sdf 2.73t [8:80] Partitioned (gpt)
>   ├sdf1 2.00t [8:81] MD raid5 (2/3) (w/ sdd1,sde1) in_sync 'lamachine:128' {f2372cb9-d381-6fd6-ce86-d826882ec82e}
>   │└md127 4.00t [9:127] MD v1.2 raid5 (3) read-auto, 512k Chunk {f2372cb9:d3816fd6:ce86d826:882ec82e}
>   │                     PV LVM2_member 3.50t used, 511.75g free {NrF3vV-nS1f-wtjY-SfZk-xwUE-YbSB-TWWdLu}
>   └sdf2 500.00g [8:82] MD raid0 (2/3) (w/ sdd2,sde2) in_sync 'lamachine:129' {895dae98-d1a4-96de-4f59-0b8bcb8ac12a}
>    └md125 1.46t [9:125] MD v1.2 raid0 (3) clean, 512k Chunk, None (None) None {895dae98:d1a496de:4f590b8b:cb8ac12a}
>                         PV LVM2_member 512.00g used, 987.62g free {70aHF7-aTfj-X2y6-qYXF-szQu-QBFW-q4UlfG}
> PCI [pata_jmicron] 07:00.1 IDE interface: JMicron Technology Corp. JMB363 SATA/IDE Controller (rev 02)
> ├scsi 6:x:x:x [Empty]
> └scsi 7:x:x:x [Empty]
> 
> [root@localhost ~]# cat /proc/mdstat
> Personalities : [raid10] [raid0] [raid6] [raid5] [raid4]
> md124 : active raid0 sda5[0] sdb5[1] sdc5[2]
>       94367232 blocks super 1.2 512k chunks
> 
> md125 : active raid0 sdf2[2] sdd2[0] sde2[1]
>       1572470784 blocks super 1.2 512k chunks
> 
> md127 : active (auto-read-only) raid5 sdf1[3] sde1[1] sdd1[0]
>       4294705152 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
>       bitmap: 0/16 pages [0KB], 65536KB chunk
> 
> md126 : active raid10 sda2[0] sdc1[1]
>       30719936 blocks 2 near-copies [2/2] [UU]
> 
> unused devices: <none>
> [root@localhost ~]# cat /etc/mdadm.conf
> # mdadm.conf written out by anaconda
> MAILADDR root
> AUTO +imsm +1.x -all
> ARRAY /dev/md/126 level=raid10 num-devices=2 UUID=9af006ca:8845bbd3:bfe78010:bc810f04

Ok.  Your array didn't assemble because mdadm.conf said not to.  The
AUTO clause is excluding unidentified v0.90 metadata.  The UUID
....:bc810f04 was called out explicitly, so it assembled.

You should be safe to just assemble the array normally:

mdadm -A /dev/md2 /dev/sd{a3,b2,c2}

Then you need to create a new mdadm.conf.  I suggest you use "AUTO -all"
and explicitly list all of your arrays.  You only need the device name
and the UUID on each ARRAY line.  You can run "mdadm -Es
>>..../mdadm.conf" to add live arrays to the file, then trim out the
unnecessary details.

When mdadm.conf has your arrays, with the names you want them to keep,
update your initramfs.  (Command varies by distro.)

Phil
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2015-03-25 12:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-24 22:48 missing arrays after OS upgrade Daniel Sanabria
2015-03-25  0:03 ` Phil Turmel
2015-03-25 11:49   ` Daniel Sanabria
2015-03-25 12:15     ` Phil Turmel [this message]
2015-03-27  9:40       ` Daniel Sanabria

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5512A6EB.10104@turmel.org \
    --to=philip@turmel.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=sanabria.d@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.