Solaris 11 USB Install
Solaris 11.4 install with USB key.
Find USB disk path to boot.
{0} ok show-disks
a) /reboot-memory@0
b) /pci@3c0/pci@1/pci@0/pci@7/SUNW,qlc@0,1/fp@0,0/disk
c) /pci@3c0/pci@1/pci@0/pci@7/SUNW,qlc@0/fp@0,0/disk
d) /pci@3c0/pci@1/pci@0/pci@2/scsi@0/disk
e) /pci@300/pci@1/pci@0/pci@4/SUNW,qlc@0,1/fp@0,0/disk
f) /pci@300/pci@1/pci@0/pci@4/SUNW,qlc@0/fp@0,0/disk
g) /pci@300/pci@1/pci@0/pci@2/scsi@0/disk
h) /pci@340/pci@1/pci@0/pci@3/usb@0/hub@8/storage@1/disk
i) /iscsi-hba/disk
q) NO SELECTION
Enter Selection, q to quit:
Select the correct path
Enter Selection, q to quit: h
/pci@340/pci@1/pci@0/pci@3/usb@0/hub@8/storage@1/disk has been selected.
Type ^Y ( Control-Y ) to insert it in the command line.
e.g. ok nvalias mydev ^Y
for creating devalias mydev for /pci@340/pci@1/pci@0/pci@3/usb@0/hub@8/storage@1/disk
{0} ok
{0} ok boot /pci@340/pci@1/pci@0/pci@3/usb@0/hub@8/storage@1/disk
Boot device: /pci@340/pci@1/pci@0/pci@3/usb@0/hub@8/storage@1/disk File and args:
USB stick will boot………
SunOS Release 5.11 Version 11.4.0.15.0 64-bit
Copyright (c) 1983, 2018, Oracle and/or its affiliates. All rights reserved.
Remounting root read/write
Probing for device nodes ...
Preparing image for use
Done mounting image
USB keyboard
-
Arabic 15. Korean
-
Belgian 16. Latin-American
-
Brazilian 17. Norwegian
-
Canadian-Bilingual 18. Portuguese
-
Canadian-French 19. Russian
-
Danish 20. Spanish
-
Dutch 21. Swedish
-
Dvorak 22. Swiss-French
-
Finnish 23. Swiss-German
-
French 24. Traditional-Chinese
-
German 25. TurkishQ
-
Italian 26. UK-English
-
Japanese-type6 27. US-English
-
Japanese
To select the keyboard layout, enter a number [default 27]:
Select the correct keyboard
To select the keyboard layout, enter a number [default 27]:26
-
Chinese - Simplified
-
Chinese - Traditional
-
English
-
French
-
German
-
Italian
-
Japanese
-
Korean
-
Portuguese - Brazil
-
Spanish
To select the language you wish to use, enter a number [default is 3]: 3
Welcome to the Oracle Solaris installation menu
1 Install Oracle Solaris
2 Install Additional Drivers
3 Shell
4 Terminal type (currently xterm)
5 Reboot
Please enter a number [1]:1
A install menu will appear use “esc” “2” to navigate the menu
Local disks
Select HDD0
Use entire disk
System name ….Solaris1 (Solaris2 Solars3 etc)
Net0
Static
Add IP address (whatever – make up?)
DNS – no (unless asked for?)
None
Europe
Britain UK
Europe London
English
United States (en_US.ISO8859-1) – doesn’t matter will be changed later
Set date & time
Keybrd
Set “root” password “newroot1”
Remove email and continue
Review the settings below before installing. Go back (F3) to make changes.
- Software: Oracle Solaris 11.4 SPARC
Root Pool Disk: 372.6GB scsi
|Computer name: solaris1
Network:
Static Configuration: net0/v4
IP Address: 192.200.8.10/24
Router: 192.200.8.250
Name service: None
Time Zone: Europe/London
Locale:
Default Language: English
|Language Support: English (United States, ISO8859-1)
Keyboard: UK-English
“esc” “2” to install Solaris
This takes approximately 30 mins
Once complete “esc” “8”
(if menu appears “5” to reboot)
SPARC T5-2, No Keyboard
Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.38.17, 255.0000 GB memory available, Serial #108412992.
Ethernet address 0:10:e0:76:40:40, Host ID: 86764040.
Boot device: /pci@300/pci@1/pci@0/pci@2/scsi@0/disk@w55cd2e404c1e387b,0:a File and args:
SunOS Release 5.11 Version 11.4.0.15.0 64-bit
Log in to Solaris “root” and password “newroot1”
root@solaris1:~# echo $TERM
xterm
root@solaris1:~# TERM=vt100;export TERM
root@solaris1:~# echo $TERM
vt100
remove USB from Solaris
umount /dev/dsk/c1t0d0s2
insert USB SSD and you will see it
root@solaris1:/# df -h
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/solaris 366G 2.7G 231G 2% /
rpool/ROOT/solaris/var
366G 358M 231G 1% /var
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 242G 11M 242G 1% /system/volatile
swap 242G 1.0M 242G 1% /tmp
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
fd 0K 0K 0K 0% /dev/fd
rpool/VARSHARE 366G 3.8M 231G 1% /var/share
rpool/VARSHARE/tmp 366G 144K 231G 1% /var/tmp
rpool/VARSHARE/kvol 366G 144K 231G 1% /var/share/kvol
rpool/VARSHARE/zones 366G 144K 231G 1% /system/zones
rpool/export 366G 152K 231G 1% /export
rpool/export/home 366G 144K 231G 1% /export/home
rpool 366G 212K 231G 1% /rpool
rpool/VARSHARE/pkg 366G 152K 231G 1% /var/share/pkg
rpool/VARSHARE/pkg/repositories
366G 144K 231G 1% /var/share/pkg/repositories
rpool/VARSHARE/sstore
366G 3.7M 231G 1% /var/share/sstore/repo
/dev/dsk/c9t0d0s2 440G 17G 419G 4% /media/Generic
root@solaris1:/# cd media
root@solaris1:/media# ls
Generic
root@solaris1:/media# cd *
root@solaris1:/media/Generic# ls
lost+found SRU_2024
root@solaris1:/media/Generic#
copy the SRU to /
root@solaris1:/media/Generic# cp -r SRU_2024 /
remove the USB disk
umount /dev/dsk/c9t0d0s2
add a publisher
pkg set-publisher -P -g /SRU_2024 solaris
root@solaris1:/# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F file:///SRU_2024/
solaris origin online F http://pkg.oracle.com/solaris/release/
pkg update --accept
extracts………..
Packages to remove: 124
Packages to install: 195
Packages to update: 495
Packages to change: 1
Mediators to change: 8
Create boot environment: Yes
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 815/815 67957/67957 1019/1019 --
PHASE ITEMS
Removing old actions 37267/37267
Installing new actions 55413/55413
Updating modified actions 44143/44143
Updating package state database Done
Updating package cache 619/619
Updating image state Done
Creating fast lookup database Done
Updating package cache 1/1
A clone of solaris exists and has been updated and activated.
On the next boot the Boot Environment be://rpool/solaris-1 will be
mounted on '/'. Reboot when ready to switch to this updated BE.
Updating package cache 1/1
root@solaris1:/# reboot
set “locale”
pkg change-facet 'facet.locale.en_GB=True' (required after SRU update!) (will now show with “pkg facet”)
Packages to change: 9
Variants/Facets to change: 1
Create boot environment: No
Create backup boot environment: Yes
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 9/9 11/11 0.2/0.2 --
PHASE ITEMS
Installing new actions 50/50
Updating package state database Done
Updating package cache 0/0
Updating image state Done
Creating fast lookup database Done
Updating package cache 1/1
root@solaris1:~#
root@solaris1:~# pkg facet
FACET VALUE SRC
locale.* False local
locale.de True local
locale.de_DE True local
locale.en True local
locale.en_GB True local
locale.en_US True local
locale.es True local
locale.es_ES True local
locale.fr True local
locale.fr_FR True local
locale.it True local
locale.it_IT True local
locale.ja True local
locale.ja_* True local
locale.ko True local
locale.ko_* True local
locale.pt True local
locale.pt_BR True local
locale.zh True local
locale.zh_CN True local
locale.zh_TW True local
root@solaris1:~#
svccfg -s svc:/system/environment:init setprop environment/LANG = astring: en_GB.ISO8859-1
svccfg -s system/environment:init setprop environment/LANG = astring: en_GB.ISO8859-1
svcadm refresh system/environment:init
reboot the server
root@solaris1:~# locale
LANG=en_GB.ISO8859-1
LC_CTYPE="en_GB.ISO8859-1"
LC_NUMERIC="en_GB.ISO8859-1"
LC_TIME="en_GB.ISO8859-1"
LC_COLLATE="en_GB.ISO8859-1"
LC_MONETARY="en_GB.ISO8859-1"
LC_MESSAGES="en_GB.ISO8859-1"
LC_ALL=
root@solaris1:~#
may see rpool error
root@solaris1:~# zpool status
pool: rpool
id: 9715258797179796146
state: ONLINE
status: The pool is formatted using an older on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
pool will no longer be accessible on older software versions.
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c0t55CD2E404C1E387Bd0 ONLINE 0 0 0
root@solaris1:~# beadm list -o name,pool_version,flags
BE Name Pool Version Flags
solaris 44 -
solaris-1 51 NR
solaris-1-backup-1 51 -
root@solaris1:~# beadm list
BE Name Flags Mountpoint Space Policy Created
solaris - - 427.66M static 2024-05-02 11:18
solaris-1 NR / 24.91G static 2024-05-02 12:39
solaris-1-backup-1 - - 294.67M static 2024-05-02 12:54
beadm destroy solaris (older version to remove)
Then do the zpool upgrade…
zpool upgrade rpool
mirror os disk
root@solaris1:~# format -e
Searching for disks...done
c0t55CD2E404C250E45d0: configured with capacity of 372.61GB
AVAILABLE DISK SELECTIONS:
- c0t55CD2E404C1E387Bd0 <ATA-ITVSC2BA3SUN400G-5DV1-372.61GB>
/scsi_vhci/disk@g55cd2e404c1e387b
/dev/chassis/SYS/SASBP/HDD0/disk
- c0t55CD2E404C250E45d0 <ATA-ITVSC2BA3SUN400G-5DV1-372.61GB>
/scsi_vhci/disk@g55cd2e404c250e45
/dev/chassis/SYS/SASBP/HDD4/disk
Specify disk (enter its number):
root@solaris1:~# zpool status
pool: rpool
id: 9715258797179796146
state: ONLINE
scan: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
c0t55CD2E404C1E387Bd0 ONLINE 0 0 0
errors: No known data errors
root@solaris1:~# zpool attach -f rpool c0t55CD2E404C1E387Bd0 c0t55CD2E404C250E45d0
Make sure to wait until resilver is done before rebooting.
Clear all faults…
svcadm disable -s svc:/system/fmd:default
cd /var/fm/fmd
find /var/fm/fmd -type f -exec ls {} \;
find /var/fm/fmd -type f -exec rm {} \;
svcadm enable svc:/system/fmd:default
create raidz filesystem on additional disks.
zpool create MYPOOL raidz c4t0d0 c5t0d0 etc etc
To remove just one Solaris publisher use the following….for example
pkg set-publisher -G / SRU_2024 solaris
pkg set-publisher -P -g /SRU_2024 solaris
$ pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release/
isvpub (non-sticky) origin online F file:///var/share/pkgrepos/isvrepo/
devtool (disabled) origin online F http://pkg.example1.com/
pkg set-publisher -g https://pkg.oracle.com/solaris/release/ solaris