GParted 0.8 and software raid (dmraid)

Topics about disk partitioning (fdisk, parted, gparted, partimage), Volumes Management (lvm, evms, dmraid), Storage, file systems, ...
brnrdgmz
Posts: 5
Joined: 18 Jan 2009, 19:07
Location: France

GParted 0.8 and software raid (dmraid)

Postby brnrdgmz » 31 May 2011, 14:57

I just try to use systemrescuecd-x86-2.1.1.
GParted 0.8 doesn't see my raid 0 disk, i have only sda and sdb (my physical disks).
Partimage and fsarchiver found my dm-n and devices dm-1, dm-2 .... exist in /dev but i don't see dm-0 which is, as i have understand, the raid disk !
Previously with GParted 0.7 I can manage all the raid partitions. Also, GParted 0.7.1 works on my linux installation.
I go back to my previous version 1.6.3 which works normally.

I don't known if the problem is in GParted or dmraid.
If somebody has a solution, I will be happy to test it.

Thank you.

gernot
Posts: 1125
Joined: 07 Apr 2010, 16:19

Re: GParted 0.8 and software raid (dmraid)

Postby gernot » 31 May 2011, 15:27

Work gparted /dev/dm..... ?

brnrdgmz
Posts: 5
Joined: 18 Jan 2009, 19:07
Location: France

Re: GParted 0.8 and software raid (dmraid)

Postby brnrdgmz » 07 Jun 2011, 16:22

I try : gparted /dev/dm-0
gparted find all my raid partitions BUT with a warning for each : /dev/mapper/isw_...._Volume0n no such file or directory.
A check on a reiserfs partition result in an error.

In fact, /dev/dm-0, /dev/dm-1 .... exist but there are no block devices in /dev/mapper as i had with rescuecd 1.6.3.

The versions of dmraid and device-mapper are the same in 1.6.3 and 2.1.0.

I download the last rescuecd version 2.2.0 with gparted 0.8.1 and the problem is the same except that my raid disk is /dev/dm-1 !

Trying to use dmraid i get errors because it doesn't found the same block devices in /dev/mapper.

I restart rescuecd with nodmraid option and the command : dmraid -ay doesn't work.

Finally it seems that the problem is with rescuecd raid initialization.

LazyKent
Posts: 28
Joined: 12 Dec 2009, 09:30
Location: Moscow, Russia

Re: GParted 0.8 and software raid (dmraid)

Postby LazyKent » 09 Jun 2011, 07:45

I have the similar problem with GParted.
It doesn't recognize my RAID1, /dev/md0.

mdadm shows RAID1 correctly.

Some of previous versions of GParted worked well.

brnrdgmz
Posts: 5
Joined: 18 Jan 2009, 19:07
Location: France

Re: GParted 0.8 and software raid (dmraid)

Postby brnrdgmz » 12 Jun 2011, 16:50

To solve the problem i create symbolic links to dm devices with names used by GParted.
I use the links created in /dev/disk/by-id to get correct names.

Here is a little shell to do this :

Code: Select all

#!/bin/sh
#
# Configure dmraid devices for gparted
#
# retrieve RAID volume(s)
# create symbolic links to block devices compatible with gparted

dir=$PWD
cd /dev/disk/by-id
ls -l --time-style=long-iso dm-name-* | awk '{
    i=0
    do { j += i; i=index(substr($10,j),"/") } while (i > 0)
    filename = substr($10,j)
   command = "ln -s /dev/" filename " /dev/mapper/" substr($8,9)
   print command
   system( command)
}'


After calling this shell Gparted found my raid disk and all it's partitions.
That works with sysrescuecd 2.1.1 and 2.2.0.

cschulzejn
Posts: 46
Joined: 08 Dec 2010, 13:07

Re: GParted 0.8 and software raid (dmraid)

Postby cschulzejn » 04 Jul 2012, 07:45

I've used sysresccd to acceess fake-raids long time ago. Within the last weeks I needed to access fake-raids again - no luck with current sysresccd. The script posted by brnrdgmz is still needed.

Why do we need that script now, in older versions it worked out of the box.


Return to “Hard-disk partitioning and storage”

Who is online

Users browsing this forum: No registered users and 2 guests