Niall,

On 09/24/12 10:41 PM, Niall Power wrote:
Hi Paul,

oops. thanks for the heads up on the e-mail settings!

I had a look at your log and I see a few problems:

Partition 1 on your 279gb Seagate drive is used by an existing pool that was detected. As a safety measure, by default, the partition will not be reused for a new pool unless you specify force="true" in the manifest.
You can see this at line 738 in the log file:
-> [1] (GPTPartition: name=1; action=preserve, force=False; part_type=Solaris, tag=4, flag=0, in_use={'used_by': ['exported_zpool'], 'used_name': ['rpool']}; size=279.14gb; start_sector=524544)

What safety measure ? If I already set it to use the "whole_disk=true" ? It's the same problem I had in the past with 'partition', filed the bug and was solved (CR 7143082). In other words the "force=true" is not needed.
So please discuss this in the group. I think it's a bug, not a feature ;-)

To override this you should set force="true" in your manifest for the partition

<disk whole_disk="true">
<disk_name name="HDD01" name_type="receptacle"/>
<gpt_partition name="1" action="create" part_type="{6a85cf4d-1dd2-11b2-99a6-080020736631}" force="false">
<size val="100mb"/>
</gpt_partition>
<gpt_partition name="2" action="create" part_type="{6a8ef2e9-1dd2-11b2-99a6-080020736631}" force="false">
<size val="100mb"/>
</gpt_partition>
<gpt_partition name="3" action="create" part_type="solaris" in_vdev="rpoolmirrored" in_zpool="rpool" force="false"/>
</disk>

I have another couple of comments also after looking at your manifest:
- you don't need to create Solaris /var and Solaris root GPT partitions. They are legacy junk from when UFS was still in use in Solaris and GPT was first being introduced into Solaris. For ZFS we only use the "Solaris" type, which we have created a partition type alias for "solaris", so you don't need to put in the GUIDS. /var, root etc. are allocated within the zpool itself. I would recommend removing these 2 entries since they will not be used and are just occupying a limited set of available partition slots.

I actually don't care what the solaris thinks the partitions are, as a rule we reserve some space (slices in solaris sparc/x86) for people to use with Sun Volume Manager (yes, sometimes we use that too).

- You might want to check that you are booting UEFI (if that is what you desired) since the existing GPT partitions on your disks include "BIOS boot partitions". If you perform a UEFI installation you will see "EFI system partition" type partitions in their place.
I know that I booted (and installed) with Legacy Bios, the UEFI GPT partition will show up with a Tag as 'system'

UEFI:
Part      Tag    Flag     First Sector          Size          Last Sector
  0     system    wm               256       255.88MB           524287
.....

BIOS:
Part      Tag    Flag     First Sector          Size          Last Sector
  0  BIOS_boot    wm               256       255.88MB           524287





Thanks,
Niall


On 25/09/2012 00:33, Paul de Nijs wrote:
Niall, resending to you again.

It bounced (I did a reply to this last message), please check you IPhone email settings, it says somewhere [email protected]

Paul

-------- Original Message --------
Subject: Re: [caiman-discuss] install fails when using gpt_partition and whole_disk="true" and gpt_partition exists
Date:   Mon, 24 Sep 2012 09:27:52 -0700
From:   Paul de Nijs <[email protected]>
Reply-To:       [email protected]
Organization:   Oracle
To:     Niall Power <[email protected]>
CC:     caiman-discuss <[email protected]>



Niall,

As you requested, the install_log is attached.
The console output says some more, however it doesn't make it into the error_log


The error message on the console:

