From: Milan Broz <mbroz@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: dmsetup load not working?
Date: Sat, 08 Dec 2007 18:53:59 +0100 [thread overview]
Message-ID: <475ADA37.6060108@redhat.com> (raw)
In-Reply-To: <20071208162439.GA3964@newbie.thebellsplace.net>
Bob Bell wrote:
> I'm using a SLES10 SP1 x86_64 system, and I'm been using dmsetup
> intensively for the first time. From what I can tell, `dmsetup load`
> just doesn't seem to work; it doesn't seem to have any effect.
>
> Below is the simplest case I could think to come up with to illustrate
> this issue. Could anyone help me here? Am I doing something wrong?
...
> brick14b:~ # dmsetup create loop2 --notable
> brick14b:~ # dmsetup table loop
> 0 204800 linear 7:1 0
> brick14b:~ # dmsetup table loop2
>
> brick14b:~ # dmsetup table loop | dmsetup load loop2
> brick14b:~ # echo $?
> 0
There can be two tables for DM device, active and inactive.
Active (live) table is used for operation, inactive is used
in preparation for table change.
"Inactive" table is activated during device resume (if you need to
change table, suspend device and resume device is needed to switch
inactive table to live state).
> brick14b:~ # dmsetup table loop2
loop2 was created with --notable, so there is no live table but only inactive.
You need to add "dmsetup resume loop2" here.
(Because device has no table, suspend is not required.)
See "man dmsetup" too. Anyway, be very careful using this low level commands,
better use some volume management system on top of device mapper.
>
> brick14b:~ # dmsetup info loop2
> Name: loop2
> State: ACTIVE
> Tables present: INACTIVE
^^ this is problem, no live table, just inactive here.
> Open count: 0
> Event number: 0
> Major, minor: 253, 11
> Number of targets: 0
Milan
--
mbroz@redhat.com
next prev parent reply other threads:[~2007-12-08 17:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-08 16:24 dmsetup load not working? Bob Bell
2007-12-08 17:53 ` Milan Broz [this message]
2007-12-08 18:07 ` Bob Bell
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=475ADA37.6060108@redhat.com \
--to=mbroz@redhat.com \
--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.