Resizing dmraid partition removes device path entry
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gparted (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I booted my computer using the ubuntu-
Following are some details from before and after the grow operation:
*** Boot ubuntu 14.04 i386 from Live CD (before running GParted)
ubuntu@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_
ubuntu@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@ubuntu:~$ ls -l /dev/md*
ls: cannot access /dev/md*: No such file or directory
ubuntu@ubuntu:~$
*** Start GParted, but do not perform any operations
ubuntu@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_
ubuntu@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@ubuntu:~$ ls -l /dev/md*
ls: cannot access /dev/md*: No such file or directory
ubuntu@ubuntu:~$
*** Queue and Apply operation to grow ext4 partition from 20 GiB to 40 GiB
*** --> FAILS - see attached gparted_
ubuntu@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@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@ubuntu:~$ ls -l /dev/md*
ls: cannot access /dev/md*: No such file or directory
ubuntu@ubuntu:~$
*** The missing entry can be re-added using kpartx
ubuntu@ubuntu:~$ sudo kpartx -l /dev/mapper/
isw_efjbbijhh_
ubuntu@ubuntu:~$ sudo kpartx -a /dev/mapper/
ubuntu@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_
ubuntu@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.
gparted_details.htm log file that failed when attempting to grow an ext4 20 GiB dmraid partition to 40 GiB.