16:06:47 Creating GPT partition 1 on disk c0t5000CCA01A212F4Cd0 will destroy
existing data.
16:06:48 Creating GPT partition 2 on disk c0t5000CCA01A212F4Cd0 will destroy
existing data.
16:06:48 Creating GPT partition 3 on disk c0t5000CCA01A212F4Cd0 will destroy
existing data.
16:06:48 Creating GPT partition 1 on disk c0t5000CCA01A212C90d0 will destroy
existing data.
16:06:48 Creating GPT partition 2 on disk c0t5000CCA01A212C90d0 will destroy
existing data.
16:06:48 Creating GPT partition 3 on disk c0t5000CCA01A212C90d0 will destroy
existing data.
16:06:48 Selected Disk(s) : c0t5000CCA01A212F4Cd0, c0t5000CCA01A212C90d0
16:06:48    Error module ID: physical validation.. error type: 0
16:06:48    Error class: GPTPartitionInUseError()
16:06:48 Exception value: GPT partition currently in use by exported_zpool: r
pool
16:06:48 Error occurred during execution of 'target-selection' checkpoint.
16:06:48    Failed Checkpoints:
16:06:48
16:06:48        target-selection
16:06:48
16:06:48    Checkpoint execution error:
16:06:48
16:06:48 Final Validation Failed. See install_log for more details.
16:06:48
16:06:48 Automated Installation Failed. See install log at /system/volatile/
/install_log
Automated Installation failed
Please refer to the /system/volatile/install_log file for details
Sep 24 16:06:49 sbm-4270m3-01 svc.startd[9]: application/auto-installer:default
failed fatally: transitioned to maintenance (see 'svcs -xv' for details)

SUNW-MSG-ID: SMF-8000-YX, TYPE: defect, VER: 1, SEVERITY: major
EVENT-TIME: Mon Sep 24 16:06:54 UTC 2012
PLATFORM: SUN-FIRE-X4270-M3, CSN: 1201FM5013, HOSTNAME: sbm-4270m3-01
SOURCE: software-diagnosis, REV: 0.1
EVENT-ID: c6d69a6c-291e-43ed-ec9b-f994b2a6c445
DESC: A service failed - a start, stop or refresh method failed.
AUTO-RESPONSE: The service has been placed into the maintenance state.
IMPACT: svc:/application/auto-installer:default is unavailable.
REC-ACTION: Run 'svcs -xv svc:/application/auto-installer:default' to determine the generic reason why the service failed, the location of any logfiles, and a l ist of other services impacted. Please refer to the associated reference documen t at http://support.oracle.com/msg/SMF-8000-YX for the latest service procedures
 and policies regarding this diagnosis.


The /system/volatile/install_log is attached ..................



If I delete the 2 partitions on the target disks (HDD00 and HDD01)
root@sbm-4270m3-01:~# fdisk c0t5000CCA01A212F4Cd0
root@sbm-4270m3-01:~# fdisk c0t5000CCA01A212C90d0

and clear the svc:/application/auto-installer:default

root@sbm-4270m3-01:~# svcadm clear svc:/application/auto-installer:default

The install will restart and continue

Thanks

Paul



On 09/21/12 08:04 PM, Niall Power wrote:
Ignore my previous comment about partition unique names. I didn't notice you had 2 disks. Blame my phone screen! Can you attach or send the log file?


Paul de Nijs <[email protected]> wrote:

All,

I get this meaningless error when I install on a disk with gpt_partition and whole_disk=true

2012-09-21 21:30:04,414 InstallationLogger CRITICAL Failed Checkpoints:
2012-09-21 21:30:04,464   InstallationLogger ERROR
2012-09-21 21:30:04,515 InstallationLogger ERROR target-selection
2012-09-21 21:30:04,565   InstallationLogger ERROR
2012-09-21 21:30:04,615 InstallationLogger ERROR Checkpoint execution error:
2012-09-21 21:30:04,665   InstallationLogger ERROR
2012-09-21 21:30:04,715 InstallationLogger ERROR Final Validation Failed. See install_log for more details.
2012-09-21 21:30:04,766   InstallationLogger ERROR
2012-09-21 21:30:04,816 InstallationLogger INFO Automated Installation Failed. See install log at /system/volatile//install_log 2012-09-21 21:30:04,866 InstallationLogger DEBUG Shutting down Progress Handler

