HOMEPAGE FORUMS NEWS DOCUMENTATION SCREENSHOTS
SystemRescueCd forums
View unanswered posts | View active topics It is currently 21 Oct 2014, 11:57



Post new topic Reply to topic  [ 6 posts ] 
 GParted 0.8 and software raid (dmraid) 
Author Message

Joined: 18 Jan 2009, 19:07
Posts: 5
Location: France
Post GParted 0.8 and software raid (dmraid)
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.


31 May 2011, 14:57
Profile

Joined: 07 Apr 2010, 16:19
Posts: 958
Post Re: GParted 0.8 and software raid (dmraid)
Work gparted /dev/dm..... ?


31 May 2011, 15:27
Profile

Joined: 18 Jan 2009, 19:07
Posts: 5
Location: France
Post Re: GParted 0.8 and software raid (dmraid)
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.


07 Jun 2011, 16:22
Profile

Joined: 12 Dec 2009, 09:30
Posts: 27
Location: Moscow, Russia
Post Re: GParted 0.8 and software raid (dmraid)
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.


09 Jun 2011, 07:45
Profile

Joined: 18 Jan 2009, 19:07
Posts: 5
Location: France
Post Re: GParted 0.8 and software raid (dmraid)
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:
#!/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.


12 Jun 2011, 16:50
Profile

Joined: 08 Dec 2010, 13:07
Posts: 33
Post Re: GParted 0.8 and software raid (dmraid)
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.


04 Jul 2012, 07:45
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.