RAID 1 and mkraid
hi,
i have slackware 10.1 (kernel 2.6.11) and see my raidtab. Code:
Code:
can you help me ? i want to mirorring the hda -> hdb When i boot on my 2.4.29's kernel , the raid0 works fine...... and 2.6.11's kernel false :X thank's |
hello
/dev/hda is specified the whole disk,you should make partitions by fdisk example: And, I think mdadm-tools package are better than raid-tools package :) mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda1 /dev/hdc1 then you can run: lsraid -p -R > raidtab to build raidtab config-file without edit it by manual |
Code:
lsraid return this : Code:
|
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hd[ac]1
see the examples at the end of mdadm man page |
Quote:
that my mistake, :o mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hda1 /dev/hdc1 |
Code:
root@servcd:~# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hd[ac]1 |
please run : fdisk -l and paste result here.
I guess your partition /dev/hda1 is not correct. if you make partitions by fdisk, you must reboot and take activity the new partition, to avoid reboot, you can run partprobe after fdisk. |
what is the output for:
mdadm --query /dev/hda1 mdadm --query /dev/hdc1 |
'fdisk -l'
Code:
root@servcd:~# fdisk -l Code:
root@servcd:~# mdadm --examine /dev/hda1 Code:
root@servcd:~# mdadm --examine /dev/hdc Code:
root@servcd:~# mdadm --query /dev/hda1 do you have solution ? |
another solution...?
|
From what I see, I would think your raid array is already set.
Any error at boot or in dmesg ? |
'dmesg'
Code:
|
What does ' cat /proc/mdstat ' say ?
|
'mdstat'
Code:
root@servcd:~# cat /proc/mdstat Code:
raiddev /dev/md0 Code:
raiddev /dev/md0 Code:
root@servcd:~# mkraid /dev/md0 |
Got a question...Why are you trying to raid your swap partitions?
|
All times are GMT -5. The time now is 05:31 PM. |