PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Sata controller order
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Sata controller order

Réponse
 
LinkBack Outils de la discussion
Vieux 29/01/2008, 18h50   #1
Stuart Gall
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Sata controller order

Hello,
I have a problem with 4.0r2 (although it is probably not exclusive to
that release)

On a number of systems with multiple sata controllers the controllers
come up in different orders (randomly on boot) the order is always the
same in lilo but gets changed sometimes by the time the kernel loads.
This has the effect of juggling the drives so mount does not work.

I have seen this problem in a number of places on the net, the usual
solution posted is to mount by label rather than by drive.

This is possible for EXT2/EXT3 but it is not possile AFAIKS for swap.
Also the reason these systems have multiple sata controllers is that
they have a raid partition. So also I am not sure how the md device
would handle having its disks moved around.

Is there some way to force a particular controller, and hence disk,
ordering on the kernel ?

For the moment, if these systems have to be shutdown. On reboot if the
order is wrong we get dumped to ramfs then we just ctrl-alt-delete
repeatedly until the order comes right and the system boots.

I can not understand why the order would be random.

I am using irqpoll kernel flag to boot these systems, otherwise we get
sda lost interrupt, not sure if that is relevant.

TVMIA

Stuart


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/01/2008, 19h00   #2
Jonathan Doe
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sata controller order

On Tuesday 29 January 2008 11:09:50 am Stuart Gall wrote:
> This is possible for EXT2/EXT3 but it is not possile AFAIKS for swap.
> Also the reason these systems have multiple sata controllers is that
> they have a raid partition. So also I am not sure how the md device
> would handle having its disks moved around.


You can label swap partitions like this:

mkswap -L <label> <block device>

Another option is to use swap files.

AFAIK software raid stores the information about how a particular partition
fits into a whole raid array on the partition itself, so the way in which the
devices appear in /dev makes no difference.

I am using a software raid array and have the same problem. Labeling the
partitions (including the swap partitions) made everything work.

MM


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/01/2008, 19h00   #3
Ron Johnson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sata controller order

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/29/08 12:09, Stuart Gall wrote:
> Hello,
> I have a problem with 4.0r2 (although it is probably not exclusive to
> that release)
>
> On a number of systems with multiple sata controllers the controllers
> come up in different orders (randomly on boot) the order is always the
> same in lilo but gets changed sometimes by the time the kernel loads.
> This has the effect of juggling the drives so mount does not work.
>
> I have seen this problem in a number of places on the net, the usual
> solution posted is to mount by label rather than by drive.
>
> This is possible for EXT2/EXT3 but it is not possile AFAIKS for swap.


Swap partitions *can* have labels. You can also mount by UUID.

> Also the reason these systems have multiple sata controllers is that
> they have a raid partition. So also I am not sure how the md device
> would handle having its disks moved around.
>
> Is there some way to force a particular controller, and hence disk,
> ordering on the kernel ?
>
> For the moment, if these systems have to be shutdown. On reboot if the
> order is wrong we get dumped to ramfs then we just ctrl-alt-delete
> repeatedly until the order comes right and the system boots.
>
> I can not understand why the order would be random.
>
> I am using irqpoll kernel flag to boot these systems, otherwise we get
> sda lost interrupt, not sure if that is relevant.
>
> TVMIA


- --
Ron Johnson, Jr.
Jefferson LA USA

"I'm not a vegetarian because I love animals, I'm a vegetarian
because I hate vegetables!"
unknown
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHn3afS9HxQb37XmcRAhk0AJ0UxT4VPZ51S1J8C6fp7l ndRgVI4gCg4Jha
f8/KTBSaai9Vs32vX/tNKsE=
=6rOa
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 06/02/2008, 21h00   #4
Stuart Gall
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sata controller order

In article <9R3QW-3ap-69@gated-at.bofh.it>,
Ron Johnson <ron.l.johnson@cox.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 01/29/08 12:09, Stuart Gall wrote:
> > Hello,
> > I have a problem with 4.0r2 (although it is probably not exclusive to
> > that release)
> >
> > On a number of systems with multiple sata controllers the controllers
> > come up in different orders (randomly on boot) the order is always the
> > same in lilo but gets changed sometimes by the time the kernel loads.
> > This has the effect of juggling the drives so mount does not work.
> >
> > I have seen this problem in a number of places on the net, the usual
> > solution posted is to mount by label rather than by drive.
> >
> > This is possible for EXT2/EXT3 but it is not possile AFAIKS for swap.

>
> Swap partitions *can* have labels. You can also mount by UUID.



Yes swap partitions can have labels, yes you can mount ext2/ext3
filesystems bu UUID. But it does not work for swap.

At least that is my interpretation of man fstab. And no matter what I
try in fstab I cant mount swap by label or UUID.

Can you give me an example of what my fstab entry should look like

LABEL=swap swap swap defaults 0 0
Does not work.




>
> > Also the reason these systems have multiple sata controllers is that
> > they have a raid partition. So also I am not sure how the md device
> > would handle having its disks moved around.
> >
> > Is there some way to force a particular controller, and hence disk,
> > ordering on the kernel ?
> >
> > For the moment, if these systems have to be shutdown. On reboot if the
> > order is wrong we get dumped to ramfs then we just ctrl-alt-delete
> > repeatedly until the order comes right and the system boots.
> >
> > I can not understand why the order would be random.
> >
> > I am using irqpoll kernel flag to boot these systems, otherwise we get
> > sda lost interrupt, not sure if that is relevant.
> >
> > TVMIA

>
> - --
> Ron Johnson, Jr.
> Jefferson LA USA
>
> "I'm not a vegetarian because I love animals, I'm a vegetarian
> because I hate vegetables!"
> unknown
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFHn3afS9HxQb37XmcRAhk0AJ0UxT4VPZ51S1J8C6fp7l ndRgVI4gCg4Jha
> f8/KTBSaai9Vs32vX/tNKsE=
> =6rOa
> -----END PGP SIGNATURE-----



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 06/02/2008, 21h20   #5
Stuart Gall
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sata controller order

In article <9R3QP-3ap-23@gated-at.bofh.it>,
Jonathan Doe <anonymous.jondoe@gmail.com> wrote:

> You can label swap partitions like this:
>
> mkswap -L <label> <block device>


OH I SEE!

Well that does it, many thanks.

Stuart


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h41.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,15205 seconds with 13 queries