From: gistolero@gmx.de
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: mpath_ctl observation + some novice questions
Date: Thu, 15 Sep 2005 18:31:38 +0200 [thread overview]
Message-ID: <4329A1EA.9040203@gmx.de> (raw)
In-Reply-To: <20050915132538.GA27752@locust.cns.vt.edu>
Hi,
> Next topic. I'm a real dm novice user. I have not
> figured out how to create the disk devices and lvm fs. Is there
> a doc on how to do this? My guess is that I need
> to map the wwid in multipath.conf. Is this demonstrated
> somewhere? Thanks.
use a test environment, no production server!
startup-configuration:
1.) load dm-mapper and HBA kernel modules
2.) create partitions on each lun (e.g.: lun0 has two paths sda and sdb -
"fdisk sda" creates the partitions for sda _and_ sdb) - you have to do this
step _before_ creating multipath devices (kpartx in
/etc/dev.d/block/multipath.dev reads this partition information)
3.) create /etc/multipath.conf
- check multipath.conf.annotated and multipath.conf.synthetic in the
multipath-tools tarball
- get lun wwid's with "scsi_id -g -u -s /block/sd?"
- create a "multipath { ... }" section for each lun (define "wwid" and "alias")
- create a "device { ... }" section for your storage (see "TestedEnvironments"
located at the multipath-tools homepage) - set "path_grouping_policy" and
"prio_callout" (setting "prio_callout" is important. if you choose a wrong
value, you will see nothing after starting multipath)
4.) start multipathd (debug with "-d" or "-v4" (syslog))
5.) run "multipath /dev/sd?" for each sd? device
multipath should create device-mapper table entries (see "dmsetup table"),
block-device-files in /dev/mapper/ and links in /dev/ for the lun and for each
partition
e.g.: you have created two partitions and your lun alias is "yellow" (defined
in /etc/multipath.conf):
# dmsetup table
yellow1: ...
yellow: ...
yellow2: ...
# ls /dev/mapper/
yellow yellow1 yellow2 control
# ls -F /dev/yellow*
/dev/yellow@ /dev/yellow1@ /dev/yellow2@
and check "multipath [-v3] -ll"
6.) create filesystems and mount /dev/yellow1 and /dev/yellow2
you can delete the current configuration with "dmsetup remove yellow2; dmsetup
remove yellow1; dmsetup remove yellow"
hope that helps
simon
next prev parent reply other threads:[~2005-09-15 16:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 13:25 mpath_ctl observation + some novice questions Ray Stell
2005-09-15 14:42 ` Alasdair G Kergon
2005-09-17 22:41 ` christophe varoqui
2005-09-15 16:31 ` gistolero [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-09-15 16:07 Ray Stell
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=4329A1EA.9040203@gmx.de \
--to=gistolero@gmx.de \
--cc=dm-devel@redhat.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.