All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pedro Bandim Faustino <pedro.faustino@fccn.pt>
To: malahal@us.ibm.com, device-mapper development <dm-devel@redhat.com>
Subject: Re: user defined device name and table - SOLVED
Date: Tue, 27 Nov 2007 10:00:04 +0000	[thread overview]
Message-ID: <474BEAA4.9010702@fccn.pt> (raw)
In-Reply-To: <20071126194624.GA23541@us.ibm.com>


[-- Attachment #1.1: Type: text/plain, Size: 2005 bytes --]

malahal@us.ibm.com wrote:
> Pedro Bandim Faustino [pedro.faustino@fccn.pt] wrote:
>   
>> Hi All,
>>
>> I have a working multipath on root, but some questions still unanswered.
>> I'm hoping you can help me out ;)
>>
>> But this is what I really would like to have:
>>
>> Output of multipath -ll:
>> SRV07_BOOT (3600a0b8000295d64000009304742b4c8) dm-0 IBM,1814      FAStT
>> [size=4.0G][features=1 queue_if_no_path][hwhandler=0]
>> \_ round-robin 0 [prio=0][enabled]
>> \_ 2:0:0:0 sda 8:0   [active][ready]
>> \_ 3:0:0:0 sdc 8:32  [active][ready]
>> \_ round-robin 0 [prio=6][active]
>> \_ 2:0:1:0 sdb 8:16  [active][ready]
>> \_ 3:0:1:0 sdd 8:48  [active][ready]
>>
>>
>> I can modify the table by modifying the init script in the initrd image and 
>> then booting with the modified initrd image but I don't know how to change 
>> the name from mpath0 to SRV07_BOOT.
>>     
>
> I don't know how Fedora Core 7 handles this in the initrd. Old RHEL
> systems (prior to RHEL5.1) have nash commands to construct hard coded
> multipath devices. You probably supply the name as part those commands.
> If Fedora Core 7 uses something similar to RHEL5.2, then you could
> probably use aliases in the multipath.conf file and rebuild initrd???
>   
Fedora does use nash commands in its mkinitrd script. From what I 
understood Fedora 7 mkinitrd doesn't fetch multipath settings from the 
conf file, instead it checks the current, in use, settings.

So, what I've done was change the table (at boot time, modifying the 
init script of the initrd image) and rebooted with this new image.
Then, I've changed the friendly name (using dmsetup rename command), 
issued a mkinitrd and rebooted with this new image.
(You can do the above by modifying the init script just once)

So I finally got the what I wanted and also the desired names at 
/dev/mapper and /dev/mpath.
What I'm going to do now is configure the multipathd and multipath.conf 
to finish my setup.

Cheers and thanks for your help,
Pedro Bandim Faustino

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 2980 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



      reply	other threads:[~2007-11-27 10:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-26 14:53 user defined device name and table Pedro Bandim Faustino
2007-11-26 16:44 ` Stefan Bader
2007-11-27  9:31   ` Pedro Bandim Faustino
2007-11-27 19:48     ` Benjamin Marzinski
2007-11-28 10:32       ` Pedro Bandim Faustino
2007-11-26 19:46 ` malahal
2007-11-27 10:00   ` Pedro Bandim Faustino [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=474BEAA4.9010702@fccn.pt \
    --to=pedro.faustino@fccn.pt \
    --cc=dm-devel@redhat.com \
    --cc=malahal@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.