Mark,
Thanks.
I get various geometry warnings even when I use the -L ('Do not complain
about things irrelevant for Linux') option.  I can ignore the partition
tool's misgivings, but wondering in my ignorance what other commands act
on the geometry and will bite me down the road; zipl's only thing I can
think of.

dz2vfsw1:~ # sfdisk -V -L /dev/sda

Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.

partition 1: start: (c,h,s) expected (0,1,14) found (0,1,1)
end of partition 1 has impossible value for head: 95 (should be in 0-1)

or,
dz2vfsw1:~ # sfdisk -V -L /dev/sdb

Warning: partition 1 does not end at a cylinder boundary
Warning: partition 2 does not start at a cylinder boundary
Warning: partition 2 does not end at a cylinder boundary
Warning: partition 3 does not start at a cylinder boundary
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
partition 1: start: (c,h,s) expected (0,1,32) found (0,1,1)
end of partition 1 has impossible value for head: 254 (should be in
0-63)
end of partition 1 has impossible value for sector: 63 (should be in
1-32)

#/dev/sdb is a 30GB LUN, 62914560 512-byte sectors:
dz2vfsw1:~ # sfdisk -d /dev/sdb  
# partition table of /dev/sdb
unit: sectors
/dev/sdb1 : start=       63, size=  1477917, Id=83
/dev/sdb2 : start=  1477980, size= 13687380, Id=83
/dev/sdb3 : start= 15165360, size= 47749200, Id=83
/dev/sdb4 : start=        0, size=        0, Id= 0

Regarding " That would be cylinder 1.", I'm looking for sector numbers
not cylinder numbers; I want to ignore the so-called geometry of the
LUNs.



--------------------------------------------------------
This e-mail, including any attachments, may be confidential, privileged or 
otherwise legally protected. It is intended only for the addressee. If you 
received this e-mail in error or from someone who was not authorized to send it 
to you, do not disseminate, copy or otherwise use this e-mail or its 
attachments.  Please notify the sender immediately by reply e-mail and delete 
the e-mail from your system.


-----Original Message-----

From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Mark Post
Sent: Monday, December 10, 2007 12:56 PM
To: [email protected]
Subject: Re: zSeries Linux and LUN partition geometry

>>> On Mon, Dec 10, 2007 at 12:31 PM, in message
<[EMAIL PROTECTED]>,
"Romanowski, John (OFT)" <[EMAIL PROTECTED]> wrote: 
-snip-
> Various man pages says Linux ignores partition geometry but the
> partitioning tools (sfdisk and fdisk) issue warnings if my partitions
> don't align with their view of "cylinder" boundaries.

The only warning I see is:
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.

I pretty much don't care how DOS is going to interpret my DASD
partitions.

> Will it matter that I don't bother to align LUN partitions on
"cylinder"
> boundaries? I want to make fuller use of the disk space and the
> imaginary geometry imposed by the partitioning tools wastes space at
the
> ends of the LUN and is a pain to calculate just to keep 'em quiet.

I believe fdisk does things by cylinders by default.  I would just use
that to create a model setup.

> On a related note, what's the lowest 0-relative sector number at which
> to start partition 1? I want to leave sector 0 thru n for the
partition
> table and whatever sectors zipl needs.

That would be cylinder 1.  I can't imagine that sfdisk or fdisk would be
brain dead enough to allow you to allocate a partition over the area the
partition table would have to go.


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to