LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Where can be the problem (RAID-1)? (https://www.linuxquestions.org/questions/linux-software-2/where-can-be-the-problem-raid-1-a-471477/)

Hondro 08-07-2006 12:52 AM

Where can be the problem (RAID-1)?
 
Hi, i have two hard disks and partitions in it:
Quote:

/dev/hda8 9001 9526 265072+ 83 Linux
/dev/hdb8 568 600 265041 fd Linux raid autodetect
Partition /dev/hda8 is ext3 file system.

File /etc/raidtab:
Quote:

raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
persistent-superblock 1
chunk-size 4
device /dev/hda8
raid-disk 0
device /dev/hdb8
raid-disk 1
When i try to run "mkraid /dev/md0":
Quote:

handling MD device /dev/md0
analyzing super-block
disk 0: /dev/hda8, 265072kB, raid superblock at 264960kB
/dev/hda8 is mounted
mkraid: aborted.
(In addition to the above messages, see the syslog and /proc/mdstat as well
for potential clues.)
When i "umount /dev/hda8" and run "mkraid /dev/md0":
Quote:

handling MD device /dev/md0
analyzing super-block
disk 0: /dev/hda8, 265072kB, raid superblock at 264960kB
/dev/hda8 appears to contain an ext2 filesystem -- use -f to override
mkraid: aborted.
(In addition to the above messages, see the syslog and /proc/mdstat as well
for potential clues.)
But /dev/hda8 is ext3 fs, where can be the problem?

rahulk 08-09-2006 07:41 AM

Quote:

Originally Posted by Hondro
Hi, i have two hard disks and partitions in it:

Partition /dev/hda8 is ext3 file system.

File /etc/raidtab:


When i try to run "mkraid /dev/md0":


When i "umount /dev/hda8" and run "mkraid /dev/md0":


But /dev/hda8 is ext3 fs, where can be the problem?

hmm, should not happen but if problem persists then try to change the ID of /dev/hda8 from ext3 to fd. Note that the file system will still be ext3 only. You may change the partition ID without having to worry about losing the data!!. Afterwards try to create the raid or use raidhotadd to add into the existing raid. use -f option of mkraid if problem persists.


All times are GMT -5. The time now is 01:48 AM.