Description:
==========
Installed Ubuntu beta1 build ISO on a Power 8 machine as a KVM guest
Trying to create partition on a 1 tera byte scsi disk using fdisk, but could not create as the cylinders are not shown if it is more than 65535.
also,
uname -a
========
Linux ubuntu 3.13.0-14-generic #34-Ubuntu SMP Thu Feb 27 22:35:16 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux
Detail logs
========
user@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
vda 253:0 0 80G 0 disk
├─vda1 253:1 0 7M 0 part
├─vda2 253:2 0 76.7G 0 part /
└─vda3 253:3 0 3.3G 0 part
====> create parition on sda using fdisk
root@ubuntu:~# fdisk /dev/sda
The number of cylinders for this disk is set to 65535.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 7300 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sda: 255 heads, 63 sectors, 65535 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Begin Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-65535): 1
Last cylinder or +size or +sizeM or +sizeK ([1]-65535): 65535 =====> cannot select more than 65535 as I want to create more partition using all cylinders of the disk
Command (m for help): p
Disk /dev/sda: 255 heads, 63 sectors, 65535 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/sda1 1 1 65535526409856 83 Linux native
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
(Reboot to ensure the partition table has been updated.)
Syncing disks.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
=======> check if the parition is created
root@ubuntu:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
├─sda1 8:1 0 502G 0 part
├─sda2 8:2 0 208G 0 part
├─sda3 8:3 0 176G 0 part
└─sda4 8:4 0 144G 0 part
Description:
==========
Installed Ubuntu beta1 build ISO on a Power 8 machine as a KVM guest
Trying to create partition on a 1 tera byte scsi disk using fdisk, but could not create as the cylinders are not shown if it is more than 65535.
also,
uname -a
========
Linux ubuntu 3.13.0-14-generic #34-Ubuntu SMP Thu Feb 27 22:35:16 UTC 2014 ppc64le ppc64le ppc64le GNU/Linux
Detail logs
========
user@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
vda 253:0 0 80G 0 disk
├─vda1 253:1 0 7M 0 part
├─vda2 253:2 0 76.7G 0 part /
└─vda3 253:3 0 3.3G 0 part
====> create parition on sda using fdisk
root@ubuntu:~# fdisk /dev/sda
The number of cylinders for this disk is set to 65535.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 7300 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sda: 255 heads, 63 sectors, 65535 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Begin Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-65535): 1
Last cylinder or +size or +sizeM or +sizeK ([1]-65535): 65535 =====> cannot select more than 65535 as I want to create more partition using all cylinders of the disk
Command (m for help): p
Disk /dev/sda: 255 heads, 63 sectors, 65535 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/sda1 1 1 65535526409856 83 Linux native
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
(Reboot to ensure the partition table has been updated.)
Syncing disks.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
=======> check if the parition is created
root@ubuntu:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
├─sda1 8:1 0 502G 0 part
├─sda2 8:2 0 208G 0 part
├─sda3 8:3 0 176G 0 part
└─sda4 8:4 0 144G 0 part
====> dmesg logs: 0.277:27) : pid=844 uid=0 old auid=4294967295 new auid=1000 old ses=4294967295 new ses=1 res=1 1.917:28) : pid=914 uid=0 old auid=4294967295 new auid=1000 old ses=4294967295 new ses=2 res=1
[ 104.576752] type=1006 audit(139408382
[ 246.220015] sda: sda1 sda2 sda3 sda4
[ 246.220772] sda: p2 size 1811966464 extends beyond EOD, enabling native capacity
[ 246.222415] sda: sda1 sda2 sda3 sda4
[ 246.222541] sda: p2 size 1811966464 extends beyond EOD, truncated
[ 246.222619] sda: p3 size 1879076352 extends beyond EOD, truncated
[ 246.222673] sda: p4 size 1946186240 extends beyond EOD, truncated
[ 248.252926] sda: sda1 sda2 sda3 sda4
[ 248.253858] sda: p2 size 1811966464 extends beyond EOD, truncated
[ 248.253930] sda: p3 size 1879076352 extends beyond EOD, truncated
[ 248.253995] sda: p4 size 1946186240 extends beyond EOD, truncated
[ 456.215618] type=1006 audit(139408417
[ 560.438928] kjournald starting. Commit interval 5 seconds
====> Problem : I did not create the last 3 partition and they are not in size as I need, so fdisk tool needs support for the large disk
====> my guest xml
<domain type='kvm' id='93'> spartan_ b1_disktest< /name> 4b1d8ea3- 5674-c98c- dd21-a42172b460 70</uuid> >2097152< /memory> >2097152< /currentMemory> 'static' >1</vcpu> /machine< /partition> 'pseries' >hvm</type> destroy< /on_poweroff> restart< /on_reboot> restart< /on_crash> /usr/bin/ qemu-kvm< /emulator> var/lib/ libvirt/ images/ abdul/ubuntu_ b1_disktest. qcow2'/ > disk0'/ > 0-0-1'/ > '52:54: c0:a8:7a: 18'/> system_ u:system_ r:svirt_ t:s0:c51, c857</label> >system_ u:object_ r:svirt_ image_t: s0:c51, c857</imagelabe l>
<name>
<uuid>
<memory unit='KiB'
<currentMemory unit='KiB'
<vcpu placement=
<resource>
<partition>
</resource>
<os>
<type arch='ppc64' machine=
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>
<on_reboot>
<on_crash>
<devices>
<emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/
<target dev='vda' bus='virtio'/>
<alias name='virtio-
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</disk>
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source dev='/dev/sdf'/>
<target dev='sdf' bus='scsi'/>
<alias name='scsi0-
<address type='drive' controller='0' bus='0' target='0' unit='1'/>
</disk>
<controller type='usb' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</controller>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<controller type='scsi' index='0'>
<alias name='scsi0'/>
<address type='spapr-vio' reg='0x2000'/>
</controller>
<interface type='network'>
<mac address=
<source network='default'/>
<target dev='vnet21'/>
<model type='e1000'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/7'/>
<target port='0'/>
<alias name='serial0'/>
<address type='spapr-vio' reg='0x30000000'/>
</serial>
<console type='pty' tty='/dev/pts/7'>
<source path='/dev/pts/7'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
<address type='spapr-vio' reg='0x30000000'/>
</console>
</devices>
<seclabel type='dynamic' model='selinux' relabel='yes'>
<label>
<imagelabel
</seclabel>
</domain>
Please let me know if you need more information
Thanks