Hi Paul,

The problem here is that you are creating two Solaris partitions - that is
not a supported configuration.

By default, if you don't specify the part_type attribute in the <partition>
tag, it defaults to 191, which is a Solaris2 partition type.

The code is marking any Solaris2 partition type as being the active
partition, and as such you are getting this error.

If you want to create a different partition, you should specify the
partition type, which is not a Solaris partition type[1], e.g.:

        <partition name="2" action="create" part_type="11">

Honestly, I've never seen AI give this error before noticing that there are
two Solaris2 partitions, and giving that more specific error first.

Possibly worth at least a low-priority bug...

Thanks,

Darren.

[1] - http://en.wikipedia.org/wiki/Partition_type - has HEX numbers, we
      require base-10 numbers.

On 14/10/2011 18:47, Paul de Nijs wrote:
> Dermot,
> 
> Ok, I can live with that...
> But since I'm kind of experimenting with partitions and such, I have some
> more questions ....
> 1) creating more than 1 partition, like:
>       <disk whole_disk="true">
>         <disk_keyword key="boot_disk"/>
>         <partition name="1" action="create">
>          <size val="60gb" />
>            <slice name="6" action="create" force="true">
>             <size val="100mb"/>
>            </slice>
>            <slice name="7" action="create" force="true">
>              <size val="100mb"/>
>           </slice>
>           <slice name="0" action="create" force="true">
>           </slice>
>         </partition>
>         <partition name="2" action="create">
>           <size val="60gb" />
>         </partition>
>       </disk>
>    When I try this, it complains that partition 1 i already marked as 
> "active":
> 
> 2011-10-14 17:04:21,458   InstallationLogger CRITICAL   Failed Checkpoints:
> 2011-10-14 17:04:21,509   InstallationLogger ERROR
> 2011-10-14 17:04:21,559   InstallationLogger ERROR             
> target-selection
> 2011-10-14 17:04:21,609   InstallationLogger ERROR
> 2011-10-14 17:04:21,660   InstallationLogger ERROR      Checkpoint
> execution error:
> 2011-10-14 17:04:21,710   InstallationLogger ERROR
> 2011-10-14 17:04:21,760   InstallationLogger ERROR              Following
> errors occurred processing partition :
> 2011-10-14 17:04:21,811   InstallationLogger ERROR             
> ==================================
> 2011-10-14 17:04:21,861   InstallationLogger ERROR              Mod Id    =
> physical validation
> 2011-10-14 17:04:21,911   InstallationLogger ERROR              Err Type  = 0
> 2011-10-14 17:04:21,962   InstallationLogger ERROR              Err Data  =
> 2011-10-14 17:04:22,012   InstallationLogger ERROR                 
> ---------------------------------
> 2011-10-14 17:04:22,062   InstallationLogger ERROR                 
> elem_type  = 5
> 2011-10-14 17:04:22,112   InstallationLogger ERROR                 
> error_value  = Partition 1 already marked as active
> 2011-10-14 17:04:22,163   InstallationLogger ERROR                 
> ---------------------------------
> 2011-10-14 17:04:22,213   InstallationLogger ERROR             
> ==================================
> 2011-10-14 17:04:22,263   InstallationLogger ERROR
> 2011-10-14 17:04:22,314   InstallationLogger INFO       Automated
> Installation Failed.  See install log at /system/volatile/install_log
> 2011-10-14 17:04:22,364   InstallationLogger DEBUG      Shutting down
> Progress Handler
> 
> 2) Is there a list of partition types (name -> number), since format/fdisk
> only have these:
>    1=SOLARIS2   2=UNIX      3=PCIXOS     4=Other        5=DOS12
>    6=DOS16      7=DOSEXT    8=DOSBIG     9=DOS16LBA     A=x86 Boot
>    B=Diagnostic C=FAT32     D=FAT32LBA   E=DOSEXTLBA    F=EFI (Protective)
>    G=EFI_SYS    0=Exit?
> you can go to http://www.win.tue.nl/~aeb/partitions/partition_types-1.html,
> and I see that 191 (0xbf) is indeed listed. Can I create any part_type I want 
> ?
> What is the conversion for the format output to the number used in the
> ai_manifest ?
> Also, Is the decimal number 191 for solaris required, or can I also use 0xbf ?
> 
> Thanks
> 
> Paul
> 
> 
> On 10/14/11 10:25 AM, Dermot McCluskey wrote:
>> Paul,
>>
>> On 10/14/11 17:11, Paul de Nijs wrote:
>>> Dermot,
>>>
>>> Thank you for the answer. The slices within the partition works. I
>>> should have read the 'flagdays' better.
>>> However, for x86, the partitions, if I want to make more partitions,
>>> will it be possible to specify the percentage of the disk I want for the
>>> partitions?
>>
>> No, sorry.  Partition size should be specified in
>> a <size> sub-element, just like slice size (ie not
>> as an attribute, "..size=50%").
>> The allowed units are all absolutes: b (byte),  s,
>> secs (sectors), k, kb, m, mb, g, gb, t, tb, p, pb,
>> e, eb, z, zb.
>> If size is omitted for a partition or slice, it uses the
>> size of it parent (partition or disk).
>>
>> - Dermot
>>
>>>
>>> Something like:
>>>    <target>
>>>       <disk whole_disk="true">
>>>         <disk_keyword key="boot_disk"/>
>>>         <partition name="1" action="create" size=50%>
>>>          <slice name="6" action="create" force="true">
>>>           <size val="100mb"/>
>>>          </slice>
>>>          <slice name="7" action="create" force="true">
>>>           <size val="100mb"/>
>>>          </slice>
>>>          <slice name="0" action="create" force="true">
>>>          </slice>
>>>         </partition>
>>>         <partition name="2" action="create" size=50%>
>>>       </disk>
>>>     </target>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 10/14/11 02:46 AM, Dermot McCluskey wrote:
>>>> Paul,
>>>>
>>>> Your manifest defines a partition and 3 slices
>>>> at the same level under the disk, which is incorrect.
>>>> You should either have slices within the partition (x86)
>>>> or slices only (sparc).  I would expect this to be reported
>>>> as an error, and it may be a bug that it is not.
>>>>
>>>> - Dermot
>>>>
>>>>
>>>> On 10/14/11 00:21, Paul de Nijs wrote:
>>>>> All,
>>>>>
>>>>> We run in some very strange issues with b175 when creating extra
>>>>> slices. It doesn't matter, x86 or sparc. Worked in b151a (well not
>>>>> with this manifest of course, but the idea is the same)
>>>>>
>>>>> my ai_manifest.xml part for the the target:
>>>>>
>>>>>     <target>
>>>>>       <disk whole_disk="true">
>>>>>         <disk_keyword key="boot_disk"/>
>>>>>         <partition name="1" action="create"/>
>>>>>         <slice name="6" action="create" force="true">
>>>>>           <size val="100mb"/>
>>>>>         </slice>
>>>>>         <slice name="7" action="create" force="true">
>>>>>           <size val="100mb"/>
>>>>>         </slice>
>>>>>         <slice name="0" action="create" force="true">
>>>>>           <size val="100gb"/>
>>>>>         </slice>
>>>>>       </disk>
>>>>>     </target>
>>>>>
>>>>> at the end of the install_log ....
>>>>>
>>>>> 2011-10-13 15:54:14,821   InstallationLogger.target-selection
>>>>> DEBUG      from_manifest =
>>>>>                         -> [target] (<solaris_install.target.Target
>>>>> object at 0x8da64ac>)
>>>>>                                 -> [disk] (Disk: ctd=None; volid=None;
>>>>> devpath=None; devid=None; keyword: key=boot_disk; is_cdrom=False;
>>>>> label=None; whole_disk=True; write_cache=False)
>>>>>                                         -> [1] (Partition: name=1;
>>>>> action=create; part_type=191; size=0.00b; start_sector=0; bootid=0;
>>>>> is_linux_swap=False)
>>>>>                                         -> [6] (Slice: name=6;
>>>>> action=create, force=True, is_swap=False, tag=0, flag=0;
>>>>> size=100.00mb; start_sector=None)
>>>>>                                         -> [7] (Slice: name=7;
>>>>> action=create, force=True, is_swap=False, tag=0, flag=0;
>>>>> size=100.00mb; start_sector=None)
>>>>>                                         -> [0] (Slice: name=0;
>>>>> action=create, force=True, is_swap=False, tag=0, flag=0;
>>>>> size=100.00gb; start_sector=None)
>>>>>
>>>>> 2011-10-13 15:54:14,822   InstallationLogger.target-selection
>>>>> DEBUG      discovered =
>>>>>                 -> [discovered] (<solaris_install.target.Target object
>>>>> at 0x8dfc20c>)
>>>>>                         -> [disk] (Disk: ctd=c3t2d0; volid=None;
>>>>> devpath=/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0;
>>>>> devid=id1,sd@n5000c50006d0c6e3; prop:dev_type=scsi;
>>>>> prop:dev_vendor=SEAGATE; prop:dev_size=136.72gb; keyword:
>>>>> key=boot_disk; is_cdrom=False; label=VTOC; whole_disk=False;
>>>>> write_cache=False)
>>>>>                                 -> [1] (Partition: name=1;
>>>>> action=preserve; part_type=7; size=100.00mb; start_sector=2048;
>>>>> bootid=0; is_linux_swap=False)
>>>>>                                 -> [2] (Partition: name=2;
>>>>> action=preserve; part_type=7; size=136.63gb; start_sector=206848;
>>>>> bootid=0; is_linux_swap=False)
>>>>>                         -> [disk] (Disk: ctd=c3t3d0; volid=None;
>>>>> devpath=/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@3,0;
>>>>> devid=id1,sd@n5000c50006d0b6b7; prop:dev_type=scsi;
>>>>> prop:dev_vendor=SEAGATE; prop:dev_size=136.72gb; is_cdrom=False;
>>>>> label=VTOC; whole_disk=False; write_cache=False)
>>>>>                         -> [logical] (Logical: noswap=True; nodump=True)
>>>>>
>>>>> 2011-10-13 15:54:14,835   InstallationLogger DEBUG      Executing:
>>>>> ['/usr/sbin/prtconf']
>>>>> 2011-10-13 15:54:14,846   InstallationLogger DEBUG      System
>>>>> Configuration:  Oracle Corporation  i86pc
>>>>>
>>>>> --------- cut ------
>>>>> <output prtconf>
>>>>> --------- cut ------
>>>>> 2011-10-13 15:54:14,847   InstallationLogger.target-selection
>>>>> DEBUG      Processing disk : [boot-disk]
>>>>> 2011-10-13 15:54:14,848   InstallationLogger.target-selection
>>>>> WARNING    Creating partition 1 on disk c3t2d0 will destroy existing data.
>>>>> 2011-10-13 15:54:14,904   InstallationLogger.target-selection
>>>>> DEBUG      Finished processing disk : [boot-disk]
>>>>> 2011-10-13 15:54:14,905   InstallationLogger.target-selection
>>>>> DEBUG      Validating desired =
>>>>>                 -> [desired] (<solaris_install.target.Target object at
>>>>> 0x8e04bac>)
>>>>>                         -> [logical] (Logical: noswap=False; nodump=False)
>>>>>                                 -> [rpool] (Zpool: name=rpool;
>>>>> action=create; is_root=True; vdev_list=[None])
>>>>>                                         -> [vdev] (Vdev: name=vdev;
>>>>> redundancy=mirror)
>>>>>                                         -> [solaris] (BE:
>>>>> name=solaris; mountpoint=/a)
>>>>>                         -> [disk] (Disk: ctd=c3t2d0; volid=None;
>>>>> devpath=/pci@0,0/pci1022,7450@2/pci1000,3060@3/sd@2,0;
>>>>> devid=id1,sd@n5000c50006d0c6e3; prop:dev_type=scsi;
>>>>> prop:dev_vendor=SEAGATE; prop:dev_size=136.72gb; keyword:
>>>>> key=boot_disk; is_cdrom=False; label=VTOC; whole_disk=False;
>>>>> write_cache=False)
>>>>>                                 -> [1] (Partition: name=1;
>>>>> action=create; part_type=191; size=136.71gb; start_sector=16065;
>>>>> bootid=128; is_linux_swap=False)
>>>>>                                         -> [0] (Slice: name=0;
>>>>> action=create, force=True, is_swap=False, tag=0, flag=0;
>>>>> in_zpool=rpool; in_vdev=vdev; size=136.69gb; start_sector=16065)
>>>>>
>>>>>
>>>>> HEY, What are you doing to me
>>>>> ??????????????????????????????????????????????????????????????
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 2011-10-13 15:54:14,905   InstallationLogger DEBUG      Installation
>>>>> size: 5.00gb
>>>>> 2011-10-13 15:54:14,905   InstallationLogger DEBUG      Available
>>>>> size: 136.69gb
>>>>> 2011-10-13 15:54:14,906   InstallationLogger DEBUG      Memory:
>>>>> 3968MB. Swap Required: False
>>>>> 2011-10-13 15:54:14,906   InstallationLogger DEBUG      Swap Type: ZVOL
>>>>> 2011-10-13 15:54:14,906   InstallationLogger DEBUG      Swap Size: 1.00gb
>>>>> 2011-10-13 15:54:14,907   InstallationLogger DEBUG      Dump Type: ZVOL
>>>>> 2011-10-13 15:54:14,907   InstallationLogger DEBUG      Dump Size: 1.94gb
>>>>> 2011-10-13 15:54:14,907   InstallationLogger.target-selection
>>>>> DEBUG      Validating desired  logical =
>>>>>                         -> [logical] (Logical: noswap=False; nodump=False)
>>>>>                                 -> [rpool] (Zpool: name=rpool;
>>>>> action=create; is_root=True; vdev_list=[None])
>>>>>                                         -> [vdev] (Vdev: name=vdev;
>>>>> redundancy=mirror)
>>>>>                                         -> [solaris] (BE:
>>>>> name=solaris; mountpoint=/a)
>>>>>                                         -> [swap] (Zvol: name=swap;
>>>>> action=create; use=swap; size=1024m)
>>>>>                                         -> [dump] (Zvol: name=dump;
>>>>> action=create; use=dump; size=1984m)
>>>>>
>>>>> 2011-10-13 15:54:14,934   InstallationLogger.target-selection
>>>>> DEBUG      Changing root redundancy from 'mirror' to 'none'.
>>>>> 2011-10-13 15:54:14,935   InstallationLogger.target-selection
>>>>> DEBUG      Validating DESIRED Disks
>>>>> 2011-10-13 15:54:14,935   InstallationLogger.target-selection
>>>>> DEBUG      Disks(Desired) =c3t2d0
>>>>> 2011-10-13 15:54:14,942   InstallationLogger DEBUG      Final
>>>>> Validation succeeded
>>>>> 2011-10-13 15:54:14,943   InstallationLogger.target-selection
>>>>> DEBUG      Selected disk(s): None
>>>>> 2011-10-13 15:54:14,943   InstallationLogger DEBUG      progress:
>>>>> target-selection, reported 100, normalized 4, total=10.461538
>>>>> 2011-10-13 15:54:14,994   InstallationLogger DEBUG      Snapshotting
>>>>> DOC to
>>>>> /var/run/install_engine/engine.AbsckV/.data_cache.target-selection-completed
>>>>> 2011-10-13 15:54:15,006   InstallationLogger DEBUG      Snapshotting
>>>>> DOC to /var/run/install_engine/engine.AbsckV/.data_cache.ai-configuration
>>>>> 2011-10-13 15:54:15,017   InstallationLogger DEBUG      Executing
>>>>> ai-configuration checkpoint
>>>>> 2011-10-13 15:54:15,018   InstallationLogger DEBUG      progress:
>>>>> ai-configuration, reported 100, normalized 2, total=12.846153
>>>>> 2011-10-13 15:54:15,069   InstallationLogger DEBUG      Snapshotting
>>>>> DOC to
>>>>> /var/run/install_engine/engine.AbsckV/.data_cache.ai-configuration-completed
>>>>> 2011-10-13 15:54:15,080   InstallationLogger DEBUG      Snapshotting
>>>>> DOC to
>>>>> /var/run/install_engine/engine.AbsckV/.data_cache.var-shared-dataset
>>>>> 2011-10-13 15:54:15,091   InstallationLogger DEBUG      Executing
>>>>> var-shared-dataset checkpoint
>>>>> 2011-10-13 15:54:15,092   InstallationLogger.var-shared-dataset
>>>>> DEBUG      Executing Var Share Dataset Addition
>>>>> 2011-10-13 15:54:15,093   InstallationLogger DEBUG      progress:
>>>>> var-shared-dataset, reported 100, normalized 1, total=14.769229
>>>>> 2011-10-13 15:54:15,144   InstallationLogger DEBUG      Snapshotting
>>>>> DOC to
>>>>> /var/run/install_engine/engine.AbsckV/.data_cache.var-shared-dataset-completed
>>>>> 2011-10-13 15:54:15,156   InstallationLogger DEBUG      Snapshotting
>>>>> DOC to
>>>>> /var/run/install_engine/engine.AbsckV/.data_cache.target-instantiation
>>>>> 2011-10-13 15:54:15,168   InstallationLogger DEBUG      Executing
>>>>> target-instantiation checkpoint
>>>>> 2011-10-13 15:54:15,168   InstallationLogger.target-instantiation
>>>>> DEBUG      Executing Target Instantiation
>>>>> 2011-10-13 15:54:15,207   InstallationLogger DEBUG      Executing:
>>>>> ['/usr/sbin/swap', '-l']
>>>>> 2011-10-13 15:54:15,216   InstallationLogger DEBUG      No swap
>>>>> devices configured
>>>>> 2011-10-13 15:54:15,217   InstallationLogger DEBUG      Unmounting
>>>>> filesystems on disk: c3t2d0
>>>>> 2011-10-13 15:54:15,218   InstallationLogger DEBUG      Executing:
>>>>> ['/usr/sbin/fdisk', '-n', '-F', '/tmp/fdisk-zutcUZ', '/dev/rdsk/c3t2d0p0']
>>>>> 2011-10-13 15:54:15,289   InstallationLogger DEBUG      Executing:
>>>>> /usr/sbin/format -d c3t2d0
>>>>> 2011-10-13 15:54:15,836   InstallationLogger DEBUG      stdout:
>>>>> Searching for disks...done
>>>>>
>>>>> c3t3d0: configured with capacity of 136.71GB
>>>>> selecting c3t2d0
>>>>> [disk formatted]
>>>>>
>>>>>
>>>>> FORMAT MENU:
>>>>>         disk       - select a disk
>>>>>         type       - select (define) a disk type
>>>>>         partition  - select (define) a partition table
>>>>>         current    - describe the current disk
>>>>>         format     - format and analyze the disk
>>>>>         fdisk      - run the fdisk program
>>>>>         repair     - repair a defective sector
>>>>>         label      - write label to the disk
>>>>>         analyze    - surface analysis
>>>>>         defect     - defect list management
>>>>>         backup     - search for backup labels
>>>>>         verify     - read and display labels
>>>>>         save       - save new disk/partition definitions
>>>>>         inquiry    - show disk ID
>>>>>         volname    - set 8-character volume name
>>>>>         !<cmd>     - execute <cmd>, then return
>>>>>         quit
>>>>> format> Ready to label disk, continue?
>>>>> format>
>>>>> 2011-10-13 15:54:15,837   InstallationLogger DEBUG      stderr:
>>>>> 2011-10-13 15:54:15,899   InstallationLogger DEBUG      Executing:
>>>>> ['/usr/sbin/zpool', 'create', '-f', 'rpool', 'c3t2d0s0']
>>>>> 2011-10-13 15:54:17,865   InstallationLogger DEBUG      Executing:
>>>>> ['/usr/sbin/zfs', 'create', '-p', '-V', '1024m', 'rpool/swap']
>>>>> 2011-10-13 15:54:18,192   InstallationLogger DEBUG      Executing:
>>>>> ['/usr/sbin/swap', '-a', '/dev/zvol/dsk/rpool/swap']
>>>>>
>>>>>
>>>>> and yes I end up with this:
>>>>>
>>>>> Current partition table (original):
>>>>> Total disk cylinders available: 17845 + 2 (reserved cylinders)
>>>>>
>>>>> Part      Tag    Flag     Cylinders         Size            Blocks
>>>>>   0 unassigned    wm       1 - 17844      136.69GB    (17844/0/0)
>>>>> 286663860
>>>>>   1 unassigned    wm       0                0        
>>>>> (0/0/0)             0
>>>>>   2     backup    wu       0 - 17846      136.71GB    (17847/0/0)
>>>>> 286712055
>>>>>   3 unassigned    wm       0                0        
>>>>> (0/0/0)             0
>>>>>   4 unassigned    wm       0                0        
>>>>> (0/0/0)             0
>>>>>   5 unassigned    wm       0                0        
>>>>> (0/0/0)             0
>>>>>   6 unassigned    wm       0                0        
>>>>> (0/0/0)             0
>>>>>   7 unassigned    wm       0                0        
>>>>> (0/0/0)             0
>>>>>   8       boot    wu       0 -     0        7.84MB    (1/0/0)        
>>>>> 16065
>>>>>   9 unassigned    wm       0                0        
>>>>> (0/0/0)             0
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>>
>>>>>
>>>>>
>>>>> Paul de Nijs | Principal Sales Consultant, HPC Benchmark Engineer |
>>>>> +1.503.617.8572
>>>>> Oracle HPC Sales Support
>>>>> 3295 NW 211th Terrace | Hillsboro, OR 97124-7110
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> caiman-discuss mailing list
>>>>> [email protected]
>>>>> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
>>>
>>> -- 
>>>
>>>
>>>
>>> Paul de Nijs | Principal Sales Consultant, HPC Benchmark Engineer |
>>> +1.503.617.8572
>>> Oracle HPC Sales Support
>>> 3295 NW 211th Terrace | Hillsboro, OR 97124-7110
>>>
>>>
> 
> -- 
> 
> 
> 
> Paul de Nijs | Principal Sales Consultant, HPC Benchmark Engineer |
> +1.503.617.8572
> Oracle HPC Sales Support
> 3295 NW 211th Terrace | Hillsboro, OR 97124-7110
> 
> 
> 
> 
> _______________________________________________
> caiman-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/caiman-discuss
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to