Bug 1161 - Solaris partition is not created on the largest usable chunks of unallocated space
: Solaris partition is not created on the largest usable chunks of unallocated ...
Status: ACCEPTED
Product: installer
gui
: unspecified
: ANY/Generic OpenSolaris
: P2 major with 1 vote (vote)
: 2010.1H
Assigned To: installer watcher
:
:
: rn4 reviewed-2009.06
:
:
:
  Show dependency treegraph
 
Reported: 2008-04-14 01:14 UTC by jeffrey
Modified: 2009-06-01 07:47 UTC (History)
8 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description jeffrey 2008-04-14 01:14:51 UTC
we have the following partition entries on the hard disk:
    --->  Partition 1 (Not Solaris2 type)
    --->  Unused   (there is a big chunk of unallocated space, larger that 8GB)
    --->  Partition 2 (Not Solaris2 type)
    ---> Unused (Small chunk of unallocated space, less than 3.5 GB)

When creating a new Solaris2 partition, using '=' to allocate all the 
unused space, then a warning window prompts user the size is adjusted
due to the existing partitions. But the size is only adjusted to smaller
chunk, but not to the larger one.

If the smaller chunk is less than 3.5GB, install can't proceed.
Comment 1 Jan Damborsky 2008-04-16 04:21:54 UTC
Hi Jeffrey,

could you please also attach/provide following additional information ?

[1] Exact partition configuration reported on installer "Disk screen"
[2] output of Solaris fdisk command
# fdisk -W - <your_disk>p0

[3] if possible, output of Linux fdisk command

Thank you.
Comment 2 Jan Damborsky 2008-04-16 09:02:13 UTC
I have talked to Niall Power, since I was not sure about UI design spec
as far as gaps between partitions are concerned and he clarified that
gaps between existing partitions can't be utilized when creating new partition
- only free space after last defined partition can be picked up.

Since this case is something we probably would like to think about when
considering UI design changes as far as partitioning is concerned, I am marking
this as enhancement.

Workaround:
Please use Solaris fdisk(1M) tool to create Solaris2 partition. It will allow
to utilize the contiguous chunk of unallocated space between already defined
partitions.
Comment 3 Niall Power 2008-04-17 02:40:16 UTC
Jan,
From jogging my memory a bit more: The GUI code doesn't attempt to specify
partition offsets. Newly created partitions have their offset set to 0 and the
offset point is to be determined by liborchestrator or the target instantiation
module. The warning dialog that Jeffrey sees after clicking next on the
partitioning screen is a response to liborchestrator indicating to the GUI that
it can't honour the size request for the new partition.
Comment 4 Dave Miner 2008-11-17 13:33:04 UTC
*** Bug 4977 has been marked as a duplicate of this bug. ***
Comment 5 Dave Miner 2008-11-17 13:33:43 UTC
Needs release note for 2008.11.
Comment 6 Dave Miner 2008-12-18 07:38:26 UTC
*** Bug 5896 has been marked as a duplicate of this bug. ***
Comment 7 Dan Price 2009-01-28 09:57:14 UTC
I am changing this from an RFE to a bug.  It's a bug that if I have a free
partition on my disk, the OpenSolaris installer can't install into it.  As I
documented in bug 5896, this situation also induces confusing brokenness in the
UI.

The net result of this bug is going to be lower adoption, until it is fixed. 
It appears that more and more laptops are shipping this way from vendors.

David Clack (http://blogs.sun.com/oslab/entry/msi_u100_422ca_and_opensolaris)
has also hit the same problem.
Comment 8 William Schumann 2009-02-26 09:18:01 UTC
Orchestrator create_slice() and create_partition() both have logic that finds
the largest available space.
disk_parts.c:find_unused_region_of_size(OM_MAX_SIZE) will build a free space
table based on the Orchestrator partition table array and return the largest
available unused region on a disk.  It will not work right if all starting
offsets are zero, but useful code is there.
Comment 9 Jan Damborsky 2009-04-09 01:04:48 UTC
Per common policy transferring out of Opensolaris/installer category. This
bug will affect several modules across the installer - at least GUI, TI,
orchestrator.

Not a stopper for 2009.06.