LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-05-2007, 04:38 PM   #1
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Rep: Reputation: 15
Udev rule for ATA raid Controller


Hi

I'm having trouble with Debian Etch amd64 and a pci ata raid controller. I've seen before that when adding a pci controller the hd device location can shift. The raid controller get hda to hdd and that also happen with this installation (kernel 2.6.18-4-amd64), no problem there...
But then I installed the 2.6.18-4-xen-vserver-amd64 kernel and it only shift location every 2nd or 3th time, so it makes it impossible to mount via fstab and etc. Plus the boot process is stopped to check corrupted filesystems, that of course doesn't exist.
So isn't possible to define a fixed location for the controller via udev? The guides I could found, was most on usb-devises,HD and etc, so I'm still lost...

I can only get info from the device attaches to the controller and not from the controller itself. This is from a correct boot!
Code:
# udevinfo -q all -n hde
P: /block/hde
N: hde
S: disk/by-id/ata-Maxtor_6Y120P0_Y34LWWXE
S: disk/by-path/pci-0000:04:08.0-ide-0:0
E: ID_TYPE=disk
E: ID_MODEL=Maxtor_6Y120P0
E: ID_SERIAL=Y34LWWXE
E: ID_REVISION=YAR41BW0
E: ID_BUS=ata
E: ID_PATH=pci-0000:04:08.0-ide-0:0

# lspci
04:08.0 RAID bus controller: Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller (rev 02)
 
Old 07-05-2007, 04:43 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Sounds more like a BIOS issue than a udev issue. What type of array do you have on it? Did you configure an array with the BIOS settings or with mdadm? I'm assuming this is a FakeRaid device.
 
Old 07-05-2007, 07:43 PM   #3
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
The controller just function as extra ata devices, no raid setup. Sorry for not providing a prober description. The system HD is split into /boot and lvm partitions for the system and xen domu.
Code:
# fdisk -l /dev/hda
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1          12       96358+  83  Linux
/dev/hda2              13        1459    11623027+  8e  Linux LVM
/dev/hda3            1460       19457   144568935   8e  Linux LVM
I booted again on the "2.6.18-4" kernel, 5 times, and every time the HD order/location was the same. Then I booted on the xen kernel and it was difference the two first time and then it changes back the third. Where the problem lies exactly I don't know, the best solution I can come up with is static rules.
 
Old 07-05-2007, 07:52 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
I don't know what to suggest. Any drives on this controller should be /dev/sd*, and not /dev/hd*. Perhaps it's related to your 64 bit system. I dunno. I just use a 32 bit system.
 
Old 07-08-2007, 11:16 AM   #5
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quakeboy02
I don't know what to suggest. Any drives on this controller should be /dev/sd*, and not /dev/hd*. Perhaps it's related to your 64 bit system. I dunno. I just use a 32 bit system.
OK, thank you for your input anyway. I did learn term FakeRAID. ;-)

I talked to another guy and he suggested to mount via partitionlabels (/dev/disk/by-label/*) and work around the problem that way. FX LABEL=boot, it works great.
If other should have similar problem, they can read about it at debian-administration.org/articles/522.
The article only mention ext3. So if you're using reiserfs on your partitions, you should use " reiserfstune -l boot /dev/hda1" to set the labels.
 
Old 07-09-2007, 02:23 AM   #6
djcs
Member
 
Registered: Jun 2006
Posts: 43

Rep: Reputation: 15
Similar problems

I have similar problems with my system, albeit the ata raid card is built into the motherboard.

So far, the problem i have found appears to be related to grub and maybe even the device.map file.

The last kernel upgrade i did completely balked when i tried to reboot.

Grub said that the drive was meant to be hd1,0.
When i changed it to hd0,0 it worked everytime.

I also had to remove the comment for the groot line in menu.lst

I dont know what exactly fixed it, but it seems that my machine is running ok now (touchwood).

It has booted for me fine the last 1/2 dozen times.

DJ

I hope this helps.
 
Old 07-12-2007, 04:05 PM   #7
nogetfx
LQ Newbie
 
Registered: Dec 2004
Location: Denmark
Distribution: Debian
Posts: 22

Original Poster
Rep: Reputation: 15
I looked at groot and for me with a separate /boot partition it makes sense to uncomment it. Unfortunately it doesn't change the problem and the labels still the only thing that can cope with the dynamic device order.
As for the device.map. Mine doesn't mention partitions, only device.
Code:
(hd0)   /dev/hda
 
  


Reply

Tags
controller, label, udev



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware ATA RAID Controller disastafer Linux - Hardware 6 03-05-2007 04:04 PM
ATA RAID Controller meznak Linux - Hardware 2 10-26-2005 05:45 PM
GigaRAID - ATA RAID Controller on Fedora Core 4 Coookie Monster Linux - Newbie 3 08-29-2005 02:03 PM
Dual boot Xp/Slackware on ATA Raid Controller wma Slackware 4 07-27-2003 11:18 AM
Which ATA RAID controller? system Linux - General 3 12-12-2001 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration