Re: mdadm on reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On Mon, Jun 16, 2008 at 12:09 AM, Les Mikesell <lesmikesell@xxxxxxxxx> wrote:
drew einhorn wrote:
Hi,

I'm in the process of trying mdadm for the first time

I've been trying stuff out of tutorials, etc.

At this point I know how to create stripes, and mirrors.

My stripe is automatically restarting on reboot,
but the degraded mirror isn't.

Is the partition type set to FD?


That's the problem, but now I'm having trouble fixing it.

md1 has a single partitions   md1p1

[drew@funGus ~]$ sudo fdisk /dev/md1

The number of cylinders for this disk is set to 244123680.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/md1: 999.9 GB, 999930593280 bytes
2 heads, 4 sectors/track, 244123680 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/md1p1               1   244123680   976494718   fd  Linux raid autodetect

Command (m for help): q

but the attempt to create md2 fails:

[drew@funGus ~]$ sudo mdadm -C -ayes /dev/md2 --level=raid1 --raid-devices=2  missing /dev/md1p1
mdadm: Cannot open /dev/md1p1: No such file or directory
mdadm: create aborted

[drew@funGus ~]$ sudo mdadm -C -ayes /dev/md2 --level=raid1 --raid-devices=2  missing /dev/md1p1
mdadm: Cannot open /dev/md1p1: No such file or directory
mdadm: create aborted

Hmm.  That's right.  I does not exist.

[drew@funGus dev]$ ls -l /dev/md*
brw-r----- 1 root disk 9, 0 Jun 16 06:43 /dev/md0
brw-r----- 1 root disk 9, 1 Jun 16 06:46 /dev/md1
brw-r----- 1 root disk 9, 2 Jun 16 06:48 /dev/md2
[drew@funGus dev]$





 


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



--
Drew Einhorn
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux