Solaris 10 Performance Tuning – Analyzing CPU
Tools :
psrinfo
uptime
vmstat
sar -u
sar -q (cpu queue, same as vmstat kthr:r)
mpstat
dtrace
$ psrinfo -vp
The physical processor has 8 virtual processors (32-39)
SPARC64-VII (portid 1056 impl 0x7 ver 0x91 clock 2400 MHz)
The physical processor has 8 virtual processors (40-47)
SPARC64-VII (portid 1064 impl 0x7 ver 0x91 clock 2400 MHz)
The physical processor has 8 virtual processors (48-55)
SPARC64-VII (portid 1072 impl 0x7 ver 0x91 clock 2400 MHz)
The physical processor has 8 virtual processors (56-63)
SPARC64-VII (portid 1080 impl 0x7 ver 0x91 clock 2400 MHz)
$ uptime
1:04pm up 114 day(s), 14:15, 6 users, load average: 4.41, 4.39, 3.76
the intervals are 1,5,15 minutes
$ vmstat 5
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 s1 sd sd in sy cs us sy id
0 0 0 107752976 11913152 74 296 901 2 2 0 0 2 2 -0 -349 5960 727992 5910 9 2 89
0 0 0 106811152 8983688 8 31 2 0 0 0 0 0 0 0 2 8818 615705 13764 13 2 85
0 0 0 106701904 8884808 0 14 0 0 0 0 0 0 0 0 2 14250 584633 24692 12 3 85
0 0 0 106535552 8730784 9 87 0 0 0 0 0 9 9 0 0 9247 379414 14642 12 2 87
0 0 0 106403648 8603144 0 10 0 0 0 0 0 0 0 0 0 6668 550100 9664 12 2 87
0 0 0 106296328 8504712 0 5 0 0 0 0 0 0 0 0 0 10490 471906 17677 12 2 85
0 0 0 106277472 8510232 1 3 6 0 0 0 0 0 0 0 0 12011 535986 20477 11 2 87
0 0 0 106277472 8527712 3 37 0 0 0 0 0 0 0 0 0 13685 668057 23689 9 2 89
The first line is the summary since boot. vmstat reads its statistic from kstat,
which maintains CPU utilizztion statistics for each CPU.
cpu:id : for percent idle.
kthr:r : the total number of threads on the ready to run queues, CPU saturation.
faults:in : number of interrupts/sec
faults:sys: number of system calls/sec
faults:cs : number of context switches/sec
cpu:us : percent user time/user-mode threads
cpu:sy : percent system time
cpu:id : percent idle
sar : turn on sar if it's not on.
$ svcs -a | grep sar
online Jan_22 svc:/system/sar:default
$ svcs -l svc:/system/sar:default
fmri svc:/system/sar:default
name system activity reporting package
enabled true
state online
next_state none
state_time Fri Jan 22 22:08:22 2010
logfile /var/svc/log/system-sar:default.log
restarter svc:/system/svc/restarter:default
dependency require_all/none svc:/system/filesystem/minimal (online)
$ sar 5 10
SunOS betapm 5.10 Generic_142900-03 sun4u 05/17/2010
13:07:48 %usr %sys %wio %idle
13:07:53 13 4 0 84
13:07:58 11 4 0 85
13:08:03 9 3 0 88
13:08:08 9 3 0 88
13:08:13 11 4 0 85
13:08:18 11 3 0 86
13:08:23 10 3 0 86
13:08:28 9 3 0 88
13:08:33 9 3 0 88
13:08:38 11 3 0 86
Average 10 3 0 86
%usr vs %sys : 70% vs 30%
%wio is always 0 in solaris 10 (disabled)
$ sar -q 2 10
SunOS betapm 5.10 Generic_142900-03 sun4u 05/17/2010
13:11:34 runq-sz %runocc swpq-sz %swpocc
13:11:36 1.0 50 0.0 0
13:11:38 0.0 0 0.0 0
13:11:40 0.0 0 0.0 0
13:11:42 0.0 0 0.0 0
13:11:44 0.0 0 0.0 0
13:11:46 0.0 0 0.0 0
13:11:48 0.0 0 0.0 0
13:11:50 1.0 50 0.0 0
13:11:52 0.0 0 0.0 0
13:11:54 0.0 0 0.0 0
Average 1.0 10 0.0 0
runq-sz: run queue size , same as vmstat kthr:r
%runocc: identify short bursts of run queue activity occurred
swpq-sz: number of swapped-out threads
%swpocc: swapped out occupancy, percentage of time there were swapped out threads
$ mpstat 3
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
32 0 0 18 460 126 257 0 3 10 0 2858 0 0 0 99
33 0 0 14 131 34 180 1 7 49 0 740 5 1 0 94
34 0 0 5 134 45 161 1 6 3 0 879 0 0 0 100
35 0 0 60 78 33 93 0 7 54 0 457 0 0 0 100
36 0 0 3 199 91 204 0 4 2 0 1125 0 0 0 100
37 0 0 105 49 13 55 0 3 17 0 164 0 0 0 100
38 0 0 2 124 56 126 0 2 1 0 1716 0 0 0 99
39 30 0 21 5 0 7 0 2 4 0 13 0 0 0 100
40 0 0 1 6 2 3 0 1 0 0 50 0 0 0 100
41 0 0 0 3 0 5 0 3 5 0 0 0 0 0 100
42 0 0 10 22 10 0 0 0 0 0 0 0 0 0 100
43 0 0 1 7 1 10 0 5 12 0 1 0 0 0 100
44 0 0 0 2 0 0 0 0 0 0 0 0 0 0 100
45 0 0 1 6 0 8 0 4 7 0 2 0 0 0 100
46 0 0 29 68 30 0 6 0 510 0 795891 72 28 0 0
47 0 0 2 5 1 2 0 1 4 0 0 0 0 0 100
48 0 0 26 346 153 331 1 6 8 0 4467 1 0 0 99
49 0 0 0 3 0 7 0 4 8 0 0 0 0 0 100
50 0 0 53 129 92 22 0 0 3 0 8 0 0 0 100
51 0 0 65 131 42 142 0 7 61 0 568 1 0 0 99
52 0 0 23 878 671 382 0 4 22 0 3765 1 2 0 97
53 0 0 43 43 32 15 0 3 9 0 0 0 0 0 100
54 0 0 0 22 6 27 0 0 0 0 39 0 0 0 100
55 0 0 91 237 108 241 0 6 11 0 213 0 0 0 100
56 0 0 38 303 143 231 0 5 2 0 3360 1 1 0 99
57 0 0 8 59 14 81 0 2 19 0 352 3 0 0 97
58 0 0 1 5 1 3 0 1 0 0 7 0 0 0 100
59 0 0 9 61 18 57 0 3 13 0 62 0 1 0 99
60 0 0 23 212 96 183 1 6 2 0 1159 0 0 0 99
61 0 0 25 134 38 169 0 5 81 0 921 5 0 0 95
62 0 0 0 19 3 27 0 0 2 0 27 0 0 0 100
63 0 0 6 62 22 62 0 6 7 0 271 0 0 0 100
csw : the number of context switch (both voluntary and involuntary);
occurs when a thread perfomrs a blocking system call e.g. performing I/O when
the thread sleeps until the I/O event has completed.
icsw: the number of involuntary context switches; indicates if there were more
threads ready to run than available phyiscal processors.
migr: migrations of threads between processors; the number of times the OS
scheduler moves ready-to-run threads to an idle prcessor. OS normally keeps
the threads on the last processor it ran unless the process is busy, then the
thread migrates. Such migration is bad for performance.
intr: the number of interrupts taken on CPU.
ithr: the number of interrupts that are converted to real threads, as result of
inbound network packets, blocking for a mutex, or a synchronization event.
smtx: the number of mutex contentions in the kernel, high shows high %sys time.
srw : the number of reader-writer lock contention events in the kernel.
Excessive reader/write lock contention results in nonscaling performance and
systems that are unable to use all the available CPU resources (symptom is idle time).
$ mpstat -ap 5 20
SET minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl sze
0 183 1 1186 874 207 1104 7 158 156 0 4229 0 1 0 99 16
1 112 104 2329 5085 2222 4805 215 710 1958 187 723869 17 4 0 80 16
SET minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl sze
0 107 0 1505 995 323 1128 5 78 368 0 3755 2 1 0 97 16
1 0 0 374 3011 1364 2399 7 68 35 0 38155 0 0 0 99 16
SET minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl sze
0 4 0 244 1010 322 1170 4 74 304 0 3549 2 0 0 98 16
1 0 0 472 2907 1313 2303 5 62 25 0 45064 0 0 0 99 16
SET minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl sze
0 1 0 290 990 323 1156 4 79 322 0 3577 2 1 0 97 16
1 0 0 265 2600 1119 2080 6 51 37 0 48610 1 0 0 99 16
SET minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl sze
0 74 0 715 1074 323 1275 6 90 287 0 3816 3 1 0 96 16
1 0 0 325 2695 1203 2077 6 67 31 0 59557 1 0 0 99 16
$prstat
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
29302 sybase 11G 11G sleep 59 0 195:35:53 0.1% dataserver/259
29347 sybase 11G 11G sleep 59 0 151:18:42 0.1% dataserver/259
29348 sybase 11G 11G sleep 59 0 153:15:41 0.0% dataserver/259
29340 sybase 11G 11G sleep 59 0 147:23:56 0.0% dataserver/259
29341 sybase 11G 11G sleep 59 0 153:08:31 0.0% dataserver/259
29342 sybase 11G 11G sleep 59 0 149:55:02 0.0% dataserver/259
29346 sybase 11G 11G sleep 59 0 149:56:52 0.0% dataserver/259
29334 sybase 11G 11G sleep 59 0 153:15:53 0.0% dataserver/259
29349 sybase 11G 11G sleep 59 0 182:37:54 0.0% dataserver/259
29343 sybase 11G 11G sleep 59 0 148:44:13 0.0% dataserver/259
29345 sybase 11G 11G sleep 59 0 152:04:00 0.0% dataserver/259
29333 sybase 11G 11G sleep 59 0 154:10:37 0.0% dataserver/259
29332 sybase 11G 11G sleep 59 0 146:54:46 0.0% dataserver/259
29335 sybase 11G 11G sleep 59 0 156:39:37 0.0% dataserver/259
29344 sybase 11G 11G sleep 59 0 144:58:21 0.0% dataserver/259
1540 sybase 14M 11M sleep 59 0 0:00:00 0.0% xpserver/1
29320 sybase 10M 9152K sleep 59 0 0:00:15 0.0% backupserver/1
28892 sybase 4296K 2136K sleep 59 0 0:00:06 0.0% SYBASE/1
29304 sybase 10M 6872K sleep 59 0 0:00:00 0.0% backupserver/1
28891 sybase 3440K 1880K sleep 59 0 0:00:06 0.0% lmgrd/1
Total: 20 processes, 3890 lwps, load averages: 1.02, 1.73, 2.12
Quick note for prstat:
CPU field is thread->pr_pctcpu
load average is the same as 'uptime'
When average load average exceeds the number of CPUs in the system (psrinfo),
the system is very likely over loaded.
prstat -mL ; turn on microstates '-m' and show per-thread '-L'
PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID
14853 sjing 21 72 0.7 0.0 0.0 0.0 6.5 0.0 73 73 78K 0 prstat/1
12047 betapm 34 0.8 0.0 0.0 0.0 0.0 65 0.1 773 21 12K 0 MathKernel/1
29302 sybase 22 4.5 0.0 0.0 0.0 0.0 74 0.0 227 71 .3M 9 dataserver/1
29349 sybase 20 3.7 0.0 0.0 0.0 0.0 76 0.0 234 75 .2M 7 dataserver/1
29335 sybase 17 3.4 0.0 0.0 0.0 0.0 79 0.0 240 67 .2M 7 dataserver/1
29333 sybase 17 3.4 0.0 0.0 0.0 0.0 79 0.0 242 67 .2M 8 dataserver/1
29341 sybase 17 3.2 0.0 0.0 0.0 0.0 80 0.0 244 66 .2M 9 dataserver/1
29348 sybase 17 3.2 0.0 0.0 0.0 0.0 80 0.0 243 67 .2M 8 dataserver/1
29334 sybase 17 3.2 0.0 0.0 0.0 0.0 80 0.0 242 67 .2M 7 dataserver/1
29345 sybase 17 3.2 0.0 0.0 0.0 0.0 80 0.0 242 66 .2M 7 dataserver/1
29347 sybase 17 3.1 0.0 0.0 0.0 0.0 80 0.0 243 67 .2M 8 dataserver/1
29342 sybase 17 3.2 0.0 0.0 0.0 0.0 80 0.0 245 66 .2M 11 dataserver/1
29346 sybase 17 3.2 0.0 0.0 0.0 0.0 80 0.0 244 67 .2M 8 dataserver/1
29343 sybase 17 3.0 0.0 0.0 0.0 0.0 80 0.0 244 67 .2M 8 dataserver/1
29340 sybase 17 3.1 0.0 0.0 0.0 0.0 80 0.0 245 66 .2M 8 dataserver/1
Total: 141 processes, 4479 lwps, load averages: 0.87, 1.24, 1.83
PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG PROCESS/LWPID
29302 sybase 10 4.5 0.0 0.0 0.0 0.0 85 0.0 367 9 .3M 126 dataserver/1
29347 sybase 9.9 4.0 0.0 0.0 0.0 0.0 86 0.0 373 8 .2M 127 dataserver/1
12047 betapm 9.1 0.4 0.0 0.0 0.0 0.0 90 0.1 536 6 8K 0 MathKernel/1
29348 sybase 1.0 0.4 0.0 0.0 0.0 0.0 99 0.0 303 1 29K 12 dataserver/1
29340 sybase 0.8 0.4 0.0 0.0 0.0 0.0 99 0.0 302 2 26K 9 dataserver/1
14853 sjing 0.3 0.8 0.0 0.0 0.0 0.0 99 0.0 17 1 727 0 prstat/1
14831 dbop 0.0 0.9 0.0 0.0 0.0 0.0 99 0.1 826 2 1K 0 find/1
29341 sybase 0.6 0.3 0.0 0.0 0.0 0.0 99 0.0 297 1 19K 7 dataserver/1
29342 sybase 0.6 0.2 0.0 0.0 0.0 0.0 99 0.0 298 0 17K 4 dataserver/1
29349 sybase 0.5 0.2 0.0 0.0 0.0 0.0 99 0.0 298 1 16K 5 dataserver/1
12063 betapm 0.2 0.4 0.0 0.0 0.0 0.0 99 0.0 505 1 6K 0 MathAddon/1
29346 sybase 0.4 0.2 0.0 0.0 0.0 0.0 99 0.0 297 1 14K 4 dataserver/1
29333 sybase 0.4 0.2 0.0 0.0 0.0 0.0 99 0.0 297 0 11K 3 dataserver/1
29334 sybase 0.4 0.2 0.0 0.0 0.0 0.0 99 0.0 299 0 12K 3 dataserver/1
29335 sybase 0.4 0.2 0.0 0.0 0.0 0.0 99 0.0 297 1 9K 2 dataserver/1
Total: 141 processes, 4479 lwps, load averages: 0.86, 1.23, 1.82
LAT : (latency) is the amount of time spent waiting for CPU.
Showing posts with label Solaris 10 Administration. Show all posts
Showing posts with label Solaris 10 Administration. Show all posts
Solaris 10 Performance Tuning - Analyzing CPU
Labels:
Solaris 10 Administration
Solaris 10 Administration

