Assembling raid device from live CD
by circus78 from LinuxQuestions.org on (#59QFP)
Hi,
apparenlty, I have some issues in assembling a raid(1) device from a live cd (Clonezilla).
This server has two physical disks.
I booted clonezilla and I get this:
Code:root@debian:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md125 : inactive md126p1[2](S)
3904512 blocks super 1.2
md126 : active (auto-read-only) raid1 sda[1] sdb[0]
77148160 blocks super external:/md127/0 [2/2] [UU]
md127 : inactive sda[1](S) sdb[0](S)
2005168 blocks super external:ddf
unused devices: <none>partitions are fine to me:
Code:root@debian:~# fdisk -l /dev/sda
Disk /dev/sda: 74.54 GiB, 80026361856 bytes, 156301488 sectors
Disk model: ST380815AS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6c8a4b79
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 7813119 7811072 3.7G fd Linux raid autodetect
/dev/sda2 7815166 156301311 148486146 70.8G 5 Extended
/dev/sda5 7815168 156301311 148486144 70.8G fd Linux raid autodetect
root@debian:~# fdisk -l /dev/sdb
Disk /dev/sdb: 74.54 GiB, 80026361856 bytes, 156301488 sectors
Disk model: Maxtor 6V080E0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6c8a4b79
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 7813119 7811072 3.7G fd Linux raid autodetect
/dev/sdb2 7815166 156301311 148486146 70.8G 5 Extended
/dev/sdb5 7815168 156301311 148486144 70.8G fd Linux raid autodetectthis sounds strange to me:
Code:root@debian:~# fdisk -l /dev/md126
Disk /dev/md126: 73.59 GiB, 78999715840 bytes, 154296320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6c8a4b79
Device Boot Start End Sectors Size Id Type
/dev/md126p1 * 2048 7813119 7811072 3.7G fd Linux raid autodetect
/dev/md126p2 7815166 156301311 148486146 70.8G 5 Extended
/dev/md126p5 7815168 156301311 148486144 70.8G fd Linux raid autodetectother details:
Code:root@debian:~# mdadm -D /dev/md125
/dev/md125:
Version : 1.2
Raid Level : raid0
Total Devices : 1
Persistence : Superblock is persistent
State : inactive
Working Devices : 1
Name : server:0
UUID : daf3c7d7:8f54e7c7:174d4570:2323985c
Events : 419
Number Major Minor RaidDevice
- 259 0 - /dev/md126p1
root@debian:~# mdadm -D /dev/md126
/dev/md126:
Container : /dev/md/ddf0, member 0
Raid Level : raid1
Array Size : 77148160 (73.57 GiB 79.00 GB)
Used Dev Size : 77148160 (73.57 GiB 79.00 GB)
Raid Devices : 2
Total Devices : 2
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Consistency Policy : resync
Container GUID : 4C534920:20202020:808627C3:00000000:259F499E:259F5DC2
(LSI 01/01/00 12:14:22)
Seq : 0000000d
Virtual Disks : 1
Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 0 1 active sync /dev/sda
root@debian:~# mdadm -D /dev/md127
/dev/md127:
Version : ddf
Raid Level : container
Total Devices : 2
Working Devices : 2
Container GUID : 4C534920:20202020:808627C3:00000000:259F499E:259F5DC2
(LSI 01/01/00 12:14:22)
Seq : 0000000d
Virtual Disks : 1
Member Arrays : /dev/md126
Number Major Minor RaidDevice
- 8 0 - /dev/sda
- 8 16 - /dev/sdb
any help?
thank you!


apparenlty, I have some issues in assembling a raid(1) device from a live cd (Clonezilla).
This server has two physical disks.
I booted clonezilla and I get this:
Code:root@debian:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md125 : inactive md126p1[2](S)
3904512 blocks super 1.2
md126 : active (auto-read-only) raid1 sda[1] sdb[0]
77148160 blocks super external:/md127/0 [2/2] [UU]
md127 : inactive sda[1](S) sdb[0](S)
2005168 blocks super external:ddf
unused devices: <none>partitions are fine to me:
Code:root@debian:~# fdisk -l /dev/sda
Disk /dev/sda: 74.54 GiB, 80026361856 bytes, 156301488 sectors
Disk model: ST380815AS
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6c8a4b79
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 7813119 7811072 3.7G fd Linux raid autodetect
/dev/sda2 7815166 156301311 148486146 70.8G 5 Extended
/dev/sda5 7815168 156301311 148486144 70.8G fd Linux raid autodetect
root@debian:~# fdisk -l /dev/sdb
Disk /dev/sdb: 74.54 GiB, 80026361856 bytes, 156301488 sectors
Disk model: Maxtor 6V080E0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6c8a4b79
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 7813119 7811072 3.7G fd Linux raid autodetect
/dev/sdb2 7815166 156301311 148486146 70.8G 5 Extended
/dev/sdb5 7815168 156301311 148486144 70.8G fd Linux raid autodetectthis sounds strange to me:
Code:root@debian:~# fdisk -l /dev/md126
Disk /dev/md126: 73.59 GiB, 78999715840 bytes, 154296320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6c8a4b79
Device Boot Start End Sectors Size Id Type
/dev/md126p1 * 2048 7813119 7811072 3.7G fd Linux raid autodetect
/dev/md126p2 7815166 156301311 148486146 70.8G 5 Extended
/dev/md126p5 7815168 156301311 148486144 70.8G fd Linux raid autodetectother details:
Code:root@debian:~# mdadm -D /dev/md125
/dev/md125:
Version : 1.2
Raid Level : raid0
Total Devices : 1
Persistence : Superblock is persistent
State : inactive
Working Devices : 1
Name : server:0
UUID : daf3c7d7:8f54e7c7:174d4570:2323985c
Events : 419
Number Major Minor RaidDevice
- 259 0 - /dev/md126p1
root@debian:~# mdadm -D /dev/md126
/dev/md126:
Container : /dev/md/ddf0, member 0
Raid Level : raid1
Array Size : 77148160 (73.57 GiB 79.00 GB)
Used Dev Size : 77148160 (73.57 GiB 79.00 GB)
Raid Devices : 2
Total Devices : 2
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Consistency Policy : resync
Container GUID : 4C534920:20202020:808627C3:00000000:259F499E:259F5DC2
(LSI 01/01/00 12:14:22)
Seq : 0000000d
Virtual Disks : 1
Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 0 1 active sync /dev/sda
root@debian:~# mdadm -D /dev/md127
/dev/md127:
Version : ddf
Raid Level : container
Total Devices : 2
Working Devices : 2
Container GUID : 4C534920:20202020:808627C3:00000000:259F499E:259F5DC2
(LSI 01/01/00 12:14:22)
Seq : 0000000d
Virtual Disks : 1
Member Arrays : /dev/md126
Number Major Minor RaidDevice
- 8 0 - /dev/sda
- 8 16 - /dev/sdb
any help?
thank you!