Discussion:
[linux-lvm] Renaming volumes and /proc/mounts
Phillip Susi
2014-12-19 18:43:52 UTC
Permalink
Is it possible to get /proc/mounts to update to the new name after
doing an lvrename of a mounted volume? It plays hell on update-grub
when you rename a mounted volume and /proc/mounts still has the old name.
Linda A. Walsh
2015-01-12 06:14:04 UTC
Permalink
Post by Phillip Susi
Is it possible to get /proc/mounts to update to the new name after
doing an lvrename of a mounted volume? It plays hell on update-grub
when you rename a mounted volume and /proc/mounts still has the old name.
lvrename can rename an actively mounted device? Is it supposed
to do that?

That sounds a bit strange. I mean if I rename a network device, I'd
have to take down the interface before renaming it. I'd think with a
disk partition unmounting it would be, at least, prudent? Is it really
not necessary?
Phillip Susi
2015-01-13 01:55:11 UTC
Permalink
Post by Phillip Susi
Is it possible to get /proc/mounts to update to the new name
after doing an lvrename of a mounted volume? It plays hell on
update-grub when you rename a mounted volume and /proc/mounts
still has the old name.
lvrename can rename an actively mounted device? Is it supposed to
do that?
That sounds a bit strange. I mean if I rename a network device,
I'd have to take down the interface before renaming it. I'd think
with a disk partition unmounting it would be, at least, prudent?
Is it really not necessary?
Of course; the only problem is that /proc/mounts still lists the old
name so an update-grub still uses the old name in /boot/grub/grub.cfg,
so after a reboot, I have to manually edit the command to point to the
new name to boot, then re-run update-grub so subsequent boots work right.
Loading...