(Sun E10000, 64 CPUs and 64 GB RAM, 16 SBs, up to 16 domains)
- Solaris Volume Manager Quick Reference
- Fix Solaris 10 SMF Errors in 1 Minute!
- Solaris 10 SMF for Network Services
- Implement a Basic Solaris Jumpstart Server
- Solaris Jumpstart Client Boot Sequence
- Troubleshoot Solaris Jumpstart
- Solaris NFS Server
- Solaris NFS Client
- Solaris Syslog
- Solaris Swap Configuration
- Solaris NSCD
- Solaris Crash Dump Administration
- Solaris AutoFS
- Solaris 10 Performance Tuning - CPU Analysis
- Solaris Remote Procedure Call
- Test Your Solaris Administration Skills Here (NEW!)
Solaris Volume Manager
Metastate Database
The state database stores information on disk about the state of VM config.
Multiple copies of the database, called replicas, provide redundancy and
protect against data loss if a copy of the database is corrupted.
1 Disk - min 3 replicas
2-4 Disks - 2 replicas each disk
5 or more disks - 1 replica on each disk
Majority Consensus Alogrithm
- at least half of the replicas are available
- causes the system to panic if fewer than half of the replicas available
- won't start VM unless majority replicas are available
#metadb -a [-f] [-c n] [-l nn] disk_slice
-a adds a state database replica
-f forces the operation
-c n specifies the number of the replicas to add to the slice
-l nnn specifies the size of the new replicas, in blocks
disk_slice specifies the disk_slice will hold the replica
#metadb -a -f c0t0d0s4 c0t0d0s5 c1t0d0s1
#metadb -a -f -c 2 c3t2d0s7 c3t3d0s7
#metadb
#metainit -f name numstripes width component...
#metainit -f d0 2 1 c0t0d0s7 c3t2d0s0
#metastat
#ls -iL /dev/md/dsk
#ls -il /dev/md/rdsk
#growfs -M /export/home /dev/md/rdsk/d0
SVM Operation Examples:
------------------------------------------------------------------------------
vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/md/dsk/d1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no logging
/dev/md/dsk/d6 /dev/md/rdsk/d6 /zones ufs 2 yes -
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
------------------------------------------------------------------------------
ROOT@server1:/root # metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c0t0d0s7
a p luo 8208 8192 /dev/dsk/c0t0d0s7
a p luo 16400 8192 /dev/dsk/c0t0d0s7
a = active
size = 8192blk = 4MB
---------------------------------------------------------------------------
layout of the disk
Part Tag Flag Cylinders Size Blocks
0 root wm 2241 - 4481 8.00GB (2241/0/0) 16780608
1 swap wu 0 - 2240 8.00GB (2241/0/0) 16780608
2 backup wm 0 - 38342 136.91GB (38343/0/0) 287112384
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 4482 - 6722 8.00GB (2241/0/0) 16780608
7 unassigned wm 6723 - 6731 32.91MB (9/0/0) 67392
----------------------------------------------------------------------------
metadb - creates state db replicas
metadb -a -f c0t0d0s4 c0t0d0s5 c1t0d0s0 c1t0d0s1
metadb -a -f -c n -l nnn disk_slice
-f force operation
-c n specifies the number of replicas to add to the slice
-l nnn specifies the size of the new replica in blocks
disk_slice specifies the slice will hold the replica
metainit - creates the metadevices.
metainit -f concat/stripe numstripes witdth component
metainit -f d0 2 1 c0t0d0s7 1 c3t2d0s0
metastat - checks the metadevice configuration
ROOT@server1:/root # metastat
d6: Mirror
Submirror 0: d16
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16780608 blocks (8.0 GB)
d16: Submirror of d6
State: Okay
Size: 16780608 blocks (8.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s6 0 No Okay Yes
d1: Mirror
Submirror 0: d11
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16780608 blocks (8.0 GB)
d11: Submirror of d1
State: Okay
Size: 16780608 blocks (8.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s1 0 No Okay Yes
d0: Mirror
Submirror 0: d10
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16780608 blocks (8.0 GB)
d10: Submirror of d0
State: Okay
Size: 16780608 blocks (8.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s0 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c0t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7400LPR
ROOT@server1:/root # ls -lL /dev/md/dsk
total 0
brw-r----- 1 root sys 85, 0 Jul 19 16:39 d0
brw-r----- 1 root sys 85, 1 Jul 20 06:12 d1
brw-r----- 1 root sys 85, 10 Jul 20 06:12 d10
brw-r----- 1 root sys 85, 11 Jul 20 06:12 d11
brw-r----- 1 root sys 85, 16 Jul 20 06:12 d16
brw-r----- 1 root sys 85, 6 Jul 19 16:40 d6
Create a swap and a dump fs:
1. create partition 3 and 4: (using the number and lable command in format)
partition> p
Current partition table (unnamed):
Total disk cylinders available: 38343 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 2241 - 4481 8.00GB (2241/0/0) 16780608
1 swap wu 0 - 2240 8.00GB (2241/0/0) 16780608
2 backup wm 0 - 38342 136.91GB (38343/0/0) 287112384
3 unassigned wm 6732 - 22415 56.00GB (15684/0/0) 117441792
4 unassigned wm 22416 - 26897 16.00GB (4482/0/0) 33561216
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 4482 - 6722 8.00GB (2241/0/0) 16780608
7 unassigned wm 6723 - 6731 32.91MB (9/0/0) 67392
2. Create the meta device d3 and d4
/usr/sbin/metainit -f d3 1 1 c0t0d0s3
/usr/sbin/metainit -f d4 1 1 c0t0d0s4
3. check:
metastat
d4: Concat/Stripe
Size: 33561216 blocks (16 GB)
Stripe 0:
Device Start Block Dbase Reloc
c0t0d0s4 0 No Yes
d3: Concat/Stripe
Size: 117441792 blocks (56 GB)
Stripe 0:
Device Start Block Dbase Reloc
c0t0d0s3 0 No Yes
Device Relocation Information:
Device Reloc Device ID
c0t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7400LPR
-----------------------------------------------------------------------------------------
ROOT@server1:/root # newfs -N -v /dev/md/rdsk/d4
mkfs -F ufs -o N /dev/md/rdsk/d4 33561216 -1 -1 8192 1024 155 1 167 8192 t 0 -1 8 16 n
Warning: 3456 sector(s) in last cylinder unallocated
/dev/md/rdsk/d4: 33561216 sectors in 5463 cylinders of 48 tracks, 128 sectors
16387.3MB in 342 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
Warning: 0 sector(s) in last cylinder unallocated
/dev/md/rdsk/d4: 33561216 sectors in 4482 cylinders of 8 tracks, 936 sectors
16387.3MB in 321 cyl groups (14 c/g, 51.19MB/g, 6208 i/g)
Error determining alternate superblock locations
-------------------------------------------------------------------------------------------
ROOT@server1:/root # newfs -v /dev/md/rdsk/d4
newfs: construct a new file system /dev/md/rdsk/d4: (y/n)? y
mkfs -F ufs /dev/md/rdsk/d4 33561216 -1 -1 8192 1024 155 1 167 8192 t 0 -1 8 16 n
Warning: 3456 sector(s) in last cylinder unallocated
/dev/md/rdsk/d4: 33561216 sectors in 5463 cylinders of 48 tracks, 128 sectors
16387.3MB in 342 cyl groups (16 c/g, 48.00MB/g, 5824 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 98464, 196896, 295328, 393760, 492192, 590624, 689056, 787488, 885920,
Initializing cylinder groups:
......
super-block backups for last 10 cylinder groups at:
32638496, 32736928, 32835360, 32933792, 33032224, 33130656, 33229088,
33327520, 33425952, 33524384
copy rootdisk's vtoc to second disk
ROOT@server1:/root # prtvtoc -h /dev/dsk/c0t0d0s2 fmthard -s - /dev/rdsk/c2t0d0s2
create the replica of metadb c2t0d0 disk on slice 7
ROOT@server1:/root # metadb -a -c 3 c2t0d0s7
ROOT@server1:/root # metadb
flags first blk block count
a m p luo 16 8192 /dev/dsk/c0t0d0s7
a p luo 8208 8192 /dev/dsk/c0t0d0s7
a p luo 16400 8192 /dev/dsk/c0t0d0s7
a u 16 8192 /dev/dsk/c2t0d0s7
a u 8208 8192 /dev/dsk/c2t0d0s7
a u 16400 8192 /dev/dsk/c2t0d0s7
2. Mirror existing meta devices:
a. create submirror meta devices
metainit -f d26 1 1 c2t0d0s6
metainit -f d21 1 1 c2t0d0s1
metainit -f d20 1 1 c2t0d0s0
b. metastat shows current meta device d1 has only one submirror md d11 -
ROOT@server1:/root # metastat d1
d1: Mirror
Submirror 0: d11
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16780608 blocks (8.0 GB)
d11: Submirror of d1
State: Okay
Size: 16780608 blocks (8.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s1 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c0t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7400LPR
c. attach one submirror md - d21
ROOT@server1:/root # metattach d1 d21
d1: submirror d21 is attached
d. metastat shows d21 is attached to d1 as a submirror.
now, d1 has two submirror mds d11 and 21
ROOT@server1:/root # metastat d1
d1: Mirror
Submirror 0: d11
State: Okay
Submirror 1: d21
State: Resyncing
Resync in progress: 0 % done
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16780608 blocks (8.0 GB)
d11: Submirror of d1
State: Okay
Size: 16780608 blocks (8.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s1 0 No Okay Yes
d21: Submirror of d1
State: Resyncing
Size: 16780608 blocks (8.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c2t0d0s1 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c0t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7400LPR
c2t0d0 Yes id1,sd@SFUJITSU_MAW3147NC_______DAF4P7400M19
Create a md mirror from slice - d13 and d23 are submirrors of d3
a. create md from slices
metainit -f d13 1 1 c0t0d0s3
metainit -f d23 1 1 c0t1d0s3
b. link d13 as the first submirror of d3
metainit d3 -m d13
c. link d23 as submirror of d3
metattach d3 d23
Labels:
Solaris 10 Administration
Fix Solaris 10 SMF Errors in 1 Minutes
SMF is one of the new features in Solaris 10, it replaces the old
rc scripts to bring up the system services.
However, SMF errors are very destructive and error messages are
often very misleading. For example, a typo in /etc/vfstab file
will cause svc:/system/filesystem/local:default to fail and stop
the server at single user-mode. When a NIS server isn't reachable,
when booting a Solaris 10 client will stop at single user mode, reporting
"network/service, network/rpc/keyserv" errors.
The quick solution to fix most SMF related errors are:
1. check log files at /var/svc/log/ directory;
2. check /lib/svc/share/README file;
3. put svcs.startd in debug mode and reboot server to review the log.
Two examples.
Example 1: SMF auditd error and its fix.
When boot up a Solaris 10 server, we get this error:
Quick Fix:
Let's put svcs.startd in debug mode:
To make it easy for us to check the log, let's truncate the old log file
Now, reboot the server:
Check log:
# cat /var/svc/log/svc.startd.log
After analyzing the log file, we know the problem is audited service can't start,
because system/console-login service depends on auditd, therefore, the console
service can't start.
Disable auditd service by running "bsmunconv" will solve the problem.
Verify auditd is disabled:
Finally, we need to turn off the svc.startd's debugging mode:
Related directory : /lib/svc/method
Example 2: x4600 boot-archive error due to /etc/vfstab and /kernel/drv file sync errors and its fix:
WARNING - The following files in / differ from the boot archive:
/etc/rtc_config
/etc/path_to_inst
cannot find: /etc/cluster/nodeid: No such file or directory
/etc/devices/devid_cache
cannot find: /etc/devices/mdi_ib_cache: No such file or directory
/kernel/drv/e1000g.conf
The recommended action is to reboot and select "Solaris failsafe"
option from the boot menu. Then follow prompts to update the
boot archive.
To continue booting at your own risk, clear the service:
# svcadm clear system/boot-archive
Sep 4 18:52:03 svc.startd[7]: svc:/system/boot-archive:default: Method "/lib/svc/method/boot-archive" failed with exit status 95.
Sep 4 18:52:03 svc.startd[7]: system/boot-archive:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run
nygserver1 console login: root
Password:
Last login: Thu Mar 5 11:22:48 on console
Access to this computer is prohibited unless authorised
Accessing programs or data unrelated to your job is prohibited
If you are not authorised, disconnect now.
You have mail.
ROOT@nygserver1:/root # svcs -xv
svc:/system/filesystem/local:default (local file system mounts)
State: maintenance since Thu 05 Mar 2009 01:48:54 PM EST
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
See: http://sun.com/msg/SMF-8000-KS
See: /var/svc/log/system-filesystem-local:default.log
Impact: 32 dependent services are not running:
svc:/application/psncollector:default
svc:/system/sysidtool:net
svc:/network/rpc/bind:default
svc:/network/nfs/nlockmgr:default
svc:/network/nfs/status:default
svc:/network/nis/client:default
svc:/network/nfs/cbd:default
svc:/network/nfs/mapid:default
svc:/application/sthwreg:default
svc:/application/stosreg:default
svc:/system/sysidtool:system
svc:/platform/i86pc/kdmconfig:default
svc:/milestone/multi-user:default
svc:/milestone/multi-user-server:default
svc:/system/basicreg:default
svc:/system/zones:default
svc:/application/xyzoneglobal:default
svc:/application/xyperfmv2-client:default
svc:/application/ipmievd:default
svc:/system/vxvm/vxvm-recover:default
svc:/system/filesystem/autofs:default
svc:/system/system-log:default
svc:/network/ssh:default
svc:/system/dumpadm:default
svc:/system/fmd:default
svc:/network/inetd:default
svc:/system/filesystem/volfs:default
svc:/system/cron:default
svc:/system/vxfs/vxfsldlic:default
svc:/application/font/fc-cache:default
svc:/system/sac:default
svc:/application/opengl/ogl-select:default
svc:/network/rpc/smserver:default (removable media management)
State: uninitialized since Thu 05 Mar 2009 01:48:32 PM EST
Reason: Restarter svc:/network/inetd:default is not running.
See: http://sun.com/msg/SMF-8000-5H
See: man -M /usr/share/man -s 1M rpc.smserverd
Impact: 1 dependent service is not running:
svc:/system/filesystem/volfs:default
ROOT@nygserver1:/root # svcadm clear /system/filesystem/local
ROOT@nygserver1:/root # svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 1
Mar 5 12:52:33 svc.startd[7]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.
Mar 5 12:52:33 svc.startd[7]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
ROOT@nygserver1:/root # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c3t0d0s0 8266719 2517305 5666747 31% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 65174120 652 65173468 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/usr/lib/libc/libc_hwcap2.so.1
8266719 2517305 5666747 31% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 65173468 0 65173468 0% /tmp
swap 65173476 8 65173468 1% /var/run
swap 65173468 0 65173468 0% /dev/vx/dmp
swap 65173468 0 65173468 0% /dev/vx/rdmp
/dev/dsk/c3t0d0s6 1019856 857004 101661 90% /zones
/dev/vx/dsk/server1dg/server1_export_home
2560000 17716 2383398 1% /export/home
/dev/dsk/c3t0d0s4 24792158 24601 24519636 1% /var/crash/nygserver1
/dev/vx/dsk/server1dg/server1_export_home_sitescope
537600 17218 487866 4% /export/home/sitescope
/dev/vx/dsk/server1dg/server1_data
135168 2480 124695 2% /zones/fs/server1/data
/dev/vx/dsk/server1dg/server1_log
134144 1762 124115 2% /zones/fs/server1/log
/dev/vx/dsk/server1dg/server1_data_cvs
2560000 612351 1836098 26% /zones/fs/server1/data/cvs
/dev/vx/dsk/server1dg/server1_log_appserv
7168000 1234473 5563108 19% /zones/fs/server1/log/appserv
/dev/vx/dsk/server1dg/server1_data_d4icache
46727168 7466357 36807507 17% /zones/fs/server1/data/d4icache
/dev/vx/dsk/server1dg/server1_log_dynamo
7168000 451354 6296902 7% /zones/fs/server1/log/dynamo
/dev/vx/dsk/server1dg/server1_data_skore
12288000 5325560 6547595 45% /zones/fs/server1/data/skore
/dev/vx/dsk/server1dg/server1_data_appserv
20480000 13916850 6163060 70% /zones/fs/server1/data/appserv
/dev/vx/dsk/server1dg/server1_data_dynamo
10240000 6478927 3535135 65% /zones/fs/server1/data/dynamo
/dev/vx/dsk/server1dg/server1_data_d4icache_wip
8192000 4060477 3884874 52% /zones/fs/server1/data/d4icache/wip
ROOT@nygserver1:/root # svcs -x
svc:/system/filesystem/local:default (local file system mounts)
State: maintenance since Thu 05 Mar 2009 12:52:33 PM EST
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
See: http://sun.com/msg/SMF-8000-KS
See: /var/svc/log/system-filesystem-local:default.log
Impact: 32 dependent services are not running. (Use -v for list.)
svc:/network/rpc/smserver:default (removable media management)
State: uninitialized since Thu 05 Mar 2009 01:48:32 PM EST
Reason: Restarter svc:/network/inetd:default is not running.
See: http://sun.com/msg/SMF-8000-5H
See: rpc.smserverd(1M)
Impact: 1 dependent service is not running. (Use -v for list.)
******** fix *************
1. more /var/svc/log/system-filesystem-local:default.log
2. compare /etc/vfstab and vxprint -g dg -v see if there are fs in vfstab don't have volume;
(sometimes, people remove fs but don't update /etc/vfstab file)
3. once clear vfstab file, do this and the control -D to exit maintenance mode, server will be normal.
svcadm clear /system/filesystem/local
ROOT@nygserver1:/root # more /var/svc/log/system-filesystem-local:default.log
[ Mar 5 12:35:11 Method "start" exited with status 95 ]
[ Mar 5 13:48:48 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_l
og_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_chiit1: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_amweb: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_l
og_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_dynamo is a
lready mounted, /zones/fs/server1/log/dynamo is busy,
allowable number of mount points exceeded
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_appserv is
already mounted, /zones/fs/server1/log/appserv is busy,
allowable number of mount points exceeded
WARNING: /sbin/mountall -l failed: exit status 1
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 5 13:48:54 Method "start" exited with status 95 ]
[ Mar 5 12:52:33 Leaving maintenance because clear requested. ]
[ Mar 5 12:52:33 Enabled. ]
[ Mar 5 12:52:33 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_chiit1: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/kvx/dsk/server1dg/server1_d
ata_amweb: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_l
og_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_l
og_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
WARNING: /sbin/mountall -l failed: exit status 1
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 5 12:52:33 Method "start" exited with status 95 ]
cliff note:
Please make sure when you make a change in the filesystem, such as remove a filesystem - make sure you comment out the line in the /etc/vfstab file, solaris 10 won't boot if it can't mount all the entries in /etc/vfstab.
The following fs were listed in /etc/vfstab file but Volumes don't exist in veritas diskgroup...
#/dev/vx/dsk/server1dg/server1_data_apps_pinetdv
#/dev/vx/dsk/server1dg/server1_data_sitescope
#/dev/vx/dsk/server1dg/server1_log_sitescope
#/dev/vx/dsk/server1dg/server1_data_amweb
#/dev/vx/dsk/server1dg/server1_data_chiit1
#/dev/vx/dsk/server1dg/server1_log_sitescope
ROOT@nygserver1:/root # vxprint -g server1dg -v
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v server1_data fsgen ENABLED 270336 - ACTIVE - -
v server1_data_appserv fsgen ENABLED 40960000 - ACTIVE - -
v server1_data_cvs fsgen ENABLED 5120000 - ACTIVE - -
v server1_data_dynamo fsgen ENABLED 20480000 - ACTIVE - -
v server1_data_d4icache fsgen ENABLED 93454336 - ACTIVE - -
v server1_data_d4icache_wip fsgen ENABLED 16384000 - ACTIVE - -
v server1_data_skore fsgen ENABLED 24576000 - ACTIVE - -
v server1_export_home fsgen ENABLED 5120000 - ACTIVE - -
v server1_export_home_sitescope fsgen ENABLED 1075200 - ACTIVE - -
v server1_export_home1 fsgen ENABLED 20971520 - ACTIVE - -
v server1_log fsgen ENABLED 268288 - ACTIVE - -
v server1_log_appserv fsgen ENABLED 14336000 - ACTIVE - -
v server1_log_dynamo fsgen ENABLED 14336000 - ACTIVE - -
v server1dg_usr_local fsgen ENABLED 2097152 - ACTIVE - -
v server1dg_zones_export_home fsgen ENABLED 4194304 - ACTIVE - -
v server1dg_zones_fs fsgen ENABLED 4194304 - ACTIVE - -
v server1dg_zones_hosts fsgen ENABLED 4194304 - ACTIVE - -
***************** Fix - duplicated entries in /etc/vfstab - remove extra ones ****************
[ Mar 19 18:24:31 Stopping because service disabled. ]
[ Mar 19 18:24:31 Executing stop method (null) ]
[ Mar 19 18:50:17 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_appserv is
already mounted, /zones/fs/server1/log/appserv is busy,
allowable number of mount points exceeded
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_dynamo is a
lready mounted, /zones/fs/server1/log/dynamo is busy,
allowable number of mount points exceeded
WARNING: /sbin/mountall -l failed: exit status 1
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 19 18:50:24 Method "start" exited with status 95 ]
[ Mar 19 19:02:30 Leaving maintenance because clear requested. ]
[ Mar 19 19:02:30 Enabled. ]
[ Mar 19 19:02:30 Executing start method ("/lib/svc/method/fs-local") ]
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 19 19:02:31 Method "start" exited with status 0 ]
[ Mar 19 21:40:09 Stopping because service disabled. ]
[ Mar 19 21:40:09 Executing stop method (null) ]
[ Mar 20 08:54:32 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_appserv is
already mounted, /zones/fs/server1/log/appserv is busy,
allowable number of mount points exceeded
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_dynamo is a
lready mounted, /zones/fs/server1/log/dynamo is busy,
allowable number of mount points exceeded
WARNING: /sbin/mountall -l failed: exit status 1
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 20 08:54:39 Method "start" exited with status 95 ]
rc scripts to bring up the system services.
However, SMF errors are very destructive and error messages are
often very misleading. For example, a typo in /etc/vfstab file
will cause svc:/system/filesystem/local:default to fail and stop
the server at single user-mode. When a NIS server isn't reachable,
when booting a Solaris 10 client will stop at single user mode, reporting
"network/service, network/rpc/keyserv" errors.
The quick solution to fix most SMF related errors are:
1. check log files at /var/svc/log/ directory;
2. check /lib/svc/share/README file;
3. put svcs.startd in debug mode and reboot server to review the log.
Two examples.
Example 1: SMF auditd error and its fix.
When boot up a Solaris 10 server, we get this error:
Booting to milestone "svc:/milestone/multi-user:default"
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information)
Console login service(s) cannot run
svc:/system/auditd:Method "/lib/svc/method/svc-auditd" failed with exit
status 98
[system/auditd:default failed (see 'svcs -x' for details)]
Quick Fix:
Let's put svcs.startd in debug mode:
# svccfg
svc:> select svc:/system/svc/restarter:default
...default> addpg options application
...default> setprop options/logging = astring: debug
svc:/system/svc/restarter:default> quit
# svcprop -p options/logging svc:/system/svc/restarter:default
debug
To make it easy for us to check the log, let's truncate the old log file
# cp /var/svc/log/svc.startd.log /var/log/svc/startd.log.bak
# echo > /var/svc/log/svc/startd.log
Now, reboot the server:
# init 6
Check log:
# cat /var/svc/log/svc.startd.log
After analyzing the log file, we know the problem is audited service can't start,
because system/console-login service depends on auditd, therefore, the console
service can't start.
Disable auditd service by running "bsmunconv" will solve the problem.
root@sun1:/root>/etc/security/bsmunconv
bsmunconv: ERROR: this script should be run at run level S.
Are you sure you want to continue? [y/n] y
This script is used to disable the Basic Security Module (BSM).
Shall we continue the reversion to a non-BSM system now? [y/n] y
bsmunconv: INFO: removing c2audit:audit_load from /etc/system.
bsmunconv: INFO: stopping the cron daemon.
The Basic Security Module has been disabled.
Reboot this system now to come up without BSM.
Verify auditd is disabled:
root@sun1:/var/lib>svcs -l auditd
fmri svc:/system/auditd:default
name Solaris audit daemon
enabled false
state disabled
next_state none
state_time Thu Oct 01 22:10:36 2009
restarter svc:/system/svc/restarter:default
dependency require_all/none svc:/system/filesystem/local (online)
dependency require_all/none svc:/milestone/name-services (online)
dependency require_all/none svc:/system/system-log (online)
Finally, we need to turn off the svc.startd's debugging mode:
#svccfg
svc:> select restarter
svc:/system/svc/restarter> list
:properties
default
svc:/system/svc/restarter> listpg
options application
general framework
tm_common_name template
tm_man_svc_startd template
svc:/system/svc/restarter> delpg options
svc:/system/svc/restarter> listprop
general framework
general/entity_stability astring Unstable
general/single_instance boolean true
tm_common_name template
tm_common_name/C ustring "master restarter"
tm_man_svc_startd template
tm_man_svc_startd/manpath astring /usr/share/man
tm_man_svc_startd/section astring 1M
tm_man_svc_startd/title astring svc.startd
svc:/system/svc/restarter> end
Related directory : /lib/svc/method
Example 2: x4600 boot-archive error due to /etc/vfstab and /kernel/drv file sync errors and its fix:
WARNING - The following files in / differ from the boot archive:
/etc/rtc_config
/etc/path_to_inst
cannot find: /etc/cluster/nodeid: No such file or directory
/etc/devices/devid_cache
cannot find: /etc/devices/mdi_ib_cache: No such file or directory
/kernel/drv/e1000g.conf
The recommended action is to reboot and select "Solaris failsafe"
option from the boot menu. Then follow prompts to update the
boot archive.
To continue booting at your own risk, clear the service:
# svcadm clear system/boot-archive
Sep 4 18:52:03 svc.startd[7]: svc:/system/boot-archive:default: Method "/lib/svc/method/boot-archive" failed with exit status 95.
Sep 4 18:52:03 svc.startd[7]: system/boot-archive:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run
nygserver1 console login: root
Password:
Last login: Thu Mar 5 11:22:48 on console
Access to this computer is prohibited unless authorised
Accessing programs or data unrelated to your job is prohibited
If you are not authorised, disconnect now.
You have mail.
ROOT@nygserver1:/root # svcs -xv
svc:/system/filesystem/local:default (local file system mounts)
State: maintenance since Thu 05 Mar 2009 01:48:54 PM EST
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
See: http://sun.com/msg/SMF-8000-KS
See: /var/svc/log/system-filesystem-local:default.log
Impact: 32 dependent services are not running:
svc:/application/psncollector:default
svc:/system/sysidtool:net
svc:/network/rpc/bind:default
svc:/network/nfs/nlockmgr:default
svc:/network/nfs/status:default
svc:/network/nis/client:default
svc:/network/nfs/cbd:default
svc:/network/nfs/mapid:default
svc:/application/sthwreg:default
svc:/application/stosreg:default
svc:/system/sysidtool:system
svc:/platform/i86pc/kdmconfig:default
svc:/milestone/multi-user:default
svc:/milestone/multi-user-server:default
svc:/system/basicreg:default
svc:/system/zones:default
svc:/application/xyzoneglobal:default
svc:/application/xyperfmv2-client:default
svc:/application/ipmievd:default
svc:/system/vxvm/vxvm-recover:default
svc:/system/filesystem/autofs:default
svc:/system/system-log:default
svc:/network/ssh:default
svc:/system/dumpadm:default
svc:/system/fmd:default
svc:/network/inetd:default
svc:/system/filesystem/volfs:default
svc:/system/cron:default
svc:/system/vxfs/vxfsldlic:default
svc:/application/font/fc-cache:default
svc:/system/sac:default
svc:/application/opengl/ogl-select:default
svc:/network/rpc/smserver:default (removable media management)
State: uninitialized since Thu 05 Mar 2009 01:48:32 PM EST
Reason: Restarter svc:/network/inetd:default is not running.
See: http://sun.com/msg/SMF-8000-5H
See: man -M /usr/share/man -s 1M rpc.smserverd
Impact: 1 dependent service is not running:
svc:/system/filesystem/volfs:default
ROOT@nygserver1:/root # svcadm clear /system/filesystem/local
ROOT@nygserver1:/root # svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 1
Mar 5 12:52:33 svc.startd[7]: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status 95.
Mar 5 12:52:33 svc.startd[7]: system/filesystem/local:default failed fatally: transitioned to maintenance (see 'svcs -xv' for details)
ROOT@nygserver1:/root # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c3t0d0s0 8266719 2517305 5666747 31% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 65174120 652 65173468 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
/usr/lib/libc/libc_hwcap2.so.1
8266719 2517305 5666747 31% /lib/libc.so.1
fd 0 0 0 0% /dev/fd
swap 65173468 0 65173468 0% /tmp
swap 65173476 8 65173468 1% /var/run
swap 65173468 0 65173468 0% /dev/vx/dmp
swap 65173468 0 65173468 0% /dev/vx/rdmp
/dev/dsk/c3t0d0s6 1019856 857004 101661 90% /zones
/dev/vx/dsk/server1dg/server1_export_home
2560000 17716 2383398 1% /export/home
/dev/dsk/c3t0d0s4 24792158 24601 24519636 1% /var/crash/nygserver1
/dev/vx/dsk/server1dg/server1_export_home_sitescope
537600 17218 487866 4% /export/home/sitescope
/dev/vx/dsk/server1dg/server1_data
135168 2480 124695 2% /zones/fs/server1/data
/dev/vx/dsk/server1dg/server1_log
134144 1762 124115 2% /zones/fs/server1/log
/dev/vx/dsk/server1dg/server1_data_cvs
2560000 612351 1836098 26% /zones/fs/server1/data/cvs
/dev/vx/dsk/server1dg/server1_log_appserv
7168000 1234473 5563108 19% /zones/fs/server1/log/appserv
/dev/vx/dsk/server1dg/server1_data_d4icache
46727168 7466357 36807507 17% /zones/fs/server1/data/d4icache
/dev/vx/dsk/server1dg/server1_log_dynamo
7168000 451354 6296902 7% /zones/fs/server1/log/dynamo
/dev/vx/dsk/server1dg/server1_data_skore
12288000 5325560 6547595 45% /zones/fs/server1/data/skore
/dev/vx/dsk/server1dg/server1_data_appserv
20480000 13916850 6163060 70% /zones/fs/server1/data/appserv
/dev/vx/dsk/server1dg/server1_data_dynamo
10240000 6478927 3535135 65% /zones/fs/server1/data/dynamo
/dev/vx/dsk/server1dg/server1_data_d4icache_wip
8192000 4060477 3884874 52% /zones/fs/server1/data/d4icache/wip
ROOT@nygserver1:/root # svcs -x
svc:/system/filesystem/local:default (local file system mounts)
State: maintenance since Thu 05 Mar 2009 12:52:33 PM EST
Reason: Start method exited with $SMF_EXIT_ERR_FATAL.
See: http://sun.com/msg/SMF-8000-KS
See: /var/svc/log/system-filesystem-local:default.log
Impact: 32 dependent services are not running. (Use -v for list.)
svc:/network/rpc/smserver:default (removable media management)
State: uninitialized since Thu 05 Mar 2009 01:48:32 PM EST
Reason: Restarter svc:/network/inetd:default is not running.
See: http://sun.com/msg/SMF-8000-5H
See: rpc.smserverd(1M)
Impact: 1 dependent service is not running. (Use -v for list.)
******** fix *************
1. more /var/svc/log/system-filesystem-local:default.log
2. compare /etc/vfstab and vxprint -g dg -v see if there are fs in vfstab don't have volume;
(sometimes, people remove fs but don't update /etc/vfstab file)
3. once clear vfstab file, do this and the control -D to exit maintenance mode, server will be normal.
svcadm clear /system/filesystem/local
ROOT@nygserver1:/root # more /var/svc/log/system-filesystem-local:default.log
[ Mar 5 12:35:11 Method "start" exited with status 95 ]
[ Mar 5 13:48:48 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_l
og_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_chiit1: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_amweb: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_l
og_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_dynamo is a
lready mounted, /zones/fs/server1/log/dynamo is busy,
allowable number of mount points exceeded
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_appserv is
already mounted, /zones/fs/server1/log/appserv is busy,
allowable number of mount points exceeded
WARNING: /sbin/mountall -l failed: exit status 1
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 5 13:48:54 Method "start" exited with status 95 ]
[ Mar 5 12:52:33 Leaving maintenance because clear requested. ]
[ Mar 5 12:52:33 Enabled. ]
[ Mar 5 12:52:33 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_chiit1: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/kvx/dsk/server1dg/server1_d
ata_amweb: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_d
ata_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_l
og_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
UX:vxfs mount: ERROR: V-3-20002: Cannot access /dev/vx/dsk/server1dg/server1_l
og_sitescope: No such file or directory
UX:vxfs mount: ERROR: V-3-24996: Unable to get disk layout version
WARNING: /sbin/mountall -l failed: exit status 1
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 5 12:52:33 Method "start" exited with status 95 ]
cliff note:
Please make sure when you make a change in the filesystem, such as remove a filesystem - make sure you comment out the line in the /etc/vfstab file, solaris 10 won't boot if it can't mount all the entries in /etc/vfstab.
The following fs were listed in /etc/vfstab file but Volumes don't exist in veritas diskgroup...
#/dev/vx/dsk/server1dg/server1_data_apps_pinetdv
#/dev/vx/dsk/server1dg/server1_data_sitescope
#/dev/vx/dsk/server1dg/server1_log_sitescope
#/dev/vx/dsk/server1dg/server1_data_amweb
#/dev/vx/dsk/server1dg/server1_data_chiit1
#/dev/vx/dsk/server1dg/server1_log_sitescope
ROOT@nygserver1:/root # vxprint -g server1dg -v
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
v server1_data fsgen ENABLED 270336 - ACTIVE - -
v server1_data_appserv fsgen ENABLED 40960000 - ACTIVE - -
v server1_data_cvs fsgen ENABLED 5120000 - ACTIVE - -
v server1_data_dynamo fsgen ENABLED 20480000 - ACTIVE - -
v server1_data_d4icache fsgen ENABLED 93454336 - ACTIVE - -
v server1_data_d4icache_wip fsgen ENABLED 16384000 - ACTIVE - -
v server1_data_skore fsgen ENABLED 24576000 - ACTIVE - -
v server1_export_home fsgen ENABLED 5120000 - ACTIVE - -
v server1_export_home_sitescope fsgen ENABLED 1075200 - ACTIVE - -
v server1_export_home1 fsgen ENABLED 20971520 - ACTIVE - -
v server1_log fsgen ENABLED 268288 - ACTIVE - -
v server1_log_appserv fsgen ENABLED 14336000 - ACTIVE - -
v server1_log_dynamo fsgen ENABLED 14336000 - ACTIVE - -
v server1dg_usr_local fsgen ENABLED 2097152 - ACTIVE - -
v server1dg_zones_export_home fsgen ENABLED 4194304 - ACTIVE - -
v server1dg_zones_fs fsgen ENABLED 4194304 - ACTIVE - -
v server1dg_zones_hosts fsgen ENABLED 4194304 - ACTIVE - -
***************** Fix - duplicated entries in /etc/vfstab - remove extra ones ****************
[ Mar 19 18:24:31 Stopping because service disabled. ]
[ Mar 19 18:24:31 Executing stop method (null) ]
[ Mar 19 18:50:17 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_appserv is
already mounted, /zones/fs/server1/log/appserv is busy,
allowable number of mount points exceeded
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_dynamo is a
lready mounted, /zones/fs/server1/log/dynamo is busy,
allowable number of mount points exceeded
WARNING: /sbin/mountall -l failed: exit status 1
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 19 18:50:24 Method "start" exited with status 95 ]
[ Mar 19 19:02:30 Leaving maintenance because clear requested. ]
[ Mar 19 19:02:30 Enabled. ]
[ Mar 19 19:02:30 Executing start method ("/lib/svc/method/fs-local") ]
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 19 19:02:31 Method "start" exited with status 0 ]
[ Mar 19 21:40:09 Stopping because service disabled. ]
[ Mar 19 21:40:09 Executing stop method (null) ]
[ Mar 20 08:54:32 Executing start method ("/lib/svc/method/fs-local") ]
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_appserv is
already mounted, /zones/fs/server1/log/appserv is busy,
allowable number of mount points exceeded
UX:vxfs mount: ERROR: V-3-21264: /dev/vx/dsk/server1dg/server1_log_dynamo is a
lready mounted, /zones/fs/server1/log/dynamo is busy,
allowable number of mount points exceeded
WARNING: /sbin/mountall -l failed: exit status 1
bootadm: no matching entry found: Solaris_reboot_transient
[ Mar 20 08:54:39 Method "start" exited with status 95 ]
Labels:
Solaris 10 Administration
Troubleshoot Solaris JumpStart
(Thanks google for putting this page as top 3 searching results!)

Solaris 10 Jumpstart Problems are typically in the following areas:
1. Boot Problems.
2. Identification Problems.
3. Configuration and Installation Problems.
4. Misc problems during the JumpStart.
Details:
1. Boot Problems
Boot process problems are normally associated with Layer 3 protocols RARP, TFTP or BOOTPARAMS configurations.
a. Resolving RARP Problems
If a jumpstart repeatedly issues the following message and failed during the boot process:
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
....
In general, this is because the JumpStart client can't obtain RARP service from a boot server.
Check the following:
1. cable or other physical connection problem? does the client use the right interface? (Check OBP NIC aliase, etc.)
2. is in.rarpd daemon running on the boot server?
3. does /etc/ethers and /etc/hosts or NIS have the correct entry for client's MAC,IP,hostname?
b. Resolving TFTP problems
If the client shows the "Timeout waiting for ARP/RARP packet" ONLY once and stops,
it indicates the JumpStart server may not be able to obtain TFTP services from a boot server.
Usually, this errory message indicates that there is no entry for the client in
/tftpboot/ directory (inetboot.hex_ip).
Solution: Remove the client and re-add it.
#/export/install/Solaris_10/Tools/rm_install_client client1
#/export/install/Solaris_10/Tools/add_install_client -c server1:/export/config \
-p server1:/export/config client1 sun4u
other possible causes:
incorrect platform group argument to the add_install_client script was used.
the boot server is not configured to allow the in.tftpd daemon to run on demand.
#inetadm | grep tftp
make sure tftp is enabled in inetd, tftp uses udp/69 and bootp uses udp/67
#inetconv
#inetadm | grep ftp
c. Resolving BOOTPARAMS problems
If the client passes RARP and TFTP, but stops booting after displaying numeric value,
such as 23e00, the client may not be able to obtain BOOTPARAMS information from boot server.
Solution:
c1. Check if the boot server's /etc/bootparams file has an entry for the client
c2. Check if the daemon rpc.bootparamd is running on the server.
If not,
Re-run add_install_client script to add client in /etc/bootparams file and restart
rpc.bootparams daemon.
To manually start bootparams (optional)
#svcadm enable network/rpc/bootparams:default
#svcs | grep bootparams
2. Troubleshoot Identification Problems
Problems in the JumpStart client identification process usually relate to errors in
sysidcfg file (e.g. no id info) or from a name service. If client cannot obtain a
response from a server for any identification item, the client interrupts the auto
identification process and asks from information.
check sysidcfg file if client stops and asks for any of the following info:
IPv6 networking
netmask
IP address of the default router
secuirty policy
name service
timezone
system locale
time server info
root password
If the JumpStart server uses NIS for some of above info, please check NIS.
Resolving Name Service Problems
If you use a name service, and the JumpStart client interrupts the identification process to obtain identification items other than the following, check the corresponding map or table information in the name service, and correct the problem you find:
* Will the client implement IPv6 protocols?
* What is the IP address of the default router?
* What security policy will the client implement?
* What is the root log in password?
The previous items can only be provided using the sysidcfg file.
You can use the sysidcfg file to provide information that a name service could otherwise provide. You must verify the content of the sysidcfg file or any information that it provides. Information provided in the sysidcfg file overrides information in name services.
3. Troubleshoot Configuration Problems
Configuration problems usually relate to rules and profile files.
If admin updated rules file and didn't to run check script to update rules.ok, client
will returns error:
"checking rules.ok file...
Warning: Could not find matching rule in rules.ok "
To fix, just verify rules file has an entry matches the client and re-run check script
to recreate rules.ok file.
(rules.ok file contains rules file and version info plus checksum.)
If profile contains configuration error (e.g. wrong slice in filesys field), clients
will show the error.
For example,
"ERROR: Field 2 - Disk is not valid on this sytem (c0t4d0s0)"
Verify the profile and enter the correct value will fix the problem.
4. Troubleshoot Installation Problems.
Installation problems usually relate to NFS issue.
If client passes RARP and TFTP, but panics
"panic - boot : Could not mount filesystem
Program terminated
ok"
this shows client (inetboot program) cannot mount the root (/) file system defined in /etc/bootparams file.
Solution:
verify /etc/dfs/dfstab on the boot has entries to share required directories;
check /etc/bootparams file to ensure entry is correct for the client, path for root is right.
check nfs is running on the installation server, if not manually start it.
#svcadm enable network/nfs/server:default
For begin and finish scripts, during installation,
check log files /tmp/begin.log, finish.log, install_log, and /var/sadm/system/sysidtool.log.
After installation, check
/var/sadm/system/logs/begin.log, finish.log, install.log and sysidtool.log
/tftpboot: Contains the boot image for the JumpStart software client
/etc/ethers : Matches client Ethernet address
/etc/dfs/dfstab : Provides configuration for network shared directories
/etc/hosts : Associates names with IP addresses
/etc/bootparams : Contains entries that network clients use for booting
/export/config/client/sysidcfg : Contains IPV6, defaultrouter, security, rootpw
rules : associates client host with profile

Solaris 10 Jumpstart Problems are typically in the following areas:
1. Boot Problems.
2. Identification Problems.
3. Configuration and Installation Problems.
4. Misc problems during the JumpStart.
Details:
1. Boot Problems
Boot process problems are normally associated with Layer 3 protocols RARP, TFTP or BOOTPARAMS configurations.
a. Resolving RARP Problems
If a jumpstart repeatedly issues the following message and failed during the boot process:
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
"Timeout waiting for ARP/RARP packet"
....
In general, this is because the JumpStart client can't obtain RARP service from a boot server.
Check the following:
1. cable or other physical connection problem? does the client use the right interface? (Check OBP NIC aliase, etc.)
2. is in.rarpd daemon running on the boot server?
3. does /etc/ethers and /etc/hosts or NIS have the correct entry for client's MAC,IP,hostname?
b. Resolving TFTP problems
If the client shows the "Timeout waiting for ARP/RARP packet" ONLY once and stops,
it indicates the JumpStart server may not be able to obtain TFTP services from a boot server.
Usually, this errory message indicates that there is no entry for the client in
/tftpboot/ directory (inetboot.hex_ip).
Solution: Remove the client and re-add it.
#/export/install/Solaris_10/Tools/rm_install_client client1
#/export/install/Solaris_10/Tools/add_install_client -c server1:/export/config \
-p server1:/export/config client1 sun4u
other possible causes:
incorrect platform group argument to the add_install_client script was used.
the boot server is not configured to allow the in.tftpd daemon to run on demand.
#inetadm | grep tftp
make sure tftp is enabled in inetd, tftp uses udp/69 and bootp uses udp/67
#inetconv
#inetadm | grep ftp
c. Resolving BOOTPARAMS problems
If the client passes RARP and TFTP, but stops booting after displaying numeric value,
such as 23e00, the client may not be able to obtain BOOTPARAMS information from boot server.
Solution:
c1. Check if the boot server's /etc/bootparams file has an entry for the client
c2. Check if the daemon rpc.bootparamd is running on the server.
If not,
Re-run add_install_client script to add client in /etc/bootparams file and restart
rpc.bootparams daemon.
To manually start bootparams (optional)
#svcadm enable network/rpc/bootparams:default
#svcs | grep bootparams
2. Troubleshoot Identification Problems
Problems in the JumpStart client identification process usually relate to errors in
sysidcfg file (e.g. no id info) or from a name service. If client cannot obtain a
response from a server for any identification item, the client interrupts the auto
identification process and asks from information.
check sysidcfg file if client stops and asks for any of the following info:
IPv6 networking
netmask
IP address of the default router
secuirty policy
name service
timezone
system locale
time server info
root password
If the JumpStart server uses NIS for some of above info, please check NIS.
Resolving Name Service Problems
If you use a name service, and the JumpStart client interrupts the identification process to obtain identification items other than the following, check the corresponding map or table information in the name service, and correct the problem you find:
* Will the client implement IPv6 protocols?
* What is the IP address of the default router?
* What security policy will the client implement?
* What is the root log in password?
The previous items can only be provided using the sysidcfg file.
You can use the sysidcfg file to provide information that a name service could otherwise provide. You must verify the content of the sysidcfg file or any information that it provides. Information provided in the sysidcfg file overrides information in name services.
3. Troubleshoot Configuration Problems
Configuration problems usually relate to rules and profile files.
If admin updated rules file and didn't to run check script to update rules.ok, client
will returns error:
"checking rules.ok file...
Warning: Could not find matching rule in rules.ok "
To fix, just verify rules file has an entry matches the client and re-run check script
to recreate rules.ok file.
(rules.ok file contains rules file and version info plus checksum.)
If profile contains configuration error (e.g. wrong slice in filesys field), clients
will show the error.
For example,
"ERROR: Field 2 - Disk is not valid on this sytem (c0t4d0s0)"
Verify the profile and enter the correct value will fix the problem.
4. Troubleshoot Installation Problems.
Installation problems usually relate to NFS issue.
If client passes RARP and TFTP, but panics
"panic - boot : Could not mount filesystem
Program terminated
ok"
this shows client (inetboot program) cannot mount the root (/) file system defined in /etc/bootparams file.
Solution:
verify /etc/dfs/dfstab on the boot has entries to share required directories;
check /etc/bootparams file to ensure entry is correct for the client, path for root is right.
check nfs is running on the installation server, if not manually start it.
#svcadm enable network/nfs/server:default
For begin and finish scripts, during installation,
check log files /tmp/begin.log, finish.log, install_log, and /var/sadm/system/sysidtool.log.
After installation, check
/var/sadm/system/logs/begin.log, finish.log, install.log and sysidtool.log
/tftpboot: Contains the boot image for the JumpStart software client
/etc/ethers : Matches client Ethernet address
/etc/dfs/dfstab : Provides configuration for network shared directories
/etc/hosts : Associates names with IP addresses
/etc/bootparams : Contains entries that network clients use for booting
/export/config/client/sysidcfg : Contains IPV6, defaultrouter, security, rootpw
rules : associates client host with profile
Labels:
Solaris 10 Administration
Implement a Basic Solaris JumpStart Server
I. Implementing a JumpStart Server
The following tasks are required to configure a basic JumpStart server:
1. Spool the operating system image.
2. Edit the sysidcfg file.
3. Edit the rules and profile files.
4. Run the check script.
5. Run the add_install_client script.
6. Boot the client.
Note:
For reference of JumpStart Client Boot Sequence, please refer to this article
For reference of Troubleshooting Solaris 10 Jumpstart, please refer to this article
Details:
1. Spool the operating system image.
Allocate 5GB+ space and create main directory and spool os image, e.g.
#mkdir /export/install.
#cd /cdrom/cdrom0/s0/Solaris_10/Tools
#./setup_install_server /export/install
#cd /; eject cdrom
(use add_to_install_server script to add additional image)
2. Edit the sysidcfg file
a sample sysidcfg file:
======================================================================
network_interface=hme0 { primary
protocol_ipv6=no
netmask=255.255.255.0
default_route=192.168.120.1}
security_policy=none
name_sevice=none
timezone=US/Mountain
system_locale=en_US
timeserver=192.168.120.12
root_password=Hxazjdkf3081alsdjf
=======================================================================
About sysidcfg file:
Solaris OS name services cannot provide responses for the IPv6, Kerberos, default route, and root password questions that clients ask. The sysidcfg file offers the only means of automatically supplying these responses to clients. NIS can supply all of the other essential identification information that clients require.
3. Edit the rules and profile files.
#mkdir /export/config
#cd /export/config
#vi rules
sample rules file
========================================
hostname client1 begin_script profile_for_client1 finish_script
========================================
or
========================================
hostname client1 - profile1 -
========================================
#vi profile1
sample profile
========================================
install_type initial_install
system_type standalone
partitioning explicit
filesys c0t0d1s1 2048 swap
filesys c0t0d0s0 8192 /
cluster SUNWCXall
package SUNWman delete
========================================
4. Run check script and creates rules.ok file
#cp /export/install/Solaris_10/Misc/jumpStart_sample/check /export/config
#cd /export/config ; ./check
Validating rules...
Validating profile profile1...
The custom JumpStart configuration is OK
5. Run add_install_client script (The script is located at /export/install/Solaris_10/Tools)
(make sure /etc/hosts and /etc/ethers have new client's hostname,IP and MAC address, or available via NIS)
add_install_client options:
-c : shows the server and path where the rules and profile files are located
-p : shows the server and path where the sysidcfg file is located
the name of the client
the kernel architecture of the client
#add_install_client -c server1:/export/config -p server1:/export/config client 1 sun4u
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
Adding "share -F nfs -o ro,anon=0 /export/install" to /etc/dfs/dfstab
making /tftpboot
enabling tftp in /etc/inetd.conf
starting rarpd
starting bootparamd
starting nfsd's
starting nfs mountd
updating /etc/bootparams
copying inetboot to /tftpboot
(also, check dfstab file make sure /export/config is shared)
6. Boot the client
ok boot net - install nowin
A sample entry of client1 in /etc/bootparams file added by add_install_client script.
==============================================
client1
root=server1:/export/install/Solaris_10/Tools/Boot
install=server1:/export/install
boottype=:in
sysid_config=server1:/export/config
install_config=server1:/export/config
rootopts=:rsize=32768
==============================================
rootopts lists the mount options for the root (/) and the NFS read size (32768).
Misc:
You can use begin script to backup root passwords, etc.
In finish script, touch /a/noautoshutdown is the only method available to auto disable
the power mgmt feature on the JumpStart client.
To setup boot only server:
#
setup_install_server -b /export/install
For troubleshooting JumpStart, please see http://shanit.blogspot.com/2009/08/troubleshoot-solaris-jumpstart.html
An actual JumpStart Process:
Jumpstart on Sun 280R (server1112)
======================================================
{0} ok devalias
disk1 /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@1,0
disk0 /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0
disk /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0
scsi /pci@8,600000/SUNW,qlc@4
lom-console /pci@8,700000/ebus@5/lom-console@1,3083f8
lom /pci@8,700000/ebus@5/lombus@1,3062f8/SUNW,lomv
rsc-console /pci@8,700000/ebus@5/rsc-console@1,3083f8
rsc-control /pci@8,700000/ebus@5/rsc-control@1,3062f8
net /pci@8,700000/network@5,1:
cdrom /pci@8,700000/scsi@6/disk@6,0:f
tape /pci@8,700000/scsi@6,1/tape@4,0
tape1 /pci@8,700000/scsi@6,1/tape@5,0
tape0 /pci@8,700000/scsi@6,1/tape@4,0
beep /pci@8,700000/ebus@5/beep@1,32
floppy /pci@8,700000/ebus@5/floppy
ttyb /pci@8,700000/ebus@5/serial@1,400000:b
ttya /pci@8,700000/ebus@5/serial@1,400000:a
name aliases
{0} ok boot net -v install
Boot device: /pci@8,700000/network@5,1: File and args: -v install
2ae00 Using RARP/BOOTPARAMS...
Internet address is: 10.153.51.173
hostname: server1112
Found 10.153.51.51 @ 8:0:20:e6:80:58
root server: 10.153.51.51 (10.153.51.51)
root directory: /export/install/global/SunOS/products/SunOS/5.8-0202/Solaris_8/Tools/Boot
Size: 338336+89970+75914 Bytes
SunOS Release 5.8 Version Generic_108528-13 64-bit
Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.
Ethernet address = 0:3:ba:16:bc:26
Using default device instance data
mem = 2097152K (0x80000000)
avail mem = 2050998272
root nexus = Sun Fire 280R (2 X UltraSPARC-III+)
pcisch0 at root: SAFARI 0x8 0x700000
pcisch0 is /pci@8,700000
pcisch1 at root: SAFARI 0x8 0x600000
pcisch1 is /pci@8,600000
PCI-device: network@5,1, eri0
eri0 is /pci@8,700000/network@5,1
Requesting Internet address for 0:3:ba:16:bc:26
SUNW,eri0 : 100 Mbps half duplex link up
SUNW,eri0 : 100 Mbps half duplex link up
Found my IP address: a9933ad (10.153.51.173)
hostname: unix-test-server
whoami: no domain name
root on 10.153.51.51:/export/install/global/SunOS/products/SunOS/5.8-0202/Solaris_8/Tools/Boot fstyp
e nfsdyn
PCI-device: ebus@5, ebus0
todds12870 at ebus0: offset 1,300070
todds12870 is /pci@8,700000/ebus@5/rtc@1,300070
mc-us30 at root: SAFARI 0x0 0x400000 ...
mc-us30 is /memory-controller@0,400000
mc-us31 at root: SAFARI 0x1 0x400000 ...
mc-us31 is /memory-controller@1,400000
se0 at ebus0: offset 1,400000
se0 is /pci@8,700000/ebus@5/serial@1,400000ýcpu0: SUNW,UltraSPARC-III+ (upaid 0 impl 0x15 ver 0x22 c
lock 900 MHz)
cpu1: SUNW,UltraSPARC-III+ (upaid 1 impl 0x15 ver 0x22 clock 900 MHz)
su0 at ebus0: offset 1,3062f8
su0 is /pci@8,700000/ebus@5/rsc-control@1,3062f8
su1 at ebus0: offset 1,3083f8
su1 is /pci@8,700000/ebus@5/rsc-console@1,3083f8
Configuring /dev and /devices
pseudo-device: devinfo0
devinfo0 is /pseudo/devinfo@0
/pci@8,700000/scsi@6 (glm0):
glm0 supports power management.
/pci@8,700000/scsi@6 (glm0):
Rev. 7 Symbios 53c875 found.
PCI-device: scsi@6, glm0
glm0 is /pci@8,700000/scsi@6
/pci@8,700000/scsi@6,1 (glm1):
glm1 supports power management.
/pci@8,700000/scsi@6,1 (glm1):
Rev. 7 Symbios 53c875 found.
PCI-device: scsi@6,1, glm1
glm1 is /pci@8,700000/scsi@6,1
sd6 at glm0: target 6 lun 0
sd6 is /pci@8,700000/scsi@6/sd@6,0
PCI-device: SUNW,qlc@4, qlc0
qlc0 is /pci@8,600000/SUNW,qlc@4
pseudo-device: fcp0
fcp0 is /pseudo/fcp@0
fp0 is /pci@8,600000/SUNW,qlc@4/fp@0,0
ecpp0 at ebus0: offset 1,300278
ecpp0 is /pci@8,700000/ebus@5/parallel@1,300278
pseudo-device: fssnap0
fssnap0 is /pseudo/fssnap@0
PCI-device: pci@1, pci_pci0
pci_pci0 is /pci@8,700000/pci@1
SUNW,qfe0: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@0,1, qfe0
qfe0 is /pci@8,700000/pci@1/SUNW,qfe@0,1
SUNW,qfe1: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@1,1, qfe1
qfe1 is /pci@8,700000/pci@1/SUNW,qfe@1,1
SUNW,qfe2: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@2,1, qfe2
qfe2 is /pci@8,700000/pci@1/SUNW,qfe@2,1
SUNW,qfe3: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@3,1, qfe3
qfe3 is /pci@8,700000/pci@1/SUNW,qfe@3,1
PCI-device: pci@3, pci_pci1
pci_pci1 is /pci@8,700000/pci@3
SUNW,qfe4: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@0,1, qfe4
qfe4 is /pci@8,700000/pci@3/SUNW,qfe@0,1
SUNW,qfe5: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@1,1, qfe5
qfe5 is /pci@8,700000/pci@3/SUNW,qfe@1,1
SUNW,qfe6: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@2,1, qfe6
qfe6 is /pci@8,700000/pci@3/SUNW,qfe@2,1
SUNW,qfe7: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@3,1, qfe7
qfe7 is /pci@8,700000/pci@3/SUNW,qfe@3,1
pseudo-device: winlock0
winlock0 is /pseudo/winlock@0
pseudo-device: lockstat0
lockstat0 is /pseudo/lockstat@0
pseudo-device: llc10
llc10 is /pseudo/llc1@0
PCI-device: pci@2, pci_pci2
pci_pci2 is /pci@8,700000/pci@2
PCI-device: pci@1, pci_pci3
pci_pci3 is /pci@8,600000/pci@1
ssd0 at fp0: name w21000004cf961e99,0, bus address ef
ssd0 is /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf961e99,0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf961e99,0 (ssd0) online
ssd1 at fp0: name w21000004cf961fcb,0, bus address e8
ssd1 is /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf961fcb,0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf961fcb,0 (ssd1) online
pseudo-device: lofi0
lofi0 is /pseudo/lofi@0
bbc_beep0 at ebus0: offset 1,32
bbc_beep0 is /pci@8,700000/ebus@5/beep@1,32
gpio_873170 at ebus0: offset 1,300600
gpio_873170 is /pci@8,700000/ebus@5/gpio@1,300600
PCI-device: usb@5,3, ohci0
ohci0 is /pci@8,700000/usb@5,3
Using RPC Bootparams for network configuration information.
Skipping interface fcip0
NOTICE: SUNW,qfe7: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe7
NOTICE: SUNW,qfe6: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe6
NOTICE: SUNW,qfe5: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe5
NOTICE: SUNW,qfe4: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe4
NOTICE: SUNW,qfe3: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe3
NOTICE: SUNW,qfe2: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe2
NOTICE: SUNW,qfe1: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe1
NOTICE: SUNW,qfe0: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe0
Configured interface eri0
Searching for configuration file(s)...
Using sysid configuration file 10.153.51.51:/export/install/clients/server1112/sysidcfg
The system is coming up. Please wait.
Starting remote procedure call (RPC) services: sysidns done.
Starting Solaris installation program...
Searching for JumpStart directory...
Using rules.ok from 10.153.51.51:/export/install/global/SunOS/scripts/3.4.
Checking rules.ok file...
Using begin script: db_begin
Using derived profile: db_begin
Using finish script: db_finish
Executing JumpStart preinstall phase...
Executing begin script "db_begin"...
Mounting 10.153.51.51:/export/install_home to /tmp/export/install
INFO: selecting disk layout: 8-72gb
Install client hostname: server1112
NIS domain:
Monday June 3 21:19:10 EDT 2002
----------------------------------------------------
Starting DB Jumpstart
----------------------------------------------------
SI_BEGIN db_begin
SI_CLASS =
SI_CONFIG_DIR /tmp/install_config
SI_CONFIG_PROG rules.ok
SI_FINISH db_finish
SI_SYS_STATE /a/etc/.sysIDtool.state
SI_NUMDISKS
SI_PROFILE /tmp/install.input
SI_DISKLIST
SI_DISKSIZES
SI_SYS_STATE /a/etc/.sysIDtool.state
---------------------------------------------------
Testing installation profile:
Parsing profile
0: #
1: # Jumpstart Profile - created by install
2: #
3: install_type initial_install
4: system_type standalone
5: cluster SUNWCall
6:
7: partitioning explicit
8:
9:
10: package SUNWappr delete
11: package SUNWappu delete
12: package SUNWaudio delete
13: package SUNWaudmo delete
14: package SUNWast delete
15: package SUNWbnuu delete
16: package SUNWbnur delete
17: package SUNWdtdem delete
18: package SUNWfac delete
19: package SUNWjvdem delete
20: package SUNWjvdev delete
21: package SUNWolaud delete
22: package SUNWolbk delete
23: package SUNWolsrc delete
24: package SUNWosdem delete
25: package SUNWpcelx delete
26: package SUNWpcmci delete
27: package SUNWpcmcu delete
28: package SUNWpcmem delete
29: package SUNWpcser delete
30: package SUNWpmowm delete
31: package SUNWpmowr delete
32: package SUNWpmowu delete
33: package SUNWpmr delete
34: package SUNWpmu delete
35: package SUNWpsdpr delete
36: package SUNWrtvc delete
37: package SUNWrtvcl delete
38: package SUNWrtvcu delete
39: package SUNWwbcou delete
40: package SUNWwbcor delete
41: package SUNWwbdev delete
42:
43: #
44: # partitioning will be added at build time
45: #
46: filesys rootdisk.s0 4096 /
47: filesys rootdisk.s2 all overlap
48: filesys rootdisk.s1 2048 swap
49: filesys rootdisk.s7 3 unnamed
Processing default locales
- Specifying default locale (en_US)
Processing profile
- Selecting cluster (SUNWCall)
Installing 64 bit Solaris packages
WARNING: Unknown package ignored (SUNWappr)
WARNING: Unknown package ignored (SUNWappu)
- Deselecting package (SUNWaudio)
- Deselecting package (SUNWaudmo)
- Deselecting package (SUNWast)
- Deselecting package (SUNWbnuu)
- Deselecting package (SUNWbnur)
- Deselecting package (SUNWdtdem)
- Deselecting package (SUNWfac)
- Deselecting package (SUNWjvdem)
- Deselecting package (SUNWjvdev)
- Deselecting package (SUNWolaud)
- Deselecting package (SUNWolbk)
- Deselecting package (SUNWolsrc)
- Deselecting package (SUNWosdem)
WARNING: Deselected package is already deselected (SUNWpcelx)
WARNING: Deselected package is already deselected (SUNWpcmci)
WARNING: Deselected package is already deselected (SUNWpcmcu)
WARNING: Deselected package is already deselected (SUNWpcmem)
WARNING: Deselected package is already deselected (SUNWpcser)
- Deselecting package (SUNWpmowm)
- Deselecting package (SUNWpmowr)
- Deselecting package (SUNWpmowu)
- Deselecting package (SUNWpmr)
- Deselecting package (SUNWpmu)
WARNING: Deselected package is already deselected (SUNWpsdpr)
- Deselecting package (SUNWrtvc)
- Deselecting package (SUNWrtvcl)
- Deselecting package (SUNWrtvcu)
- Deselecting package (SUNWwbcou)
- Deselecting package (SUNWwbcor)
- Deselecting package (SUNWwbdev)
- Selecting locale (en_US)
WARNING: SUNWwbmc depends on SUNWwbcou, which is not selected
WARNING: SUNWmga depends on SUNWwbcor, which is not selected
WARNING: SUNWmga depends on SUNWwbcou, which is not selected
WARNING: SUNWdclnt depends on SUNWwbcor, which is not selected
WARNING: SUNWdclnt depends on SUNWwbcou, which is not selected
WARNING: SUNWolrte depends on SUNWaudio, which is not selected
WARNING: SUNWoldcv depends on SUNWaudio, which is not selected
WARNING: SUNWmgapp depends on SUNWwbcor, which is not selected
WARNING: SUNWmgapp depends on SUNWwbcou, which is not selected
Packages to be installed
SUNWrdm
SUNWmipr
SUNWlclx
SUNWlcl
SUNWkiu8x
SUNWkiu8
SUNWi9rf
SUNWi8rf
SUNWi7rf
SUNWi5rf
SUNWi4rf
SUNWi2rf
SUNWi15rf
SUNWi13rf
SUNWhiu8x
SUNWhiu8
SUNWglt
SUNWfdl
SUNWeuxwe
SUNWeusru
SUNWeulux
SUNWeuluf
SUNWeugrf
SUNWeuezt
SUNWeudmg
SUNWeudlg
SUNWeudiv
...
- Selecting all disks
- Configuring boot device
- Using disk (c1t0d0) for "rootdisk"
- Configuring overlap (c1t0d0s2)
- Configuring / (c1t0d0s0)
- Configuring swap (c1t0d0s1)
- Configuring (c1t0d0s7)
- Deselecting unmodified disk (c1t1d0)
Disk layout for selected disks
Disk c1t0d0
Solaris Slice Table
Slice Start Cylinder MB Preserve Directory
------- -------- -------- ---- -------- ----------
0 0 2904 4097 no /
1 2904 1452 2049 no swap
2 0 24620 34731 no overlap
7 4356 3 5 no
Usable space: 34731 MB (24620 cylinders) Free space: 28582 MB
Disk layout for unselected disks
Disk c1t1d0
Solaris Slice Table
Slice Start Cylinder MB Preserve Directory
------- -------- -------- ---- -------- ----------
2 0 24620 34731 no overlap
Usable space: 34731 MB (24620 cylinders) Free space: 34731 MB
Verifying disk configuration
- WARNING: Unused disk space (c1t0d0)
- WARNING: Changing the system's default boot device in the EEPROM
Verifying space allocation
- Total software size: 776.41 Mbytes
Preparing system for Solaris install
Configuring disk (c1t0d0)
- Creating Solaris disk label (VTOC)
slice: 0 ( /) tag: 0x2 flag: 0x0
slice: 1 ( swap) tag: 0x3 flag: 0x1
slice: 2 ( overlap) tag: 0x5 flag: 0x0
slice: 3 ( ) tag: 0x0 flag: 0x0
slice: 4 ( ) tag: 0x0 flag: 0x0
slice: 5 ( ) tag: 0x0 flag: 0x0
slice: 6 ( ) tag: 0x0 flag: 0x0
slice: 7 ( ) tag: 0x0 flag: 0x0
Creating and checking UFS file systems
- Creating / (c1t0d0s0)
Mounting target file systems
- Mounting /a (/dev/dsk/c1t0d0s0)
Beginning Solaris software installation
Starting software installation
SUNWrdm.....done. 776.39 Mbytes remaining.
SUNWmipr....done. 776.34 Mbytes remaining.
SUNWlclx....done. 776.03 Mbytes remaining.
SUNWlcl.....done. 775.78 Mbytes remaining.
SUNWkiu8x...done. 774.55 Mbytes remaining.
SUNWkiu8....done. 773.55 Mbytes remaining.
SUNWi9rf....done. 772.47 Mbytes remaining.
SUNWi8rf....done. 770.76 Mbytes remaining.
...
SUNWrsgk....done. 1.71 Mbytes remaining.
SUNWrsmo....done. 1.69 Mbytes remaining.
SUNWrsm.....done. 1.56 Mbytes remaining.
SUNWrsmx....done. 1.38 Mbytes remaining.
SUNWrtvcx...done. 1.24 Mbytes remaining.
SUNWsacom...done. 1.00 Mbytes remaining.
Completed software installation
Solaris 8 software installation succeeded
Solaris 8 packages fully installed
SUNWrdm
SUNWmipr
SUNWlclx
SUNWlcl
SUNWkiu8x
SUNWkiu8
SUNWi9rf
SUNWi8rf
SUNWi7rf
SUNWi5rf
SUNWi4rf
SUNWi2rf
SUNWi15rf
SUNWi13rf
SUNWhiu8x
Customizing system files
- Mount points table (/etc/vfstab)
/dev/dsk/c1t0d0s1 - - swap - no -
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
- Unselected disk mount points (/var/sadm/system/data/vfstab.unselected)
/dev/dsk/c1t1d0s0 /dev/rdsk/c1t1d0s0 / ufs - - -
- Network host addresses (/etc/hosts)
Cleaning devices
Customizing system devices
- Physical devices (/devices)
- Logical devices (/dev)
Installing boot information
- Installing boot blocks (c1t0d0s0)
- Updating system firmware for automatic rebooting
Installation log location
- /a/var/sadm/system/logs/install_log (before reboot)
- /var/sadm/system/logs/install_log (after reboot)
Mounting remaining file systems
Installation complete
Test run complete. Exit status 0.
---------------------------------------------------
Monday June 3 21:19:38 EDT 2002 : Build Starts
Begin script db_begin execution completed.
Searching for SolStart directory...
Checking rules.ok file...
Using begin script: install_begin
Using finish script: patch_finish
Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.
Processing default locales
- Specifying default locale (en_US)
Processing profile
- Selecting cluster (SUNWCall)
Installing 64 bit Solaris packages
WARNING: Unknown package ignored (SUNWappr)
WARNING: Unknown package ignored (SUNWappu)
- Deselecting package (SUNWaudio)
- Deselecting package (SUNWaudmo)
- Deselecting package (SUNWast)
- Deselecting package (SUNWbnuu)
- Deselecting package (SUNWbnur)
- Deselecting package (SUNWdtdem)
- Deselecting package (SUNWfac)
- Deselecting package (SUNWjvdem)
- Deselecting package (SUNWjvdev)
- Deselecting package (SUNWolaud)
- Deselecting package (SUNWolbk)
- Deselecting package (SUNWolsrc)
- Deselecting package (SUNWosdem)
WARNING: Deselected package is already deselected (SUNWpcelx)
WARNING: Deselected package is already deselected (SUNWpcmci)
WARNING: Deselected package is already deselected (SUNWpcmcu)
WARNING: Deselected package is already deselected (SUNWpcmem)
WARNING: Deselected package is already deselected (SUNWpcser)
- Deselecting package (SUNWpmowm)
- Deselecting package (SUNWpmowr)
- Deselecting package (SUNWpmowu)
- Deselecting package (SUNWpmr)
- Deselecting package (SUNWpmu)
WARNING: Deselected package is already deselected (SUNWpsdpr)
- Deselecting package (SUNWrtvc)
- Deselecting package (SUNWrtvcl)
- Deselecting package (SUNWrtvcu)
- Deselecting package (SUNWwbcou)
- Deselecting package (SUNWwbcor)
- Deselecting package (SUNWwbdev)
- Selecting locale (en_US)
- Selecting all disks
- Configuring boot device
- Using disk (c1t0d0) for "rootdisk"
- Configuring overlap (c1t0d0s2)
- Configuring / (c1t0d0s0)
- Configuring swap (c1t0d0s1)
- Configuring (c1t0d0s7)
- Deselecting unmodified disk (c1t1d0)
Verifying disk configuration
- WARNING: Unused disk space (c1t0d0)
- WARNING: Changing the system's default boot device in the EEPROM
Verifying space allocation
- Total software size: 776.41 Mbytes
Preparing system for Solaris install
Configuring disk (c1t0d0)
- Creating Solaris disk label (VTOC)
dump on /dev/dsk/c1t0d0s1 size 2048 MB
Creating and checking UFS file systems
- Creating / (c1t0d0s0)
Beginning Solaris software installation
Starting software installation
SUNWrdm.....done. 776.39 Mbytes remaining.
SUNWmipr....done. 776.34 Mbytes remaining.
SUNWlclx....done. 776.03 Mbytes remaining.
SUNWlcl.....done. 775.78 Mbytes remaining.
SUNWkiu8x...done. 774.55 Mbytes remaining.
SUNWkiu8....done. 773.55 Mbytes remaining.
SUNWi9rf....done. 772.47 Mbytes remaining.
SUNWi8rf....done. 770.76 Mbytes remaining.
SUNWi7rf....done. 770.19 Mbytes remaining.
SUNWi5rf....done. 769.66 Mbytes remaining.
SUNWi4rf....done. 769.09 Mbytes remaining.
SUNWi2rf....done. 768.10 Mbytes remaining.
SUNWi15rf...done. 768.02 Mbytes remaining.
SUNWi13rf...done. 766.50 Mbytes remaining.
SUNWhiu8x...done. 764.07 Mbytes remaining.
SUNWhiu8....done. 762.41 Mbytes remaining.
SUNWglt.....done. 762.27 Mbytes remaining.
SUNWfdl.....done. 760.14 Mbytes remaining.
SUNWeuxwe...done. 759.82 Mbytes remaining.
SUNWeusru...done. 759.79 Mbytes remaining.
SUNWeulux...done. 758.67 Mbytes remaining.
SUNWeuluf...done. 757.27 Mbytes remaining.
SUNWeugrf...done. 757.18 Mbytes remaining.
SUNWeuezt...done. 757.04 Mbytes remaining.
SUNWeudmg...done. 756.94 Mbytes remaining.
SUNWeudlg...done. 756.54 Mbytes remaining.
SUNWeudiv...done. 756.52 Mbytes remaining.
SUNWeudis...done. 756.50 Mbytes remaining.
SUNWeudhs...done. 756.48 Mbytes remaining.
SUNWeudhr...done. 756.46 Mbytes remaining.
SUNWeudda...done. 756.36 Mbytes remaining.
SUNWeudbd...done. 756.33 Mbytes remaining.
SUNWeudba...done. 756.29 Mbytes remaining.
SUNWebnfs...done. 755.08 Mbytes remaining.
SUNWkvmx.u..done. 754.75 Mbytes remaining.
SUNWkvm.u...done. 753.81 Mbytes remaining.
SUNWcarx.u..done. 738.22 Mbytes remaining.
SUNWdtct....done. 738.12 Mbytes remaining.
SUNWcar.u...done. 729.87 Mbytes remaining.
....
SUNWbcp.....done. 523.93 Mbytes remaining.
SUNWcttf....done. 520.21 Mbytes remaining.
The following tasks are required to configure a basic JumpStart server:
1. Spool the operating system image.
2. Edit the sysidcfg file.
3. Edit the rules and profile files.
4. Run the check script.
5. Run the add_install_client script.
6. Boot the client.
Note:
For reference of JumpStart Client Boot Sequence, please refer to this article
For reference of Troubleshooting Solaris 10 Jumpstart, please refer to this article
Details:
1. Spool the operating system image.
Allocate 5GB+ space and create main directory and spool os image, e.g.
#mkdir /export/install.
#cd /cdrom/cdrom0/s0/Solaris_10/Tools
#./setup_install_server /export/install
#cd /; eject cdrom
(use add_to_install_server script to add additional image)
2. Edit the sysidcfg file
a sample sysidcfg file:
======================================================================
network_interface=hme0 { primary
protocol_ipv6=no
netmask=255.255.255.0
default_route=192.168.120.1}
security_policy=none
name_sevice=none
timezone=US/Mountain
system_locale=en_US
timeserver=192.168.120.12
root_password=Hxazjdkf3081alsdjf
=======================================================================
About sysidcfg file:
Solaris OS name services cannot provide responses for the IPv6, Kerberos, default route, and root password questions that clients ask. The sysidcfg file offers the only means of automatically supplying these responses to clients. NIS can supply all of the other essential identification information that clients require.
3. Edit the rules and profile files.
#mkdir /export/config
#cd /export/config
#vi rules
sample rules file
========================================
hostname client1 begin_script profile_for_client1 finish_script
========================================
or
========================================
hostname client1 - profile1 -
========================================
#vi profile1
sample profile
========================================
install_type initial_install
system_type standalone
partitioning explicit
filesys c0t0d1s1 2048 swap
filesys c0t0d0s0 8192 /
cluster SUNWCXall
package SUNWman delete
========================================
4. Run check script and creates rules.ok file
#cp /export/install/Solaris_10/Misc/jumpStart_sample/check /export/config
#cd /export/config ; ./check
Validating rules...
Validating profile profile1...
The custom JumpStart configuration is OK
5. Run add_install_client script (The script is located at /export/install/Solaris_10/Tools)
(make sure /etc/hosts and /etc/ethers have new client's hostname,IP and MAC address, or available via NIS)
add_install_client options:
-c : shows the server and path where the rules and profile files are located
-p : shows the server and path where the sysidcfg file is located
the name of the client
the kernel architecture of the client
#add_install_client -c server1:/export/config -p server1:/export/config client 1 sun4u
saving original /etc/dfs/dfstab in /etc/dfs/dfstab.orig
Adding "share -F nfs -o ro,anon=0 /export/install" to /etc/dfs/dfstab
making /tftpboot
enabling tftp in /etc/inetd.conf
starting rarpd
starting bootparamd
starting nfsd's
starting nfs mountd
updating /etc/bootparams
copying inetboot to /tftpboot
(also, check dfstab file make sure /export/config is shared)
6. Boot the client
ok boot net - install nowin
A sample entry of client1 in /etc/bootparams file added by add_install_client script.
==============================================
client1
root=server1:/export/install/Solaris_10/Tools/Boot
install=server1:/export/install
boottype=:in
sysid_config=server1:/export/config
install_config=server1:/export/config
rootopts=:rsize=32768
==============================================
rootopts lists the mount options for the root (/) and the NFS read size (32768).
Misc:
You can use begin script to backup root passwords, etc.
In finish script, touch /a/noautoshutdown is the only method available to auto disable
the power mgmt feature on the JumpStart client.
To setup boot only server:
#
setup_install_server -b /export/install
For troubleshooting JumpStart, please see http://shanit.blogspot.com/2009/08/troubleshoot-solaris-jumpstart.html
An actual JumpStart Process:
Jumpstart on Sun 280R (server1112)
======================================================
{0} ok devalias
disk1 /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@1,0
disk0 /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0
disk /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0
scsi /pci@8,600000/SUNW,qlc@4
lom-console /pci@8,700000/ebus@5/lom-console@1,3083f8
lom /pci@8,700000/ebus@5/lombus@1,3062f8/SUNW,lomv
rsc-console /pci@8,700000/ebus@5/rsc-console@1,3083f8
rsc-control /pci@8,700000/ebus@5/rsc-control@1,3062f8
net /pci@8,700000/network@5,1:
cdrom /pci@8,700000/scsi@6/disk@6,0:f
tape /pci@8,700000/scsi@6,1/tape@4,0
tape1 /pci@8,700000/scsi@6,1/tape@5,0
tape0 /pci@8,700000/scsi@6,1/tape@4,0
beep /pci@8,700000/ebus@5/beep@1,32
floppy /pci@8,700000/ebus@5/floppy
ttyb /pci@8,700000/ebus@5/serial@1,400000:b
ttya /pci@8,700000/ebus@5/serial@1,400000:a
name aliases
{0} ok boot net -v install
Boot device: /pci@8,700000/network@5,1: File and args: -v install
2ae00 Using RARP/BOOTPARAMS...
Internet address is: 10.153.51.173
hostname: server1112
Found 10.153.51.51 @ 8:0:20:e6:80:58
root server: 10.153.51.51 (10.153.51.51)
root directory: /export/install/global/SunOS/products/SunOS/5.8-0202/Solaris_8/Tools/Boot
Size: 338336+89970+75914 Bytes
SunOS Release 5.8 Version Generic_108528-13 64-bit
Copyright 1983-2001 Sun Microsystems, Inc. All rights reserved.
Ethernet address = 0:3:ba:16:bc:26
Using default device instance data
mem = 2097152K (0x80000000)
avail mem = 2050998272
root nexus = Sun Fire 280R (2 X UltraSPARC-III+)
pcisch0 at root: SAFARI 0x8 0x700000
pcisch0 is /pci@8,700000
pcisch1 at root: SAFARI 0x8 0x600000
pcisch1 is /pci@8,600000
PCI-device: network@5,1, eri0
eri0 is /pci@8,700000/network@5,1
Requesting Internet address for 0:3:ba:16:bc:26
SUNW,eri0 : 100 Mbps half duplex link up
SUNW,eri0 : 100 Mbps half duplex link up
Found my IP address: a9933ad (10.153.51.173)
hostname: unix-test-server
whoami: no domain name
root on 10.153.51.51:/export/install/global/SunOS/products/SunOS/5.8-0202/Solaris_8/Tools/Boot fstyp
e nfsdyn
PCI-device: ebus@5, ebus0
todds12870 at ebus0: offset 1,300070
todds12870 is /pci@8,700000/ebus@5/rtc@1,300070
mc-us30 at root: SAFARI 0x0 0x400000 ...
mc-us30 is /memory-controller@0,400000
mc-us31 at root: SAFARI 0x1 0x400000 ...
mc-us31 is /memory-controller@1,400000
se0 at ebus0: offset 1,400000
se0 is /pci@8,700000/ebus@5/serial@1,400000ýcpu0: SUNW,UltraSPARC-III+ (upaid 0 impl 0x15 ver 0x22 c
lock 900 MHz)
cpu1: SUNW,UltraSPARC-III+ (upaid 1 impl 0x15 ver 0x22 clock 900 MHz)
su0 at ebus0: offset 1,3062f8
su0 is /pci@8,700000/ebus@5/rsc-control@1,3062f8
su1 at ebus0: offset 1,3083f8
su1 is /pci@8,700000/ebus@5/rsc-console@1,3083f8
Configuring /dev and /devices
pseudo-device: devinfo0
devinfo0 is /pseudo/devinfo@0
/pci@8,700000/scsi@6 (glm0):
glm0 supports power management.
/pci@8,700000/scsi@6 (glm0):
Rev. 7 Symbios 53c875 found.
PCI-device: scsi@6, glm0
glm0 is /pci@8,700000/scsi@6
/pci@8,700000/scsi@6,1 (glm1):
glm1 supports power management.
/pci@8,700000/scsi@6,1 (glm1):
Rev. 7 Symbios 53c875 found.
PCI-device: scsi@6,1, glm1
glm1 is /pci@8,700000/scsi@6,1
sd6 at glm0: target 6 lun 0
sd6 is /pci@8,700000/scsi@6/sd@6,0
PCI-device: SUNW,qlc@4, qlc0
qlc0 is /pci@8,600000/SUNW,qlc@4
pseudo-device: fcp0
fcp0 is /pseudo/fcp@0
fp0 is /pci@8,600000/SUNW,qlc@4/fp@0,0
ecpp0 at ebus0: offset 1,300278
ecpp0 is /pci@8,700000/ebus@5/parallel@1,300278
pseudo-device: fssnap0
fssnap0 is /pseudo/fssnap@0
PCI-device: pci@1, pci_pci0
pci_pci0 is /pci@8,700000/pci@1
SUNW,qfe0: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@0,1, qfe0
qfe0 is /pci@8,700000/pci@1/SUNW,qfe@0,1
SUNW,qfe1: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@1,1, qfe1
qfe1 is /pci@8,700000/pci@1/SUNW,qfe@1,1
SUNW,qfe2: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@2,1, qfe2
qfe2 is /pci@8,700000/pci@1/SUNW,qfe@2,1
SUNW,qfe3: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@3,1, qfe3
qfe3 is /pci@8,700000/pci@1/SUNW,qfe@3,1
PCI-device: pci@3, pci_pci1
pci_pci1 is /pci@8,700000/pci@3
SUNW,qfe4: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@0,1, qfe4
qfe4 is /pci@8,700000/pci@3/SUNW,qfe@0,1
SUNW,qfe5: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@1,1, qfe5
qfe5 is /pci@8,700000/pci@3/SUNW,qfe@1,1
SUNW,qfe6: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@2,1, qfe6
qfe6 is /pci@8,700000/pci@3/SUNW,qfe@2,1
SUNW,qfe7: found CheerIO 2.0 (rev = C1)
PCI-device: SUNW,qfe@3,1, qfe7
qfe7 is /pci@8,700000/pci@3/SUNW,qfe@3,1
pseudo-device: winlock0
winlock0 is /pseudo/winlock@0
pseudo-device: lockstat0
lockstat0 is /pseudo/lockstat@0
pseudo-device: llc10
llc10 is /pseudo/llc1@0
PCI-device: pci@2, pci_pci2
pci_pci2 is /pci@8,700000/pci@2
PCI-device: pci@1, pci_pci3
pci_pci3 is /pci@8,600000/pci@1
ssd0 at fp0: name w21000004cf961e99,0, bus address ef
ssd0 is /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf961e99,0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf961e99,0 (ssd0) online
ssd1 at fp0: name w21000004cf961fcb,0, bus address e8
ssd1 is /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf961fcb,0
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000004cf961fcb,0 (ssd1) online
pseudo-device: lofi0
lofi0 is /pseudo/lofi@0
bbc_beep0 at ebus0: offset 1,32
bbc_beep0 is /pci@8,700000/ebus@5/beep@1,32
gpio_873170 at ebus0: offset 1,300600
gpio_873170 is /pci@8,700000/ebus@5/gpio@1,300600
PCI-device: usb@5,3, ohci0
ohci0 is /pci@8,700000/usb@5,3
Using RPC Bootparams for network configuration information.
Skipping interface fcip0
NOTICE: SUNW,qfe7: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe7
NOTICE: SUNW,qfe6: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe6
NOTICE: SUNW,qfe5: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe5
NOTICE: SUNW,qfe4: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe4
NOTICE: SUNW,qfe3: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe3
NOTICE: SUNW,qfe2: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe2
NOTICE: SUNW,qfe1: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe1
NOTICE: SUNW,qfe0: No response from Ethernet network : Link Down - cable problem?
Skipping interface qfe0
Configured interface eri0
Searching for configuration file(s)...
Using sysid configuration file 10.153.51.51:/export/install/clients/server1112/sysidcfg
The system is coming up. Please wait.
Starting remote procedure call (RPC) services: sysidns done.
Starting Solaris installation program...
Searching for JumpStart directory...
Using rules.ok from 10.153.51.51:/export/install/global/SunOS/scripts/3.4.
Checking rules.ok file...
Using begin script: db_begin
Using derived profile: db_begin
Using finish script: db_finish
Executing JumpStart preinstall phase...
Executing begin script "db_begin"...
Mounting 10.153.51.51:/export/install_home to /tmp/export/install
INFO: selecting disk layout: 8-72gb
Install client hostname: server1112
NIS domain:
Monday June 3 21:19:10 EDT 2002
----------------------------------------------------
Starting DB Jumpstart
----------------------------------------------------
SI_BEGIN db_begin
SI_CLASS =
SI_CONFIG_DIR /tmp/install_config
SI_CONFIG_PROG rules.ok
SI_FINISH db_finish
SI_SYS_STATE /a/etc/.sysIDtool.state
SI_NUMDISKS
SI_PROFILE /tmp/install.input
SI_DISKLIST
SI_DISKSIZES
SI_SYS_STATE /a/etc/.sysIDtool.state
---------------------------------------------------
Testing installation profile:
Parsing profile
0: #
1: # Jumpstart Profile - created by install
2: #
3: install_type initial_install
4: system_type standalone
5: cluster SUNWCall
6:
7: partitioning explicit
8:
9:
10: package SUNWappr delete
11: package SUNWappu delete
12: package SUNWaudio delete
13: package SUNWaudmo delete
14: package SUNWast delete
15: package SUNWbnuu delete
16: package SUNWbnur delete
17: package SUNWdtdem delete
18: package SUNWfac delete
19: package SUNWjvdem delete
20: package SUNWjvdev delete
21: package SUNWolaud delete
22: package SUNWolbk delete
23: package SUNWolsrc delete
24: package SUNWosdem delete
25: package SUNWpcelx delete
26: package SUNWpcmci delete
27: package SUNWpcmcu delete
28: package SUNWpcmem delete
29: package SUNWpcser delete
30: package SUNWpmowm delete
31: package SUNWpmowr delete
32: package SUNWpmowu delete
33: package SUNWpmr delete
34: package SUNWpmu delete
35: package SUNWpsdpr delete
36: package SUNWrtvc delete
37: package SUNWrtvcl delete
38: package SUNWrtvcu delete
39: package SUNWwbcou delete
40: package SUNWwbcor delete
41: package SUNWwbdev delete
42:
43: #
44: # partitioning will be added at build time
45: #
46: filesys rootdisk.s0 4096 /
47: filesys rootdisk.s2 all overlap
48: filesys rootdisk.s1 2048 swap
49: filesys rootdisk.s7 3 unnamed
Processing default locales
- Specifying default locale (en_US)
Processing profile
- Selecting cluster (SUNWCall)
Installing 64 bit Solaris packages
WARNING: Unknown package ignored (SUNWappr)
WARNING: Unknown package ignored (SUNWappu)
- Deselecting package (SUNWaudio)
- Deselecting package (SUNWaudmo)
- Deselecting package (SUNWast)
- Deselecting package (SUNWbnuu)
- Deselecting package (SUNWbnur)
- Deselecting package (SUNWdtdem)
- Deselecting package (SUNWfac)
- Deselecting package (SUNWjvdem)
- Deselecting package (SUNWjvdev)
- Deselecting package (SUNWolaud)
- Deselecting package (SUNWolbk)
- Deselecting package (SUNWolsrc)
- Deselecting package (SUNWosdem)
WARNING: Deselected package is already deselected (SUNWpcelx)
WARNING: Deselected package is already deselected (SUNWpcmci)
WARNING: Deselected package is already deselected (SUNWpcmcu)
WARNING: Deselected package is already deselected (SUNWpcmem)
WARNING: Deselected package is already deselected (SUNWpcser)
- Deselecting package (SUNWpmowm)
- Deselecting package (SUNWpmowr)
- Deselecting package (SUNWpmowu)
- Deselecting package (SUNWpmr)
- Deselecting package (SUNWpmu)
WARNING: Deselected package is already deselected (SUNWpsdpr)
- Deselecting package (SUNWrtvc)
- Deselecting package (SUNWrtvcl)
- Deselecting package (SUNWrtvcu)
- Deselecting package (SUNWwbcou)
- Deselecting package (SUNWwbcor)
- Deselecting package (SUNWwbdev)
- Selecting locale (en_US)
WARNING: SUNWwbmc depends on SUNWwbcou, which is not selected
WARNING: SUNWmga depends on SUNWwbcor, which is not selected
WARNING: SUNWmga depends on SUNWwbcou, which is not selected
WARNING: SUNWdclnt depends on SUNWwbcor, which is not selected
WARNING: SUNWdclnt depends on SUNWwbcou, which is not selected
WARNING: SUNWolrte depends on SUNWaudio, which is not selected
WARNING: SUNWoldcv depends on SUNWaudio, which is not selected
WARNING: SUNWmgapp depends on SUNWwbcor, which is not selected
WARNING: SUNWmgapp depends on SUNWwbcou, which is not selected
Packages to be installed
SUNWrdm
SUNWmipr
SUNWlclx
SUNWlcl
SUNWkiu8x
SUNWkiu8
SUNWi9rf
SUNWi8rf
SUNWi7rf
SUNWi5rf
SUNWi4rf
SUNWi2rf
SUNWi15rf
SUNWi13rf
SUNWhiu8x
SUNWhiu8
SUNWglt
SUNWfdl
SUNWeuxwe
SUNWeusru
SUNWeulux
SUNWeuluf
SUNWeugrf
SUNWeuezt
SUNWeudmg
SUNWeudlg
SUNWeudiv
...
- Selecting all disks
- Configuring boot device
- Using disk (c1t0d0) for "rootdisk"
- Configuring overlap (c1t0d0s2)
- Configuring / (c1t0d0s0)
- Configuring swap (c1t0d0s1)
- Configuring (c1t0d0s7)
- Deselecting unmodified disk (c1t1d0)
Disk layout for selected disks
Disk c1t0d0
Solaris Slice Table
Slice Start Cylinder MB Preserve Directory
------- -------- -------- ---- -------- ----------
0 0 2904 4097 no /
1 2904 1452 2049 no swap
2 0 24620 34731 no overlap
7 4356 3 5 no
Usable space: 34731 MB (24620 cylinders) Free space: 28582 MB
Disk layout for unselected disks
Disk c1t1d0
Solaris Slice Table
Slice Start Cylinder MB Preserve Directory
------- -------- -------- ---- -------- ----------
2 0 24620 34731 no overlap
Usable space: 34731 MB (24620 cylinders) Free space: 34731 MB
Verifying disk configuration
- WARNING: Unused disk space (c1t0d0)
- WARNING: Changing the system's default boot device in the EEPROM
Verifying space allocation
- Total software size: 776.41 Mbytes
Preparing system for Solaris install
Configuring disk (c1t0d0)
- Creating Solaris disk label (VTOC)
slice: 0 ( /) tag: 0x2 flag: 0x0
slice: 1 ( swap) tag: 0x3 flag: 0x1
slice: 2 ( overlap) tag: 0x5 flag: 0x0
slice: 3 ( ) tag: 0x0 flag: 0x0
slice: 4 ( ) tag: 0x0 flag: 0x0
slice: 5 ( ) tag: 0x0 flag: 0x0
slice: 6 ( ) tag: 0x0 flag: 0x0
slice: 7 ( ) tag: 0x0 flag: 0x0
Creating and checking UFS file systems
- Creating / (c1t0d0s0)
Mounting target file systems
- Mounting /a (/dev/dsk/c1t0d0s0)
Beginning Solaris software installation
Starting software installation
SUNWrdm.....done. 776.39 Mbytes remaining.
SUNWmipr....done. 776.34 Mbytes remaining.
SUNWlclx....done. 776.03 Mbytes remaining.
SUNWlcl.....done. 775.78 Mbytes remaining.
SUNWkiu8x...done. 774.55 Mbytes remaining.
SUNWkiu8....done. 773.55 Mbytes remaining.
SUNWi9rf....done. 772.47 Mbytes remaining.
SUNWi8rf....done. 770.76 Mbytes remaining.
...
SUNWrsgk....done. 1.71 Mbytes remaining.
SUNWrsmo....done. 1.69 Mbytes remaining.
SUNWrsm.....done. 1.56 Mbytes remaining.
SUNWrsmx....done. 1.38 Mbytes remaining.
SUNWrtvcx...done. 1.24 Mbytes remaining.
SUNWsacom...done. 1.00 Mbytes remaining.
Completed software installation
Solaris 8 software installation succeeded
Solaris 8 packages fully installed
SUNWrdm
SUNWmipr
SUNWlclx
SUNWlcl
SUNWkiu8x
SUNWkiu8
SUNWi9rf
SUNWi8rf
SUNWi7rf
SUNWi5rf
SUNWi4rf
SUNWi2rf
SUNWi15rf
SUNWi13rf
SUNWhiu8x
Customizing system files
- Mount points table (/etc/vfstab)
/dev/dsk/c1t0d0s1 - - swap - no -
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
- Unselected disk mount points (/var/sadm/system/data/vfstab.unselected)
/dev/dsk/c1t1d0s0 /dev/rdsk/c1t1d0s0 / ufs - - -
- Network host addresses (/etc/hosts)
Cleaning devices
Customizing system devices
- Physical devices (/devices)
- Logical devices (/dev)
Installing boot information
- Installing boot blocks (c1t0d0s0)
- Updating system firmware for automatic rebooting
Installation log location
- /a/var/sadm/system/logs/install_log (before reboot)
- /var/sadm/system/logs/install_log (after reboot)
Mounting remaining file systems
Installation complete
Test run complete. Exit status 0.
---------------------------------------------------
Monday June 3 21:19:38 EDT 2002 : Build Starts
Begin script db_begin execution completed.
Searching for SolStart directory...
Checking rules.ok file...
Using begin script: install_begin
Using finish script: patch_finish
Executing SolStart preinstall phase...
Executing begin script "install_begin"...
Begin script install_begin execution completed.
Processing default locales
- Specifying default locale (en_US)
Processing profile
- Selecting cluster (SUNWCall)
Installing 64 bit Solaris packages
WARNING: Unknown package ignored (SUNWappr)
WARNING: Unknown package ignored (SUNWappu)
- Deselecting package (SUNWaudio)
- Deselecting package (SUNWaudmo)
- Deselecting package (SUNWast)
- Deselecting package (SUNWbnuu)
- Deselecting package (SUNWbnur)
- Deselecting package (SUNWdtdem)
- Deselecting package (SUNWfac)
- Deselecting package (SUNWjvdem)
- Deselecting package (SUNWjvdev)
- Deselecting package (SUNWolaud)
- Deselecting package (SUNWolbk)
- Deselecting package (SUNWolsrc)
- Deselecting package (SUNWosdem)
WARNING: Deselected package is already deselected (SUNWpcelx)
WARNING: Deselected package is already deselected (SUNWpcmci)
WARNING: Deselected package is already deselected (SUNWpcmcu)
WARNING: Deselected package is already deselected (SUNWpcmem)
WARNING: Deselected package is already deselected (SUNWpcser)
- Deselecting package (SUNWpmowm)
- Deselecting package (SUNWpmowr)
- Deselecting package (SUNWpmowu)
- Deselecting package (SUNWpmr)
- Deselecting package (SUNWpmu)
WARNING: Deselected package is already deselected (SUNWpsdpr)
- Deselecting package (SUNWrtvc)
- Deselecting package (SUNWrtvcl)
- Deselecting package (SUNWrtvcu)
- Deselecting package (SUNWwbcou)
- Deselecting package (SUNWwbcor)
- Deselecting package (SUNWwbdev)
- Selecting locale (en_US)
- Selecting all disks
- Configuring boot device
- Using disk (c1t0d0) for "rootdisk"
- Configuring overlap (c1t0d0s2)
- Configuring / (c1t0d0s0)
- Configuring swap (c1t0d0s1)
- Configuring (c1t0d0s7)
- Deselecting unmodified disk (c1t1d0)
Verifying disk configuration
- WARNING: Unused disk space (c1t0d0)
- WARNING: Changing the system's default boot device in the EEPROM
Verifying space allocation
- Total software size: 776.41 Mbytes
Preparing system for Solaris install
Configuring disk (c1t0d0)
- Creating Solaris disk label (VTOC)
dump on /dev/dsk/c1t0d0s1 size 2048 MB
Creating and checking UFS file systems
- Creating / (c1t0d0s0)
Beginning Solaris software installation
Starting software installation
SUNWrdm.....done. 776.39 Mbytes remaining.
SUNWmipr....done. 776.34 Mbytes remaining.
SUNWlclx....done. 776.03 Mbytes remaining.
SUNWlcl.....done. 775.78 Mbytes remaining.
SUNWkiu8x...done. 774.55 Mbytes remaining.
SUNWkiu8....done. 773.55 Mbytes remaining.
SUNWi9rf....done. 772.47 Mbytes remaining.
SUNWi8rf....done. 770.76 Mbytes remaining.
SUNWi7rf....done. 770.19 Mbytes remaining.
SUNWi5rf....done. 769.66 Mbytes remaining.
SUNWi4rf....done. 769.09 Mbytes remaining.
SUNWi2rf....done. 768.10 Mbytes remaining.
SUNWi15rf...done. 768.02 Mbytes remaining.
SUNWi13rf...done. 766.50 Mbytes remaining.
SUNWhiu8x...done. 764.07 Mbytes remaining.
SUNWhiu8....done. 762.41 Mbytes remaining.
SUNWglt.....done. 762.27 Mbytes remaining.
SUNWfdl.....done. 760.14 Mbytes remaining.
SUNWeuxwe...done. 759.82 Mbytes remaining.
SUNWeusru...done. 759.79 Mbytes remaining.
SUNWeulux...done. 758.67 Mbytes remaining.
SUNWeuluf...done. 757.27 Mbytes remaining.
SUNWeugrf...done. 757.18 Mbytes remaining.
SUNWeuezt...done. 757.04 Mbytes remaining.
SUNWeudmg...done. 756.94 Mbytes remaining.
SUNWeudlg...done. 756.54 Mbytes remaining.
SUNWeudiv...done. 756.52 Mbytes remaining.
SUNWeudis...done. 756.50 Mbytes remaining.
SUNWeudhs...done. 756.48 Mbytes remaining.
SUNWeudhr...done. 756.46 Mbytes remaining.
SUNWeudda...done. 756.36 Mbytes remaining.
SUNWeudbd...done. 756.33 Mbytes remaining.
SUNWeudba...done. 756.29 Mbytes remaining.
SUNWebnfs...done. 755.08 Mbytes remaining.
SUNWkvmx.u..done. 754.75 Mbytes remaining.
SUNWkvm.u...done. 753.81 Mbytes remaining.
SUNWcarx.u..done. 738.22 Mbytes remaining.
SUNWdtct....done. 738.12 Mbytes remaining.
SUNWcar.u...done. 729.87 Mbytes remaining.
....
SUNWbcp.....done. 523.93 Mbytes remaining.
SUNWcttf....done. 520.21 Mbytes remaining.
Labels:
Solaris 10 Administration
Solaris NFS
Network File System (NFS) Version 3.0
1. Concept:
NFS is a set of protocals
2. Daemons:
Server
----------
nfsd
mountd ; receives client's mount request and sends back handle
statd
lockd
Client
----------
statd
lockd
3. Files
A) Server
/etc/dfs/dfstab ;list what to share out
------------------
share -o ro /usr/share/man
related commands:
share
shareall
unshare
unshareall
share ;show what's currently share out
/etc/dfs/sharetab ;stores the results of the share command
B) Client
/etc/vfstab ;specifies nfs server's share
/etc/rmtab ;shows what's currently mounted
#dfshares server
#dfmounts server ;not supported in NFS 4.0
NFS 4.0
-----------------------------
Features:
- Stateful connections
- Single protocal - (server) nfsd,nfsmapid (client) nfs4cbd,nfsmapid
- Improved firewall support, uses well-known port 2049
Note: server may run mountd/lockd/statd to support earlier versions of nfs.
Extra daemon: nfs4cbd - NFS V4 callback daemon. Runs on the client.
Files
/etc/dfs/dfstab
/etc/dfs/sharetab
/etc/nfs/nfslog.conf
/etc/default/nfslogd
/etc/default/nfs
/etc/dfs/fstypes ; the default filesystem types for remote FS
ksh:gulf1# cat /etc/dfs/fstypes
nfs NFS Utilities
autofs AUTOFS Utilities
cachefs CACHEFS Utilities
----------------------------------
Commands:
To start NFS server
#/etc/init.d/nfs.server start or
svcadm -v enable svc:/network/nfs/server
#mount -o ro server:/usr/share/man /usr/share/man
#mount ; shows what's currently mounted
share -F nfs -o ro /directory
share -F nfs -o rw,rw=client1 /directory
share -F nfs -o root=client2 /directory
share -F nfs -o ro,anon=0 /directory ; anonymous user is uid 0, jumpstart
share -F nfs \
-o ro=client:client2,rw=netgrp:@192.168.100:.us.db.com,root=client4 /directory
By default, anonymous user is mapped as nobody 60001. But anon= access list
can set it to something else. anonymous user is any user who doesn't have
account on the server. "-o anon=-1 " will deny anonymous users.
Quick Guide:
Server -
#svcadm -v enable svc:/network/nfs/server
#echo "share -F nfs -o ro=client /export/home/nfs" >> /etc/dfs/dfstab
#shareall
#share
Client -
#svcadm -v enable svc:/network/nfs/client
#dfsshare server
#mount -F nfs server:/export/home/nfs /mnt
mount options:
rw | ro
bg | fg ; default is fg - trys mount in foreground
soft | hard ; soft reports error and stops trying
intro | nointr ; enable or disable keyboard interrupts to kill hanging client
; intr+hard will allow control C to stop trying
suid | nosuid ; whether to enable setuid
timeo=n ; time out n thenths of a second
retry=n ; number of retry, default 10,000 times!!!!
retrans=n ; number of NFS retransmissions . default udp 5. NA for tcp
nfslogging
Server logging isn't supported in NFS version 4.
nfslogd
/etc/nfs/nfslog.conf
Read write for client1, read only for the rest clients
#share -o rw=client, ro=10.10.100.0 /directory
Example : NFS implementation
ROOT@server1:/root # cat /etc/dfs/dfstab
# Place share(1M) commands here for automatic execution
# on entering init state 3.
#
# Issue the command 'svcadm enable network/nfs/server' to
# run the NFS daemon processes and the share commands, after adding
# the very first entry to this file.
#
# share [-F fstype] [ -o options] [-d ""] [resource]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o rw=client.sg.abcd.com -d "CVS Share" /apps/opus/Scripts
ROOT@server1:/root # svcs -a | grep nfs
disabled Nov_12 svc:/network/nfs/client:default
disabled Nov_12 svc:/network/nfs/server:default
disabled Nov_12 svc:/network/nfs/rquota:default
online Nov_12 svc:/network/nfs/status:default
online Nov_12 svc:/network/nfs/nlockmgr:default
online Jun_18 svc:/network/nfs/cbd:default
online Jun_18 svc:/network/nfs/mapid:default
ROOT@server1:/root # share /apps/opus/Scripts
ROOT@server1:/root # showmount -e
export list for server1:
/apps/opus/Scripts client.sg.abcd.com
ROOT@server1:/root # svcadm enable svc:/network/nfs/server
ROOT@server1:/root # share
- /apps/opus/Scripts rw=client.sg.abcd.com "CVS Share"
ROOT@server1:/root # dfshares
RESOURCE SERVER ACCESS TRANSPORT
server1:/apps/opus/Scripts server1 - -
ROOT@server1:/root # dfmounts
ROOT@server1:/root # svcs -a | grep nfs
disabled Nov_12 svc:/network/nfs/client:default
online Nov_12 svc:/network/nfs/status:default
online Nov_12 svc:/network/nfs/nlockmgr:default
online Jun_18 svc:/network/nfs/cbd:default
online Jun_18 svc:/network/nfs/mapid:default
online 16:28:26 svc:/network/nfs/rquota:default
online 16:28:26 svc:/network/nfs/server:default
ROOT@server1:/root # rpcinfo
program version netid address service owner
100000 4 ticots server1.rpc rpcbind superuser
100000 3 ticots server1.rpc rpcbind superuser
100000 4 ticotsord server1.rpc rpcbind superuser
100000 3 ticotsord server1.rpc rpcbind superuser
100000 4 ticlts server1.rpc rpcbind superuser
100000 3 ticlts server1.rpc rpcbind superuser
100000 4 tcp 0.0.0.0.0.111 rpcbind superuser
100000 3 tcp 0.0.0.0.0.111 rpcbind superuser
100000 2 tcp 0.0.0.0.0.111 rpcbind superuser
100000 4 udp 0.0.0.0.0.111 rpcbind superuser
100000 3 udp 0.0.0.0.0.111 rpcbind superuser
100000 2 udp 0.0.0.0.0.111 rpcbind superuser
100024 1 udp 0.0.0.0.128.4 status superuser
100024 1 tcp 0.0.0.0.128.3 status superuser
100024 1 ticlts \000\000\000\022 status superuser
100024 1 ticotsord \000\000\000\025 status superuser
100024 1 ticots \000\000\000\030 status superuser
100133 1 udp 0.0.0.0.128.4 - superuser
100133 1 tcp 0.0.0.0.128.3 - superuser
100133 1 ticlts \000\000\000\022 - superuser
100133 1 ticotsord \000\000\000\025 - superuser
100133 1 ticots \000\000\000\030 - superuser
100007 3 udp 0.0.0.0.128.7 ypbind superuser
100007 2 udp 0.0.0.0.128.7 ypbind superuser
100007 1 udp 0.0.0.0.128.7 ypbind superuser
100007 3 tcp 0.0.0.0.128.4 ypbind superuser
100007 2 tcp 0.0.0.0.128.4 ypbind superuser
100007 1 tcp 0.0.0.0.128.4 ypbind superuser
100007 3 ticlts \000\000\000< ypbind superuser
100007 2 ticlts \000\000\000< ypbind superuser
100007 3 ticotsord \000\000\000C ypbind superuser
100007 2 ticotsord \000\000\000C ypbind superuser
100007 3 ticots \000\000\000J ypbind superuser
100021 1 udp 0.0.0.0.15.205 nlockmgr 1
100021 2 udp 0.0.0.0.15.205 nlockmgr 1
100021 3 udp 0.0.0.0.15.205 nlockmgr 1
100021 4 udp 0.0.0.0.15.205 nlockmgr 1
100021 1 tcp 0.0.0.0.15.205 nlockmgr 1
100021 2 tcp 0.0.0.0.15.205 nlockmgr 1
100021 3 tcp 0.0.0.0.15.205 nlockmgr 1
100021 4 tcp 0.0.0.0.15.205 nlockmgr 1
100169 1 ticlts \000\000\000\177 - superuser
100169 1 ticotsord \000\000\000\201 - superuser
100169 1 ticots \000\000\000\203 - superuser
100134 1 ticotsord \000\000\013\002 ktkt_warnd superuser
100155 1 ticotsord \000\000\013\005 smserverd superuser
100068 2 udp 0.0.0.0.178.168 cmsd superuser
100068 3 udp 0.0.0.0.178.168 cmsd superuser
100068 4 udp 0.0.0.0.178.168 cmsd superuser
100068 5 udp 0.0.0.0.178.168 cmsd superuser
100424 1 ticotsord \000\000\013\020 - superuser
100234 1 ticotsord \000\000\013\023 gssd superuser
100068 2 tcp 0.0.0.0.215.172 cmsd superuser
100068 3 tcp 0.0.0.0.215.172 cmsd superuser
100068 4 tcp 0.0.0.0.215.172 cmsd superuser
100068 5 tcp 0.0.0.0.215.172 cmsd superuser
1289637086 5 tcp 0.0.0.0.218.201 - 8444
1289637086 1 tcp 0.0.0.0.218.201 - 8444
100099 4 ticotsord server1.autofs - superuser
1289637087 5 tcp 0.0.0.0.162.45 - 2287271
1289637087 1 tcp 0.0.0.0.162.45 - 2287271
805306372 1 udp 0.0.0.0.137.177 - superuser
1289637088 5 tcp 0.0.0.0.128.120 - 2002919
1289637088 1 tcp 0.0.0.0.128.120 - 2002919
1073741824 1 tcp 0.0.0.0.185.102 - 1
1289637089 5 tcp 0.0.0.0.172.202 - 2287271
1289637089 1 tcp 0.0.0.0.172.202 - 2287271
100011 1 ticlts \000\000\232\002 rquotad superuser
100011 1 udp 0.0.0.0.162.189 rquotad superuser
100231 1 ticlts server1.nfsauth - superuser
100231 1 ticotsord server1.nfsauth - superuser
100231 1 ticots server1.nfsauth - superuser
100005 1 udp 0.0.0.0.162.190 mountd superuser
100005 1 ticlts \000\000\232\026 mountd superuser
100005 1 tcp 0.0.0.0.132.158 mountd superuser
100005 1 ticotsord \000\000\232\033 mountd superuser
100005 1 ticots \000\000\232\036 mountd superuser
100005 2 udp 0.0.0.0.162.190 mountd superuser
100005 2 ticlts \000\000\232\026 mountd superuser
100005 2 tcp 0.0.0.0.132.158 mountd superuser
100005 2 ticotsord \000\000\232\033 mountd superuser
100005 2 ticots \000\000\232\036 mountd superuser
100005 3 udp 0.0.0.0.162.190 mountd superuser
100005 3 ticlts \000\000\232\026 mountd superuser
100005 3 tcp 0.0.0.0.132.158 mountd superuser
100005 3 ticotsord \000\000\232\033 mountd superuser
100005 3 ticots \000\000\232\036 mountd superuser
100003 2 udp 0.0.0.0.8.1 nfs 1
100003 3 udp 0.0.0.0.8.1 nfs 1
100227 2 udp 0.0.0.0.8.1 nfs_acl 1
100227 3 udp 0.0.0.0.8.1 nfs_acl 1
100003 2 tcp 0.0.0.0.8.1 nfs 1
100003 3 tcp 0.0.0.0.8.1 nfs 1
100003 4 tcp 0.0.0.0.8.1 nfs 1
100227 2 tcp 0.0.0.0.8.1 nfs_acl 1
100227 3 tcp 0.0.0.0.8.1 nfs_acl 1
1. Concept:
NFS is a set of protocals
2. Daemons:
Server
----------
nfsd
mountd ; receives client's mount request and sends back handle
statd
lockd
Client
----------
statd
lockd
3. Files
A) Server
/etc/dfs/dfstab ;list what to share out
------------------
share -o ro /usr/share/man
related commands:
share
shareall
unshare
unshareall
share ;show what's currently share out
/etc/dfs/sharetab ;stores the results of the share command
B) Client
/etc/vfstab ;specifies nfs server's share
/etc/rmtab ;shows what's currently mounted
#dfshares server
#dfmounts server ;not supported in NFS 4.0
NFS 4.0
-----------------------------
Features:
- Stateful connections
- Single protocal - (server) nfsd,nfsmapid (client) nfs4cbd,nfsmapid
- Improved firewall support, uses well-known port 2049
Note: server may run mountd/lockd/statd to support earlier versions of nfs.
Extra daemon: nfs4cbd - NFS V4 callback daemon. Runs on the client.
Files
/etc/dfs/dfstab
/etc/dfs/sharetab
/etc/nfs/nfslog.conf
/etc/default/nfslogd
/etc/default/nfs
/etc/dfs/fstypes ; the default filesystem types for remote FS
ksh:gulf1# cat /etc/dfs/fstypes
nfs NFS Utilities
autofs AUTOFS Utilities
cachefs CACHEFS Utilities
----------------------------------
Commands:
To start NFS server
#/etc/init.d/nfs.server start or
svcadm -v enable svc:/network/nfs/server
#mount -o ro server:/usr/share/man /usr/share/man
#mount ; shows what's currently mounted
share -F nfs -o ro /directory
share -F nfs -o rw,rw=client1 /directory
share -F nfs -o root=client2 /directory
share -F nfs -o ro,anon=0 /directory ; anonymous user is uid 0, jumpstart
share -F nfs \
-o ro=client:client2,rw=netgrp:@192.168.100:.us.db.com,root=client4 /directory
By default, anonymous user is mapped as nobody 60001. But anon= access list
can set it to something else. anonymous user is any user who doesn't have
account on the server. "-o anon=-1 " will deny anonymous users.
Quick Guide:
Server -
#svcadm -v enable svc:/network/nfs/server
#echo "share -F nfs -o ro=client /export/home/nfs" >> /etc/dfs/dfstab
#shareall
#share
Client -
#svcadm -v enable svc:/network/nfs/client
#dfsshare server
#mount -F nfs server:/export/home/nfs /mnt
mount options:
rw | ro
bg | fg ; default is fg - trys mount in foreground
soft | hard ; soft reports error and stops trying
intro | nointr ; enable or disable keyboard interrupts to kill hanging client
; intr+hard will allow control C to stop trying
suid | nosuid ; whether to enable setuid
timeo=n ; time out n thenths of a second
retry=n ; number of retry, default 10,000 times!!!!
retrans=n ; number of NFS retransmissions . default udp 5. NA for tcp
nfslogging
Server logging isn't supported in NFS version 4.
nfslogd
/etc/nfs/nfslog.conf
Read write for client1, read only for the rest clients
#share -o rw=client, ro=10.10.100.0 /directory
Example : NFS implementation
ROOT@server1:/root # cat /etc/dfs/dfstab
# Place share(1M) commands here for automatic execution
# on entering init state 3.
#
# Issue the command 'svcadm enable network/nfs/server' to
# run the NFS daemon processes and the share commands, after adding
# the very first entry to this file.
#
# share [-F fstype] [ -o options] [-d "
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /export/home2
share -F nfs -o rw=client.sg.abcd.com -d "CVS Share" /apps/opus/Scripts
ROOT@server1:/root # svcs -a | grep nfs
disabled Nov_12 svc:/network/nfs/client:default
disabled Nov_12 svc:/network/nfs/server:default
disabled Nov_12 svc:/network/nfs/rquota:default
online Nov_12 svc:/network/nfs/status:default
online Nov_12 svc:/network/nfs/nlockmgr:default
online Jun_18 svc:/network/nfs/cbd:default
online Jun_18 svc:/network/nfs/mapid:default
ROOT@server1:/root # share /apps/opus/Scripts
ROOT@server1:/root # showmount -e
export list for server1:
/apps/opus/Scripts client.sg.abcd.com
ROOT@server1:/root # svcadm enable svc:/network/nfs/server
ROOT@server1:/root # share
- /apps/opus/Scripts rw=client.sg.abcd.com "CVS Share"
ROOT@server1:/root # dfshares
RESOURCE SERVER ACCESS TRANSPORT
server1:/apps/opus/Scripts server1 - -
ROOT@server1:/root # dfmounts
ROOT@server1:/root # svcs -a | grep nfs
disabled Nov_12 svc:/network/nfs/client:default
online Nov_12 svc:/network/nfs/status:default
online Nov_12 svc:/network/nfs/nlockmgr:default
online Jun_18 svc:/network/nfs/cbd:default
online Jun_18 svc:/network/nfs/mapid:default
online 16:28:26 svc:/network/nfs/rquota:default
online 16:28:26 svc:/network/nfs/server:default
ROOT@server1:/root # rpcinfo
program version netid address service owner
100000 4 ticots server1.rpc rpcbind superuser
100000 3 ticots server1.rpc rpcbind superuser
100000 4 ticotsord server1.rpc rpcbind superuser
100000 3 ticotsord server1.rpc rpcbind superuser
100000 4 ticlts server1.rpc rpcbind superuser
100000 3 ticlts server1.rpc rpcbind superuser
100000 4 tcp 0.0.0.0.0.111 rpcbind superuser
100000 3 tcp 0.0.0.0.0.111 rpcbind superuser
100000 2 tcp 0.0.0.0.0.111 rpcbind superuser
100000 4 udp 0.0.0.0.0.111 rpcbind superuser
100000 3 udp 0.0.0.0.0.111 rpcbind superuser
100000 2 udp 0.0.0.0.0.111 rpcbind superuser
100024 1 udp 0.0.0.0.128.4 status superuser
100024 1 tcp 0.0.0.0.128.3 status superuser
100024 1 ticlts \000\000\000\022 status superuser
100024 1 ticotsord \000\000\000\025 status superuser
100024 1 ticots \000\000\000\030 status superuser
100133 1 udp 0.0.0.0.128.4 - superuser
100133 1 tcp 0.0.0.0.128.3 - superuser
100133 1 ticlts \000\000\000\022 - superuser
100133 1 ticotsord \000\000\000\025 - superuser
100133 1 ticots \000\000\000\030 - superuser
100007 3 udp 0.0.0.0.128.7 ypbind superuser
100007 2 udp 0.0.0.0.128.7 ypbind superuser
100007 1 udp 0.0.0.0.128.7 ypbind superuser
100007 3 tcp 0.0.0.0.128.4 ypbind superuser
100007 2 tcp 0.0.0.0.128.4 ypbind superuser
100007 1 tcp 0.0.0.0.128.4 ypbind superuser
100007 3 ticlts \000\000\000< ypbind superuser
100007 2 ticlts \000\000\000< ypbind superuser
100007 3 ticotsord \000\000\000C ypbind superuser
100007 2 ticotsord \000\000\000C ypbind superuser
100007 3 ticots \000\000\000J ypbind superuser
100021 1 udp 0.0.0.0.15.205 nlockmgr 1
100021 2 udp 0.0.0.0.15.205 nlockmgr 1
100021 3 udp 0.0.0.0.15.205 nlockmgr 1
100021 4 udp 0.0.0.0.15.205 nlockmgr 1
100021 1 tcp 0.0.0.0.15.205 nlockmgr 1
100021 2 tcp 0.0.0.0.15.205 nlockmgr 1
100021 3 tcp 0.0.0.0.15.205 nlockmgr 1
100021 4 tcp 0.0.0.0.15.205 nlockmgr 1
100169 1 ticlts \000\000\000\177 - superuser
100169 1 ticotsord \000\000\000\201 - superuser
100169 1 ticots \000\000\000\203 - superuser
100134 1 ticotsord \000\000\013\002 ktkt_warnd superuser
100155 1 ticotsord \000\000\013\005 smserverd superuser
100068 2 udp 0.0.0.0.178.168 cmsd superuser
100068 3 udp 0.0.0.0.178.168 cmsd superuser
100068 4 udp 0.0.0.0.178.168 cmsd superuser
100068 5 udp 0.0.0.0.178.168 cmsd superuser
100424 1 ticotsord \000\000\013\020 - superuser
100234 1 ticotsord \000\000\013\023 gssd superuser
100068 2 tcp 0.0.0.0.215.172 cmsd superuser
100068 3 tcp 0.0.0.0.215.172 cmsd superuser
100068 4 tcp 0.0.0.0.215.172 cmsd superuser
100068 5 tcp 0.0.0.0.215.172 cmsd superuser
1289637086 5 tcp 0.0.0.0.218.201 - 8444
1289637086 1 tcp 0.0.0.0.218.201 - 8444
100099 4 ticotsord server1.autofs - superuser
1289637087 5 tcp 0.0.0.0.162.45 - 2287271
1289637087 1 tcp 0.0.0.0.162.45 - 2287271
805306372 1 udp 0.0.0.0.137.177 - superuser
1289637088 5 tcp 0.0.0.0.128.120 - 2002919
1289637088 1 tcp 0.0.0.0.128.120 - 2002919
1073741824 1 tcp 0.0.0.0.185.102 - 1
1289637089 5 tcp 0.0.0.0.172.202 - 2287271
1289637089 1 tcp 0.0.0.0.172.202 - 2287271
100011 1 ticlts \000\000\232\002 rquotad superuser
100011 1 udp 0.0.0.0.162.189 rquotad superuser
100231 1 ticlts server1.nfsauth - superuser
100231 1 ticotsord server1.nfsauth - superuser
100231 1 ticots server1.nfsauth - superuser
100005 1 udp 0.0.0.0.162.190 mountd superuser
100005 1 ticlts \000\000\232\026 mountd superuser
100005 1 tcp 0.0.0.0.132.158 mountd superuser
100005 1 ticotsord \000\000\232\033 mountd superuser
100005 1 ticots \000\000\232\036 mountd superuser
100005 2 udp 0.0.0.0.162.190 mountd superuser
100005 2 ticlts \000\000\232\026 mountd superuser
100005 2 tcp 0.0.0.0.132.158 mountd superuser
100005 2 ticotsord \000\000\232\033 mountd superuser
100005 2 ticots \000\000\232\036 mountd superuser
100005 3 udp 0.0.0.0.162.190 mountd superuser
100005 3 ticlts \000\000\232\026 mountd superuser
100005 3 tcp 0.0.0.0.132.158 mountd superuser
100005 3 ticotsord \000\000\232\033 mountd superuser
100005 3 ticots \000\000\232\036 mountd superuser
100003 2 udp 0.0.0.0.8.1 nfs 1
100003 3 udp 0.0.0.0.8.1 nfs 1
100227 2 udp 0.0.0.0.8.1 nfs_acl 1
100227 3 udp 0.0.0.0.8.1 nfs_acl 1
100003 2 tcp 0.0.0.0.8.1 nfs 1
100003 3 tcp 0.0.0.0.8.1 nfs 1
100003 4 tcp 0.0.0.0.8.1 nfs 1
100227 2 tcp 0.0.0.0.8.1 nfs_acl 1
100227 3 tcp 0.0.0.0.8.1 nfs_acl 1
Labels:
Solaris 10 Administration
NFS Client 101 - Quick Setup
On the client side, test if remote server has NFS share setup:
In this example,
remote_host1, remote_host2 have nfs share while remote_host3 doesn't.
(NOTE: A good nfs server will return similar result in responding to "showmount -e" command. If you get "rpc not registered, it means remote nfs isn't setup correctly.)
(Example1: all hosts end with .abc.def.com can access this nfs share on remote_host1)
ROOT@client:/root # showmount -e remote_host1 export list for remote_host1:
/export/local/gts .abc.def.com
(Example2: any hosts on the network can access these 5 shares on remote_host2)
ROOT@client:/root # showmount -e remote_host2
export list for remote_host2:
/export/ABCbuild (everyone)
/export/ABCdatabase (everyone)
/export/vmware (everyone)
/tftpboot (everyone)
/export/flar_images (everyone)
(Example3: remote_host3 doesn't have nfs share setup)
ROOT@client:/root # showmount -e remote_host3
showmount: remote_host3: RPC: Program not registered
If NFS isn't setup on the remote host, the remote host's rpc table will have no nfs info. Let's see.
ROOT@client:/root # rpcinfo -p remote_host3 | grep nfs (returns nothing)
ROOT@client:/root # rpcinfo -p remote_host2 | grep nfs (returns nfs port number, more details of rpc see my other post - Solaris rpc)
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
To mount remote_host2's nfs share /export/ABCdatabase to local /mnt mountpoint:
(Note: /mnt can be any local directory name, if you mount nfs share to a non-empty directory, it will replace the direct content with nfs share content. When you unmount it, original content of that non-empty directory will come back.)
ROOT@client:/root # mount remote_host2:/export/ABCdatabase /mnt
ROOT@client:/root # cd /mnt
ROOT@client:/root # ls
(you should see the content, if mount returns error, contact SA make sure the remote_host2 permits client to mount the share)
In this example,
remote_host1, remote_host2 have nfs share while remote_host3 doesn't.
(NOTE: A good nfs server will return similar result in responding to "showmount -e" command. If you get "rpc not registered, it means remote nfs isn't setup correctly.)
(Example1: all hosts end with .abc.def.com can access this nfs share on remote_host1)
ROOT@client:/root # showmount -e remote_host1 export list for remote_host1:
/export/local/gts .abc.def.com
(Example2: any hosts on the network can access these 5 shares on remote_host2)
ROOT@client:/root # showmount -e remote_host2
export list for remote_host2:
/export/ABCbuild (everyone)
/export/ABCdatabase (everyone)
/export/vmware (everyone)
/tftpboot (everyone)
/export/flar_images (everyone)
(Example3: remote_host3 doesn't have nfs share setup)
ROOT@client:/root # showmount -e remote_host3
showmount: remote_host3: RPC: Program not registered
If NFS isn't setup on the remote host, the remote host's rpc table will have no nfs info. Let's see.
ROOT@client:/root # rpcinfo -p remote_host3 | grep nfs (returns nothing)
ROOT@client:/root # rpcinfo -p remote_host2 | grep nfs (returns nfs port number, more details of rpc see my other post - Solaris rpc)
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100227 2 udp 2049 nfs_acl
100227 3 udp 2049 nfs_acl
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100227 2 tcp 2049 nfs_acl
100227 3 tcp 2049 nfs_acl
To mount remote_host2's nfs share /export/ABCdatabase to local /mnt mountpoint:
(Note: /mnt can be any local directory name, if you mount nfs share to a non-empty directory, it will replace the direct content with nfs share content. When you unmount it, original content of that non-empty directory will come back.)
ROOT@client:/root # mount remote_host2:/export/ABCdatabase /mnt
ROOT@client:/root # cd /mnt
ROOT@client:/root # ls
(you should see the content, if mount returns error, contact SA make sure the remote_host2 permits client to mount the share)
Labels:
Solaris 10 Administration
Subscribe to:
Posts (Atom)