Configure Solaris Volume Manager in JET

10:25 am Solaris Jumpstart

In part 2 of the series of posts on JET we added the sds module to our jet template but did not yet implement a mirror. That is what we will do now. The rootdisk will be set to c0t0d0 (as defined in OBP’s rootdisk alias). Most of the variable settings are very straight forward.

To the template. The first section asks us which cluster to install, which disk to use and to layout that disk. The below details will set the cluster to install all+OEM on rootdisk (c0t0d0), set root slice to 0 and use 8gb, swap to s1 with 1gb and var to s3 with 2gb.  I also want to remove a few packages from the complete install using the base_config_profile_del_packages setting.

base_config_profile_cluster=SUNWCXall
base_config_profile_usedisk=rootdisk.
base_config_profile_dontuse=”"
base_config_profile_root=8192
base_config_profile_swap=1024
base_config_profile_s3_mtpt=”/var”
base_config_profile_s3_size=”2048″
base_config_profile_s4_mtpt=”"
base_config_profile_s4_size=”"
base_config_profile_s5_mtpt=”/var”
base_config_profile_s5_size=”"
base_config_profile_s6_mtpt=”/usr”
base_config_profile_s6_size=”"

base_config_profile_del_packages=”SUNWaclg SUNWapch2d SUNWapch2r SUNWapch2u SUNWapchd SUNWapchr SUNWapchu SUNWtcatr SUNWtcatu SUNWmysqlr SUNWmysqlt SUNWmysqlu SUNWserweb SUNWipplr SUNWseru”

Now to configure the sds module in the template. As i am using Solaris 10 i have fmthard set to yes, which takes care of some automation for us. In this section i can set the metadevices to use and set some aliases for disks. Below are the settings i use:

sds_root_mirror=”c0t2d0″
sds_use_fmthard=”yes”
sds_database_locations=”rootdisk.s7:3″
sds_root_alias=”rootdisk”
sds_root_mirror_devalias_name=”rootmirror”
sds_device_numbers=”/:d0:d10:d20 /var:d3:d13:d23 swap:d1:d11:d21″

And that’s it, run another boot net - install and your system will come up with the custom disk layouts and fully mirrrored. There are many more options to create other metadevices but i use scripts for that as i wish to preserve current disk structures. For example i run the following script which sets up slice 5 and then i put a metadevice on it. This way whatever information was on slice 5 (or d40) is preserved.

format -f /mnt/files/fmt-disk c0t0d0s0
format -f /mnt/files/fmt-disk c0t2d0s0
metainit d40 2 1 c0t0d0s5 1 c0t2d0s5

The contents of fmt-disk (print -> print -> slice 5 -> enter -> enter -> starting point 28115 -> size 10674c -> label -> quit -> quit):

p
p
5

28115
10674c
l
q
q
Next post will look at creating a flar to speed the whole process up even more.

Leave a Comment

Your comment

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.