------- Comment From pt...@cn.ibm.com 2015-07-20 02:15 EDT-------
(In reply to comment #14)
> sudo /etc/init.d/udev stop

dilllp1 has some problem and we are trying to recover it now. On another
system pinelp2, looks like the udevd *cannot* be killed and this problem
can be reproduced:

% ls /dev/mapper
control  mpath1-part1  mpath1-part3  mpath3        mpath3-part2  mpath3-part4  
mpath4-part1  mpath4-part3
mpath1   mpath1-part2  mpath2        mpath3-part1  mpath3-part3  mpath4        
mpath4-part2  mpath4-part4
% sudo /etc/init.d/udev stop
* Stopping the hotplug events dispatcher udevd
...done.
% sudo /etc/init.d/udev status
* udevd is running
% pgrep udevd
2534
% sudo pkill udevd
% pgrep udevd
6197
% sudo /etc/init.d/udev status
* udevd is running
% sudo parted /dev/mapper/mpath2
GNU Parted 2.3
Using /dev/mapper/mpath2
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpath2: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End  Size  Type  File system  Flags

(parted) mkpart
Partition type?  primary/extended?
Partition type?  primary/extended? primary
File system type?  [ext2]?
Start? 0%
End? 25%
Device /dev/mapper/mpath2p1 not found
device-mapper: table ioctl on  failed: No such device or address
Device /dev/mapper/mpath2p1 not found
device-mapper: table ioctl on  failed: No such device or address
(parted) p
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpath2: 34.4GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
1      1049kB  8590MB  8589MB  primary  ext4

(parted) q
Information: You may need to update /etc/fstab.

% ls /dev/mapper
control  mpath1-part1  mpath1-part3  mpath2p1      mpath3        mpath3-part2  
mpath3-part4  mpath4-part1  mpath4-part3
mpath1   mpath1-part2  mpath2        mpath2-part1  mpath3-part1  mpath3-part3  
mpath4        mpath4-part2  mpath4-part4
%

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1473903

Title:
  parted will generate two devices when adding one partition on mpath
  device

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1473903/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to