This is my manifest (X3-2L, aka x4270m3)

<?xml version="1.0" encoding="UTF-8"?>
<!--
Generated by: Asterix 2.4.3 for host: sbm-4270m3-01 on 2012-09-20 16:38
Source:  sbm-ai:/install/AI/Jumpstart_data/hdd00_3tb.s11_x86_ai.xml
Profile: hdd00 3TB disk
AI_SERVICE=http://10.80.182.6:10101
-->
<!DOCTYPE auto_install SYSTEM "file:///usr/share/install/ai.dtd.1">
<auto_install>
<ai_instance name="default" auto_reboot="true">
<target>
<disk whole_disk="true">
<disk_name name="HDD00" name_type="receptacle"/>
<gpt_partition name="1" action="create" part_type="{6a85cf4d-1dd2-11b2-99a6-080020736631}">
<size val="100mb"/>
</gpt_partition>
<gpt_partition name="2" action="create" part_type="{6a8ef2e9-1dd2-11b2-99a6-080020736631}">
<size val="100mb"/>
</gpt_partition>
<gpt_partition name="3" action="create" part_type="solaris" in_vdev="rpoolmirrored" in_zpool="rpool" >
</gpt_partition>
</disk>
<disk whole_disk="true">
<disk_name name="HDD01" name_type="receptacle"/>
<gpt_partition name="1" action="create" part_type="{6a85cf4d-1dd2-11b2-99a6-080020736631}">
<size val="100mb"/>
</gpt_partition>
<gpt_partition name="2" action="create" part_type="{6a8ef2e9-1dd2-11b2-99a6-080020736631}">
<size val="100mb"/>
</gpt_partition>
<gpt_partition name="3" action="create" part_type="solaris" in_vdev="rpoolmirrored" in_zpool="rpool" >
</gpt_partition>
</disk>

<logical noswap="false" nodump="false">
<zpool name="rpool" action="create" is_root="true">
<vdev name="rpoolmirrored" redundancy="mirror"/>
<filesystem name="export" action="create" mountpoint="/export"/>
<filesystem name="export/home" action="create"/>
<be name="solaris"/>
</zpool>
</logical>
</target>
<software type="IPS">
<source>
<publisher name="solaris">
<origin name="http://sbm-ai.us.oracle.com/s11_1-24a"/>
</publisher>
<publisher name="sae">
<origin name="http://sbm-ai.us.oracle.com/sae"/>
</publisher>
</source>
<software_data action="install">
<name>pkg://solaris/entire</name>
<name>pkg://solaris/group/system/solaris-large-server</name>
<name>pkg://solaris/storage/svm</name>
<name>pkg://solaris/storage/metassist</name>
<name>pkg://sae/AIPostAsterix</name>
</software_data>
</software>
</ai_instance>
</auto_install>


What I have to do is manually DELETE the partition in HD00 and HDD01 with 'format->fdisk'
and restart the install with

svcadm clear svc:/application/auto-installer:default

Do I have to file a bug for this ?

Thanks

Paul


--



Paul de Nijs | Principal Software Engineer | Performance Technologies | +1.503.495.7882
Oracle Strategic Applications Engineering (SAE)
3295 NW 211th Terrace | Hillsboro, OR 97124-7110



--



Paul de Nijs | Principal Software Engineer | Performance Technologies | +1.503.495.7882
Oracle Strategic Applications Engineering (SAE)
3295 NW 211th Terrace | Hillsboro, OR 97124-7110



--



Paul de Nijs | Principal Software Engineer | Performance Technologies | +1.503.495.7882
Oracle Strategic Applications Engineering (SAE)
3295 NW 211th Terrace | Hillsboro, OR 97124-7110




--



Paul de Nijs | Principal Software Engineer | Performance Technologies | +1.503.495.7882
Oracle Strategic Applications Engineering (SAE)
3295 NW 211th Terrace | Hillsboro, OR 97124-7110


_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to