[Bug 1427859] [NEW] ISST-SAN:Need a common format for partition listing using kpartx, fdisk.distrib and ls -l
Launchpad Bug Tracker
1427859 at bugs.launchpad.net
Tue Mar 3 21:35:12 UTC 2015
You have been subscribed to a public bug:
== Comment: #0 - LEKSHMI C. PILLAI <lekshmi.cpillai at in.ibm.com> - 2015-02-25 09:02:18 ==
This is a KVM guest with Ubuntu 15.04.
I am facing issues with format with partition listing using different
commands
In zap06 I created partitions on mpath29 using fdisk.distrib
Before partition creation:
root at zap06:/dev/mapper# fdisk.distrib -l /dev/mapper/mpath29---------->
Disk /dev/mapper/mpath29: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
root at zap06:/dev/mapper# kpartx -r /dev/mapper/mpath29--------------->
root at zap06:/dev/mapper# ls -l mpath29--------------------------------->
lrwxrwxrwx 1 root root 7 Feb 24 08:46 mpath29 -> ../dm-6
root at zap06:/dev/mapper#
After Partition creation:
root at zap06:/dev/mapper# fdisk.distrib -l
/dev/mapper/mpath29--------------->
Disk /dev/mapper/mpath29: 15 GiB, 16106127360 bytes, 31457280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xce509b1c
Device Boot Start End Sectors Size Id Type
/dev/mapper/mpath29p1 2048 2048 0 0B 83 Linux
/dev/mapper/mpath29p2 4096 10489855 10485760 5G 83 Linux
/dev/mapper/mpath29p3 10489856 20975615 10485760 5G 83 Linux
root at zap06:/dev/mapper# kpartx -r /dev/mapper/mpath29
mpath29p2 : 0 10485760 /dev/mapper/mpath29 4096--------------
mpath29p3 : 0 10485760 /dev/mapper/mpath29 10489856-------------------
But instead of names like mpath29pX, the actual device nodes have names
like mpath29-partX:
root at zap06:/dev/mapper# ls -l /dev/mapper/mpath29*
lrwxrwxrwx 1 root root 7 Feb 25 01:30 /dev/mapper/mpath29 -> ../dm-6
brw-rw---- 1 root disk 252, 68 Feb 25 01:30 /dev/mapper/mpath29-part2
brw-rw---- 1 root disk 252, 69 Feb 25 01:30 /dev/mapper/mpath29-part3
root at zap06:/dev/mapper#
After that I created the filesystem on these partitions using the
convention "mpath-part2".Its created successfully and I am able to mount
it
root at zap06:/dev/mapper# mount | grep "29"
/dev/mapper/mpath29-part2 on /Fs29 type ext4 (rw)
/dev/mapper/mpath29-part3 on /FS29_1 type xfs (rw)
root at zap06:/dev/mapper#
Thanks
Lekshmi
** Affects: multipath-tools (Ubuntu)
Importance: Undecided
Status: New
** Tags: architecture-ppc64le bugnameltc-122065 severity-high targetmilestone-inin---
--
ISST-SAN:Need a common format for partition listing using kpartx,fdisk.distrib and ls -l
https://bugs.launchpad.net/bugs/1427859
You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to multipath-tools in Ubuntu.
More information about the Ubuntu-server-bugs
mailing list