NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
port-amd64/47743: Annoying "mbr partition exceeds disk size" warning once GPT created
>Number: 47743
>Category: port-amd64
>Synopsis: Annoying "mbr partition exceeds disk size" warning once GPT
>created
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: port-amd64-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 14 21:40:00 +0000 2013
>Originator: Christophe LEBOUCHER
>Release: 6.0.1
>Organization:
>Environment:
NetBSD <nodename> 6.0.1 NetBSD 6.0.1 (GENERIC) amd64
>Description:
Hello,
After having freshly installed NetBSD (on wd0), I needed to manipulate two 3TB
hard disk drives (wd1 and wd2) to create a 6TB storage device.
To do so, I used GPT, wedges and LVM. Once GPT created, warnings ("wd1: mbr
partition exceeds disk size"; "wd2: mbr partition exceeds disk size") are
annoying kernel messages. Rebooting the machine does not change
anything. Warnings are still annoying.
Commands I used to create GPT, physical volumes, volume group and logical
volume are included in "How to repeat the problem:" section.
Just for information, below are dmesg, fdisk, disklabel, gpt and dkctl commands
output I ran before and after creating GPT, physical volumes, volume group and
logical volume. Note that fdisk and disklabel have onl
y been run to display some informations. I never ran them (nor even mbrlabel)
to change anything (partitions, slices, MBR) on wd1, nor on wd2.
Regards.
Christophe LEBOUCHER
######## Some commands output before running GPT and LVM stuff #########
# dmesg | grep wd1
wd1 at atabus1 drive 0
wd1: <TOSHIBA DT01ACA300>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
(
using DMA)
# fdisk wd1
fdisk: primary partition table invalid, no magic in sector 0
Disk: /dev/rwd1d
NetBSD disklabel disk geometry:
cylinders: 5814021, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 4294967295
BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 5860533168
Partitions aligned to 2048 sector boundaries, offset 2048
Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
No active partition.
# disklabel wd1
# /dev/rwd1d:
type: ESDI
disk: TOSHIBA DT01ACA3
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 5814021
total sectors: 4294967295
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 4294967295 0 4.2BSD 0 0 0 # (Cyl. 0 -
4294967295*)
d: 4294967295 0 unused 0 0 # (Cyl. 0 -
4294967295*)
# dkctl wd1 listwedges
/dev/rwd1d: no wedges configured
# gpt show wd1
start size index contents
0 5860533168
# dmesg | grep wd2
wd2 at atabus2 drive 0
wd2: <TOSHIBA DT01ACA300>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(ahcisata0:2:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
(using DMA)
# fdisk wd2
fdisk: primary partition table invalid, no magic in sector 0
Disk: /dev/rwd2d
NetBSD disklabel disk geometry:
cylinders: 5814021, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 4294967295
BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 5860533168
Partitions aligned to 2048 sector boundaries, offset 2048
Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
No active partition.
# disklabel wd2
# /dev/rwd2d:
type: ESDI
disk: TOSHIBA DT01ACA3
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 5814021
total sectors: 4294967295
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 4294967295 0 4.2BSD 0 0 0 # (Cyl. 0 -
4294967295*)
d: 4294967295 0 unused 0 0 # (Cyl. 0 -
4294967295*)
# dkctl wd2 listwedges
/dev/rwd2d: no wedges configured
# gpt show wd2
start size index contents
0 5860533168
######## Some command outputs after having run GPT and LVM stuff #########
# dmesg | grep wd1
wd1 at atabus1 drive 0
wd1: <TOSHIBA DT01ACA300>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
(using DMA)
wd1 at atabus1 drive 0
wd1: <TOSHIBA DT01ACA300>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
(using DMA)
wd1 at atabus1 drive 0
wd1: <TOSHIBA DT01ACA300>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
(using DMA)
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
dk0 at wd1: dk0
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
wd1: mbr partition exceeds disk size
# fdisk wd1
Disk: /dev/rwd1d
NetBSD disklabel disk geometry:
cylinders: 5814021, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 4294967295
BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 5860533168
Partitions aligned to 2048 sector boundaries, offset 1
Partition table:
0: GPT Protective MBR (sysid 238)
start 1, size 4294967295 (2097152 MB, Cyls 0-267349/89/4)
PBR is not bootable: Bad magic number (0x0000)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
# disklabel wd1
# /dev/rwd1d:
type: ESDI
disk: TOSHIBA DT01ACA3
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 5814021
total sectors: 4294967295
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 4294967295 0 4.2BSD 0 0 0 # (Cyl. 0 -
4294967295*)
d: 4294967295 0 unused 0 0 # (Cyl. 0 -
4294967295*)
disklabel: boot block size 0
disklabel: super block size 0
# dmesg | grep wd2
wd2 at atabus2 drive 0
wd2: <TOSHIBA DT01ACA300>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(ahcisata0:2:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
(using DMA)
wd2 at atabus2 drive 0
wd2: <TOSHIBA DT01ACA300>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(ahcisata0:2:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
(using DMA)
wd2 at atabus2 drive 0
wd2: <TOSHIBA DT01ACA300>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd2(ahcisata0:2:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
(using DMA)
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
dk1 at wd2: dk1
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
wd2: mbr partition exceeds disk size
# fdisk wd2
Disk: /dev/rwd2d
NetBSD disklabel disk geometry:
cylinders: 5814021, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 4294967295
BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 5860533168
Partitions aligned to 2048 sector boundaries, offset 1
Partition table:
0: GPT Protective MBR (sysid 238)
start 1, size 4294967295 (2097152 MB, Cyls 0-267349/89/4)
PBR is not bootable: Bad magic number (0x0000)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
No active partition.
# disklabel wd2
# /dev/rwd2d:
type: ESDI
disk: TOSHIBA DT01ACA3
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 5814021
total sectors: 4294967295
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 4294967295 0 4.2BSD 0 0 0 # (Cyl. 0 -
4294967295*)
d: 4294967295 0 unused 0 0 # (Cyl. 0 -
4294967295*)
disklabel: boot block size 0
disklabel: super block size 0
>How-To-Repeat:
######## GPT stuff on wd1 #########
# gpt create wd1
# gpt show wd1
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 5860533101
5860533135 32 Sec GPT table
5860533167 1 Sec GPT header
# gpt add -t ffs -s 5860533101 wd1
Partition added, use:
dkctl wd1 addwedge <wedgename> 34 5860533101 <type>
to create a wedge for it
# dkctl wd1 addwedge dk0 34 5860533101 ffs
dk0 created successfully.
# dkctl dk0 getwedgeinfo
dk0 at wd1: dk0
dk0: 5860533101 blocks at 34, type: ffs
# gpt show wd1
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 5860533101 1 GPT part - NetBSD FFSv1/FFSv2
5860533135 32 Sec GPT table
5860533167 1 Sec GPT header
######## GPT stuff on wd2 #########
# gpt create wd2
# gpt show wd2
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 5860533101
5860533135 32 Sec GPT table
5860533167 1 Sec GPT header
# gpt add -t ffs -s 5860533101 wd2
Partition added, use:
dkctl wd2 addwedge <wedgename> 34 5860533101 <type>
to create a wedge for it
# dkctl wd2 addwedge dk1 34 5860533101 ffs
dk1 created successfully.
# dkctl dk1 getwedgeinfo
dk1 at wd2: dk1
dk1: 5860533101 blocks at 34, type: ffs
# gpt show wd2
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 5860533101 1 GPT part - NetBSD FFSv1/FFSv2
5860533135 32 Sec GPT table
5860533167 1 Sec GPT header
######## LVM stuff #########
# Ensure dm module has been loaded
# modstat | grep dm
dm driver boot 0 23528 -
# lvm pvcreate /dev/rdk0
Physical volume "/dev/rdk0" successfully created
# lvm pvcreate /dev/rdk1
Physical volume "/dev/rdk1" successfully created
# lvm pvdisplay
"/dev/rdk0" is a new physical volume of "2.73 TiB"
--- NEW Physical volume ---
PV Name /dev/rdk0
VG Name
PV Size 2.73 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID b0iY9z-Fhyy-WBCl-Y2WZ-fo1V-sCBt-ueuplK
"/dev/rdk1" is a new physical volume of "2.73 TiB"
--- NEW Physical volume ---
PV Name /dev/rdk1
VG Name
PV Size 2.73 TiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID 9eCGKy-Ge8v-OQWt-Ojwa-bldW-JPkH-iFnaPq
# lvm vgcreate vg0 /dev/rdk0
Volume group "vg0" successfully created
# lvm vgdisplay
--- Volume group ---
VG Name vg0
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.73 TiB
PE Size 4.00 MiB
Total PE 715397
Alloc PE / Size 0 / 0
Free PE / Size 715397 / 2.73 TiB
VG UUID A2a42H-lzJW-W2cP-I32g-wslA-dM09-dzWuPN
# lvm vgextend vg0 /dev/rdk1
Volume group "vg0" successfully extended
# lvm vgdisplay vg0
--- Volume group ---
VG Name vg0
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 5.46 TiB
PE Size 4.00 MiB
Total PE 1430794
Alloc PE / Size 0 / 0
Free PE / Size 1430794 / 5.46 TiB
VG UUID A2a42H-lzJW-W2cP-I32g-wslA-dM09-dzWuPN
# lvm lvcreate -L 5580G -n lv0 vg0
Logical volume "lv0" created
# lvm lvdisplay /dev/vg0/lv0
--- Logical volume ---
LV Name /dev/vg0/lv0
VG Name vg0
LV UUID 6KMWxr-p43N-D5Hv-mhTk-qZuL-zMdd-CD7LQZ
LV Write Access read/write
LV Status available
# open 0
LV Size 5.45 TiB
Current LE 1428480
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 0
Block device 169:1
# newfs -O2 /dev/vg0/rlv0
/dev/vg0/rlv0: 5713920.0MB (11702108160 sectors) block size 32768, fragment
size 4096
using 7698 cylinder groups of 742.31MB, 23754 blks, 46848 inodes.
super-block backups (for fsck_ffs -b #) at:
192, 1520448, 3040704, 4560960, 6081216, 7601472, 9121728, 10641984, 12162240,
13682496, 15202752, 16723008, 18243264, 19763520, 21283776, 22804032,
.............................................................................................................................................................
# mount /dev/vg0/lv0 /shares
mount_ffs: "/dev/vg0/lv0" is a non-resolved or relative path.
mount_ffs: using "/dev/mapper/vg0-lv0" instead.
# echo "lvm=yes" >> /etc/rc.conf
# echo "/dev/vg0/lv0 /shares ffs rw 1 1" >> /etc/rc.conf
>Fix:
Home |
Main Index |
Thread Index |
Old Index