[Bug 1332139] Re: Resizing dmraid partition removes device path entry
Phillip Susi
psusi at ubuntu.com
Thu Nov 19 02:21:28 UTC 2015
Thanks Curtis.
** Changed in: gparted (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gparted in Ubuntu.
https://bugs.launchpad.net/bugs/1332139
Title:
Resizing dmraid partition removes device path entry
Status in gparted package in Ubuntu:
Fix Released
Bug description:
I booted my computer using the ubuntu-14.04-desktop-i386.iso image,
and then tried to grow a 20 GiB ext4 partition to 40 GiB.
Unfortunately this failed because at some point the underlying
/dev/mapper partition entry disappeared.
Following are some details from before and after the grow operation:
*** Boot ubuntu 14.04 i386 from Live CD (before running GParted)
ubuntu at ubuntu:~$ ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 Jun 12 16:43 control
brw-rw---- 1 root disk 252, 1 Jun 12 16:43 isw_efjbbijhh_Vol0
brw------- 1 root root 252, 0 Jun 12 16:43 isw_efjbbijhh_Vol0p1
ubuntu at ubuntu:~$ ls -l /dev/dm*
brw-rw---- 1 root disk 252, 0 Jun 12 16:43 /dev/dm-0
brw-rw---- 1 root disk 252, 1 Jun 12 16:43 /dev/dm-1
ubuntu at ubuntu:~$ ls -l /dev/md*
ls: cannot access /dev/md*: No such file or directory
ubuntu at ubuntu:~$
*** Start GParted, but do not perform any operations
ubuntu at ubuntu:~$ ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 Jun 12 16:43 control
brw-rw---- 1 root disk 252, 1 Jun 12 16:43 isw_efjbbijhh_Vol0
brw------- 1 root root 252, 0 Jun 12 16:43 isw_efjbbijhh_Vol0p1
ubuntu at ubuntu:~$ ls -l /dev/dm*
brw-rw---- 1 root disk 252, 0 Jun 12 16:43 /dev/dm-0
brw-rw---- 1 root disk 252, 1 Jun 12 16:43 /dev/dm-1
ubuntu at ubuntu:~$ ls -l /dev/md*
ls: cannot access /dev/md*: No such file or directory
ubuntu at ubuntu:~$
*** Queue and Apply operation to grow ext4 partition from 20 GiB to 40 GiB
*** --> FAILS - see attached gparted_details-ubuntu1404-dm-grow.htm log file
ubuntu at ubuntu:~$ ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 Jun 12 16:43 control
brw-rw---- 1 root disk 252, 1 Jun 12 16:50 isw_efjbbijhh_Vol0
ubuntu at ubuntu:~$ ls -l /dev/dm*
brw-rw---- 1 root disk 252, 0 Jun 12 16:50 /dev/dm-0
brw-rw---- 1 root disk 252, 1 Jun 12 16:43 /dev/dm-1
ubuntu at ubuntu:~$ ls -l /dev/md*
ls: cannot access /dev/md*: No such file or directory
ubuntu at ubuntu:~$
*** The missing entry can be re-added using kpartx
ubuntu at ubuntu:~$ sudo kpartx -l /dev/mapper/isw_efjbbijhh_Vol0
isw_efjbbijhh_Vol0p1 : 0 83886080 /dev/mapper/isw_efjbbijhh_Vol0 2048
ubuntu at ubuntu:~$ sudo kpartx -a /dev/mapper/isw_efjbbijhh_Vol0
ubuntu at ubuntu:~$ ls -l /dev/mapper
total 0
crw------- 1 root root 10, 236 Jun 12 16:43 control
brw-rw---- 1 root disk 252, 1 Jun 12 16:50 isw_efjbbijhh_Vol0
brw-rw---- 1 root disk 252, 0 Jun 12 16:57 isw_efjbbijhh_Vol0p1
ubuntu at ubuntu:~$
*** I tried several other operations. The one thing in common is that
the partition entry in /dev/mapper disappears whenever a change it
made to it by GParted through the libparted library.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/1332139/+subscriptions
More information about the foundations-bugs
mailing list