Solaris jumpstart common problems
I’ve been playing around with Solaris jumpstart recently. I haven’t used it since the early days. It seems that a lot of the old problems still exist. So, I’ve listed most of the common problems and their solution here. This also covers Sun’s JET, (Jumpstart Enterprise Toolkit).
This is a Work In Progress — so I’ll be updating this from time time as I come across issues.
The ‘ERROR: (_app_set_slice) Disk is not selected’ error message.
So, you’re trying to setup some DiskSuite metadevices during the jumpstart installation. You are getting this error because you don’t have the slices properly defined in your JET template. You will need to have something similar to the following defined in your JET template file, (under /opt/SUNWjet/Templates):
base_config_profile_root=512 base_config_profile_swap=16384 base_config_profile_s3_mtpt="/usr" base_config_profile_s3_size="8192" base_config_profile_s4_mtpt="/opt" base_config_profile_s4_size="2048" base_config_profile_s5_mtpt="/var" base_config_profile_s5_size="2048" base_config_profile_s6_mtpt="" base_config_profile_s6_size="" base_config_profile_disk_c0t1d0s0_mtpt="free" base_config_profile_disk_c0t1d0s0_size="512" base_config_profile_disk_c0t1d0s1_mtpt="free" base_config_profile_disk_c0t1d0s2_size="8192" base_config_profile_disk_c0t1d0s3_mtpt="free" base_config_profile_disk_c0t1d0s3_size="8192" base_config_profile_disk_c0t1d0s4_mtpt="free" base_config_profile_disk_c0t1d0s4_size="2048" base_config_profile_disk_c0t1d0s5_mtpt="free" base_config_profile_disk_c0t1d0s5_size="2048" base_config_profile_disk_c0t1d0s6_mtpt="" base_config_profile_disk_c0t1d0s6_size="" sds_root_mirror="c0t1d0" sds_database_locations="c0t0d0s7:3 c0t1d0s7:3" sds_database_partition="c0t0d0s7:64 c0t1d0s7:64" sds_device_numbers="/:d100:d0:d10 swap:d101:d1:d11 /usr:d103:d3:d13 /opt:d104:d4:d14 /var:d105:d5:d15"
I had this error when I hadn’t specified the *_mtpt and set it to’free’, I had just left it blank.
Jumpstart directory not found
I had the following issue and it took me a while to figure it out.
Searching for JumpStart directory... not found Warning: Could not find matching rule in rules.ok Press the return key for an interactive Solaris install program...
In the end I started to debug the ‘install-solaris’, and ‘profind’ scripts line by line. It turns out that I had defined my hosts with FQDN in my /etc/hosts file. When the server starts to look for the jumpstart directory it’ll use the /usr/sbin/install.d/profind s
cript to determine this. Contained within that is the line:
set -- `/sbin/bpgetfile -retries 1 install_config`
Because I was using the standard RARP method of booting, bpgetfile was called to determine where to nfs mount the jumpstart directory. bootparams didn’t return any information from the boot server, because it was asking for ‘hostname’, rather than ‘hostname.domain.name’. So, if you get this issue. run the command
/sbin/bpgetfile -retries 1 install_config
from your install shell.
If you get nothing, then this is your issue. You will need to ensure you define your hosts not with a FQDN.
Actually, in my travels on this issue. Most of the resolutions to ‘no matching rule found in rules.ok’ issues had to do with accessing the jumpstart server from the client. So, check all your network settings, (netmasks, routes, etc). If not, then the above resolution will be it. On my clients, this was all OK, so it was baffling for a while.
Also, make sure that you have the matching swap and root partitions set correctly:
base_config_profile_root=512 base_config_profile_disk_c0t1d0s0_mtpt="free" base_config_profile_disk_c0t1d0s0_size="512" base_config_profile_swap=8192 base_config_profile_disk_c0t1d0s1_mtpt="free" base_config_profile_disk_c0t1d0s1_size="8192"
No related posts.
