* [linux-lvm] Error: Doesn't contain a valid partition table
@ 2012-10-27 21:10 Ramesh Nadupalli
2012-10-29 14:08 ` James Hawtin
0 siblings, 1 reply; 3+ messages in thread
From: Ramesh Nadupalli @ 2012-10-27 21:10 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 3686 bytes --]
Dear All,
I am trying to build a new linux VM using RHEL6.2. I have created the
partitions using lvm. Everything works fine, but when I execute "fdisk -l"
I am getting the below errors. Is this expected? If so, how to fix the
errors?
Disk /dev/mapper/vg00-root doesn't contain a valid partition table
Disk /dev/mapper/vg00-opt doesn't contain a valid partition table
Disk /dev/mapper/vg00-tmp doesn't contain a valid partition table
Disk /dev/mapper/vg00-var doesn't contain a valid partition table
Disk /dev/mapper/vg00-usr doesn't contain a valid partition table
Disk /dev/mapper/vg00-home doesn't contain a valid partition table
Complete output of fdisk -l is given below:
Disk /dev/sda: 26.8 GB, 26843545600 bytes
64 heads, 32 sectors/track, 25600 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7bed667d
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1026 1050608 83 Linux
/dev/sda2 1027 3076 2099200 82 Linux swap / Solaris
/dev/sda3 3077 25600 23064576 8e Linux LVM
Disk /dev/sdb: 53.7 GB, 53687091200 bytes
64 heads, 32 sectors/track, 51200 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd5310289
Device Boot Start End Blocks Id System
/dev/sdb1 1 51200 52428784 8e Linux LVM
Disk /dev/mapper/vg00-root: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg00-root doesn't contain a valid partition table
Disk /dev/mapper/vg00-opt: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg00-opt doesn't contain a valid partition table
Disk /dev/mapper/vg00-tmp: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg00-tmp doesn't contain a valid partition table
Disk /dev/mapper/vg00-var: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg00-var doesn't contain a valid partition table
Disk /dev/mapper/vg00-usr: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg00-usr doesn't contain a valid partition table
Disk /dev/mapper/vg00-home: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vg00-home doesn't contain a valid partition table
[-- Attachment #2: Type: text/html, Size: 4771 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Error: Doesn't contain a valid partition table
2012-10-27 21:10 [linux-lvm] Error: Doesn't contain a valid partition table Ramesh Nadupalli
@ 2012-10-29 14:08 ` James Hawtin
2012-10-29 14:16 ` Bryn M. Reeves
0 siblings, 1 reply; 3+ messages in thread
From: James Hawtin @ 2012-10-29 14:08 UTC (permalink / raw)
To: LVM general discussion and development
This is to be expected. because it is possible to have partition tables on
logical volumes created by LVM. if you don't like this use the "filter"
line in /etc/lvm/lvm.conf to include/exclude what you want to be searched.
This is also useful if you want to exclude multipathed/mirrored devices.
James
> Dear All,
>
> I am trying to build a new linux VM using RHEL6.2. I have created the
> partitions using lvm. Everything works fine, but when I execute "fdisk -l"
> I am getting the below errors. Is this expected? If so, how to fix the
> errors?
>
> Disk /dev/mapper/vg00-root doesn't contain a valid partition table
> Disk /dev/mapper/vg00-opt doesn't contain a valid partition table
> Disk /dev/mapper/vg00-tmp doesn't contain a valid partition table
> Disk /dev/mapper/vg00-var doesn't contain a valid partition table
> Disk /dev/mapper/vg00-usr doesn't contain a valid partition table
> Disk /dev/mapper/vg00-home doesn't contain a valid partition table
>
> Complete output of fdisk -l is given below:
>
> Disk /dev/sda: 26.8 GB, 26843545600 bytes
> 64 heads, 32 sectors/track, 25600 cylinders
> Units = cylinders of 2048 * 512 = 1048576 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x7bed667d
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 1026 1050608 83 Linux
> /dev/sda2 1027 3076 2099200 82 Linux swap /
> Solaris
> /dev/sda3 3077 25600 23064576 8e Linux LVM
>
> Disk /dev/sdb: 53.7 GB, 53687091200 bytes
> 64 heads, 32 sectors/track, 51200 cylinders
> Units = cylinders of 2048 * 512 = 1048576 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0xd5310289
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 1 51200 52428784 8e Linux LVM
>
> Disk /dev/mapper/vg00-root: 1073 MB, 1073741824 bytes
> 255 heads, 63 sectors/track, 130 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x00000000
>
> Disk /dev/mapper/vg00-root doesn't contain a valid partition table
>
> Disk /dev/mapper/vg00-opt: 1073 MB, 1073741824 bytes
> 255 heads, 63 sectors/track, 130 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x00000000
>
> Disk /dev/mapper/vg00-opt doesn't contain a valid partition table
>
> Disk /dev/mapper/vg00-tmp: 2147 MB, 2147483648 bytes
> 255 heads, 63 sectors/track, 261 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x00000000
>
> Disk /dev/mapper/vg00-tmp doesn't contain a valid partition table
>
> Disk /dev/mapper/vg00-var: 3221 MB, 3221225472 bytes
> 255 heads, 63 sectors/track, 391 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x00000000
>
> Disk /dev/mapper/vg00-var doesn't contain a valid partition table
>
> Disk /dev/mapper/vg00-usr: 4294 MB, 4294967296 bytes
> 255 heads, 63 sectors/track, 522 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x00000000
>
> Disk /dev/mapper/vg00-usr doesn't contain a valid partition table
>
> Disk /dev/mapper/vg00-home: 1073 MB, 1073741824 bytes
> 255 heads, 63 sectors/track, 130 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x00000000
>
> Disk /dev/mapper/vg00-home doesn't contain a valid partition table
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] Error: Doesn't contain a valid partition table
2012-10-29 14:08 ` James Hawtin
@ 2012-10-29 14:16 ` Bryn M. Reeves
0 siblings, 0 replies; 3+ messages in thread
From: Bryn M. Reeves @ 2012-10-29 14:16 UTC (permalink / raw)
To: LVM general discussion and development; +Cc: James Hawtin
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/29/2012 02:08 PM, James Hawtin wrote:
> This is to be expected. because it is possible to have partition tables on
> logical volumes created by LVM. if you don't like this use the "filter"
> line in /etc/lvm/lvm.conf to include/exclude what you want to be searched.
> This is also useful if you want to exclude multipathed/mirrored devices.
fdisk is just scanning everything that it finds in /proc/partitions:
/*
* for fdisk -l:
* try all things in /proc/partitions that look like a full disk
*/
static void
print_all_partition_table_from_option(unsigned long sector_size)
This doesn't use the LVM2 filters so will continue to report for all
device-mapper devices when using '-l'.
Regards,
Bryn.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlCOj6cACgkQ6YSQoMYUY96/mwCeJasISaP/K7UliUBZO8k5toQH
BcgAn21U4z8nPRXzthVPZ3qGOVeOjbR0
=BIU2
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-29 14:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-27 21:10 [linux-lvm] Error: Doesn't contain a valid partition table Ramesh Nadupalli
2012-10-29 14:08 ` James Hawtin
2012-10-29 14:16 ` Bryn M. Reeves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).