Sue and Frank:

This is what I do:

New tag <disk_name name_type> has been introduced
which allows to select target disk by volume name created by means
of format(1M) command, e.g..

format -d c0d0 > /dev/null 2>/dev/null - <<EOF
volname
"ai-disk"
y
quit
EOF

The xml equipvalent will be this:

<target>
<target_device>
<disk>
<disk_name name_type="volid" name="ai-disk"/>
</disk>
</target_device>
</target>


I did this on some x86 and sparc systems if there was a specific disk that I want to install to.

i.e.:

installadm -m default.ddu.144.ai-disk-schema.xml -n sol-11-dev-147-ai-sparc -C criteria.line2-v445

# more criteria.line2-v445
<ai_criteria_manifest>
<ai_criteria name="MAC">
<value>
                        0:14:4f:2c:88:2
</value>
</ai_criteria>
</ai_criteria_manifest>
#


On 09/13/10 14:19, Sue Sohn wrote:
On 09/11/10 03:00, Frank Allan wrote:


    On 09/10/10 07:51, Ethan Quach wrote:

> How do I set the disk selection without modifying the ai_manifest.xml > file in the service area. > I expect there is a way to set this for an individual client, but I > can't see how to do it. > The Flag Day docs have examples of how to convert existing clients, > but no information that I can see on actually setting up a new one > from scratch in 147. >> I have setup a new client and successfully booted it with its own > manifest, just not sure how/where to add the disk selection.

    Does the sample /usr/share/auto_install/ai_manifest.xml help?


The problem I am having is where/how I include the disk selection statements which I found in ai_manifest.xml
I guess this is once again my lack of expertise with XML.

Do I select part/all of the ai_manifest.xml and include it in my client-specific manifest? Presumably I can't include my client-specific manifest in the ai_manifest file as it has the embedded service_bundle already included (as a comment) so I can't include comments within comments. I *can* find the specification I want for a particular disk, just not how/where to include it.

Short summary:
I have my_client_default.xml (copy of default.xml) - I include static_network.xml in this as an embedded manifest. How do I include ai_manifest.xml - is this another embedded manifest? If I understand things correctly, my_client_default is an ai manifest, and I can embed an sc manifest in this.
But I can't embed another ai manifest.
Presumably, since disk selection is in an ai manifest, I can't specify it in my criteria manifest. Can I just add part/all of the disk_selection section of ai_manifest to the start of my_client_default?

You should be able to add your disk_selection tags to your my_client_default.xml file. You can look in ai_manifest.xml for samples of what you need to add. For example, if you wanted to select the disk based on a specific volid, "my_volid", you could add the following snippet, starting directly under the "<ai_instance...>" line:

<target>
<target_device>
<disk>
<disk_name name_type="volid" name="my_volid"/>
</disk>
</target_device>
</target>

Thanks,
Sue
_______________________________________________
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