From: Oliver Rath <rath@mglug.de>
To: lvm-devel@redhat.com
Subject: lvrename changes link to direct /dev/dm-X
Date: Thu, 29 Aug 2013 11:54:39 +0200 [thread overview]
Message-ID: <521F1A5F.9040805@mglug.de> (raw)
Hi list,
I was able to reproduze the renaming issue on a gentoo-machine with lvm-git:
heimserver ~ # lvcreate --name myoriginal -V 10M -T dmivg/winthinpool
Rounding up size to full physical extent 12,00 MiB
Logical volume "myoriginal" created
heimserver ~ # ls -l /dev/dmivg/myoriginal
lrwxrwxrwx 1 root root 28 29. Aug 11:46 /dev/dmivg/myoriginal ->
/dev/mapper/dmivg-myoriginal
heimserver ~ # lvrename /dev/dmivg/myoriginal myrenamedoriginal
Renamed "myoriginal" to "myrenamedoriginal" in volume group "dmivg"
heimserver ~ # ls -l /dev/dmivg/myrenamedoriginal
lrwxrwxrwx 1 root root 8 29. Aug 11:47 /dev/dmivg/myrenamedoriginal ->
../dm-13
heimserver ~ # ls -l /dev/mapper/dmivg-myrenamedoriginal
lrwxrwxrwx 1 root root 8 29. Aug 11:47
/dev/mapper/dmivg-myrenamedoriginal -> ../dm-13
It seems, that after renaming the link points directly to the /dev/dm-X
device, before that he linked to the link in /dev/mapper/..
In Ubuntu additionally there came an error-message "unable to rename ..."
The same in Ubuntu 12.04.03 with lvm-git:
root at asterisk:~# heimserver ~ # lvcreate --name myoriginal -V 10M -T
dmivg/winthinpool
heimserver: Befehl nicht gefunden.
root at asterisk:~# lvcreate --name myoriginal -V 10M -T dmivg/winthinpool
Rounding up size to full physical extent 12,00 MiB
Logical volume "myoriginal" created
root at asterisk:~# ls -l /dev/dmivg/myoriginal
lrwxrwxrwx 1 root root 28 Aug 29 11:50 /dev/dmivg/myoriginal ->
/dev/mapper/dmivg-myoriginal
root at asterisk:~# ls -l /dev/mapper/dmivg-myoriginal
lrwxrwxrwx 1 root root 8 Aug 29 11:50 /dev/mapper/dmivg-myoriginal ->
../dm-55
root at asterisk:~# lvrename /dev/dmivg/myoriginal myrenamedoriginal
Renamed "myoriginal" to "myrenamedoriginal" in volume group "dmivg"
Unable to rename device node from 'dmivg-myoriginal' to
'dmivg-myrenamedoriginal'
root at asterisk:~# ls -l /dev/dmivg/myrenamedoriginal
lrwxrwxrwx 1 root root 35 Aug 29 11:51 /dev/dmivg/myrenamedoriginal ->
/dev/mapper/dmivg-myrenamedoriginal
root at asterisk:~# ls -l /dev/mapper/dmivg-myrenamedoriginal
brw------- 1 root root 252, 55 Aug 29 11:51
/dev/mapper/dmivg-myrenamedoriginal
root at asterisk:~#
Here the device twice: in /dev/dm-55 _and_ in
/dev/mapper/dmivg-myrenamedoriginal
@Zdenek: if you need a -vvvv log, please tell me.
Tfh!
Oliver
next reply other threads:[~2013-08-29 9:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 9:54 Oliver Rath [this message]
2013-08-30 9:09 ` lvrename changes link to direct /dev/dm-X Zdenek Kabelac
2013-08-30 9:12 ` Zdenek Kabelac
2013-08-30 9:32 ` Oliver Rath
2013-08-30 9:30 ` Oliver Rath
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=521F1A5F.9040805@mglug.de \
--to=rath@mglug.de \
--cc=lvm-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.