Partimage does not recognize Software-RAID5 Partitions

Go there if you encounter an unexpected error when using the softare. For installation problems, use another forum.

Moderator: feffer

Guest

Partimage does not recognize Software-RAID5 Partitions

Postby Guest » Mon Feb 28, 2005 9:39 pm

Here is the output of 'cat /proc/mdstat' on my box

Code: Select all

Personalities : [linear] [raid0] [raid1] [raid5] [multipath]
md2 : active raid5 sdc6[2] sdb6[1] sda6[0]
      17233664 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]

md0 : active raid1 sdc1[2] sdb1[1] sda1[0]
      97152 blocks [3/3] [UUU]


As you will notice I have two array's, /dev/md0 is a RAID0 array for my /boot partition and /dev/md2 is a RAID5 array for everything else, ie '/'.

When I try to use partimage, it will only list /dev/md0 and it will correctly recognize it as using resierfs. However, it does not recognize /dev/md2 at all and further more, it shows the filesystem for the disk partitions that make up /dev/md2 as "unknown".

It makes sense to me why it would say "unknown" for sda6,sdb6 and sdc6 because the data is stripped across those disks and any single one wont resemble a known filesystem, but I have no idea why it wont show /dev/md2? Is it possible that partimage is hardcoded to only look for /dev/md0 and no further device?

Guest

Postby Guest » Wed Mar 02, 2005 9:33 am

There is definitely a bug in the code detects the software-raid md* devices. I was able to find a workaround which clearly points out that this is a bug in partimage. I noticed that /dev/md0 was nothing but a symlink to /dev/md/0, so what I did was symlink /dev/md0 to /dev/md/2. When I started up partimage with this new change the "md0" device it found now shows the correct partition size for my RAID5 partition. With a little bit more playing around, I further found out that this renaming of symlinks wasnt even needed. Curiously, if I only raidstart'd /dev/md2 and ran partimage, what do you know but it now shows "md/2" in the list of devices. However if I raidstart /dev/md0 as well and go back into partimage, only "md0" is shown and "md/2" is nowhere to be found. Im not sure if the fact that it reports my RAID5 partition as "md/2" with a slash in the name, whereas it shows "md0" with no slash has anything to do with this problem.

Guest

Postby Guest » Fri Mar 18, 2005 8:16 am

Do devs even read these forums, is there a better place to send a vaild bug report, because this one is fairly big.


Return to “Unexpected errors during usage”

Who is online

Users browsing this forum: Bing [Bot] and 0 guests