Creating an Oracle Solaris 11 USB install device

Creating an Oracle Solaris 11 USB install device.

From: The let’s put the cart before the horse department

First off, in order to create a solaris 11 bootable USB stick, you need the usbcopy utility which is only on Solaris 11.

Booting off the Solaris 11 live DVD won’t work because /var/pkg/lock and / are read only
(And here I thought I was going to be sneaky).

Also the opensolaris windows utility for creating a boot-able USB stick won’t work with the Solaris 11 USB image.

1. Download the Solaris 11 text install iso

2. Burn it to CD

2. Install Solaris 11

4. Install the Solaris install utilities

root@solaris11:/# pkg install install/distribution-constructor

5. Download the Solaris 11 USB image

6. Burn the image to the USB stick

root@solaris11:/# usbcopy sol-11-1111-text-x86.usb
Found the following USB devices:
0: /dev/rdsk/c5t0d0p0 7.8 GB SanDisk Cruzer Contour 4.08
Enter the number of your choice: 0

WARNING: All data on your USB storage will be lost.
Are you sure you want to install to
SanDisk Cruzer Contour 4.08, 7800 MB at /dev/rdsk/c5t0d0p0 ? (y/n) y
Copying and verifying image to USB device
Finished 515 MB in 136 seconds (3.7MB/s)
0 block(s) re-written due to verification failure
Installing grub to USB device /dev/rdsk/c5t0d0s0
Completed copy to USB

root@solaris11:/# umount /media/PENDRIVE-1

What happened to sys-unconfig

What happened to sys-unconfig?

It’s been replaced with sysconfig configure

sysconfig options

Example Purpose
Unconfigure Prepare a system to be moved or to create a zone template
Configure Perform initial configuration or reconfiguration
Interactive reconfigure Reconfigure a system interactively without a reboot
Noninteractive reconfigure Create a profile to configure or reconfigure one or more systems noninteractively

Setting up ipmp in solaris 11

Setting up ipmp in solaris 11

Identify your devices
=====================
# dladm show-link
LINK CLASS MTU STATE OVER
net1 phys 1500 up —
net0 phys 1500 up —
# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net1 Ethernet up 1000 full igb1
net0 Ethernet up 1000 full igb0

Remove any addresses if already defined
=======================================
# ipadm delete-addr net0/4
# ipadm delete-addr net1/4

Create the IPMP device and assign both network cards to it
==========================================================
# ipadm create-ipmp ipmp0
# ipadm add-ipmp -i net0 -i net1 ipmp0

Add the address
===============
# ipadm create-addr -T static -a 192.168.10.169/24 ipmp0/v4

Cleanup default route
=====================
# route -p delete default 192.168.10.1
# route -p add default 192.168.10.1 -ifp ipmp0

Verify that it is working
=========================
# ipmpstat -g
GROUP GROUPNAME STATE FDT INTERFACES
ipmp0 ipmp0 ok — net1 net0
# ipmpstat -a
ADDRESS STATE GROUP INBOUND OUTBOUND
:: down ipmp0 — —
dracko up ipmp0 net1 net1 net0

Configuring DNS client in solaris 11

Configuring DNS client in solaris 11

Make sure DNS is turned off
===========================
# svcs -a|grep dns
disabled 15:14:09 svc:/network/dns/multicast:default
disabled 15:14:11 svc:/network/dns/server:default
disabled 16:16:33 svc:/network/dns/client:default
# svcs -a|grep switch
disabled 11:04:22 svc:/system/name-service/switch:default

Fix up or build resolv.conf and nsswitch.conf just like in the old days.
These files are no longer used but you can import from them
========================================================================
# vi /etc/resolv.conf
# vi /etc/nsswitch.conf

Values are now stored in the services facility. Lets import.
============================================================
# nscfg import dns/client
# nscfg import name-service/switch

Turn it back on
===============
# svcadm enable svc:/system/name-service/switch:default
# svcadm enable dns/client
# svcs -a|egrep -e "dns/client|switch"
online 11:05:43 svc:/system/name-service/switch:default
online 11:06:06 svc:/network/dns/client:default
#

Test it
=======
# dig dracko.net|grep dracko.net.
dracko.net. 3416 IN A 173.205.127.190
#

ZFS Data Deduplication

In solaris 11, you can use the deduplication (dedup) property to remove redundant data from your ZFS file systems.

To turn in on use

zfs set dedup=on rpool

But before you do that make sure that you need it

# zdb -S rpool
Simulated DDT histogram:

bucket allocated referenced
______ ______________________________ ______________________________
refcnt blocks LSIZE PSIZE DSIZE blocks LSIZE PSIZE DSIZE
—— —— —– —– —– —— —– —– —–
1 116K 8.14G 8.14G 8.14G 116K 8.14G 8.14G 8.14G
2 3.12K 101M 101M 101M 6.72K 208M 208M 208M
4 788 11.7M 11.7M 11.7M 3.73K 60.5M 60.5M 60.5M
8 260 460K 460K 460K 2.71K 5.10M 5.10M 5.10M
16 76 42K 42K 42K 1.63K 918K 918K 918K
32 30 20.5K 20.5K 20.5K 1.10K 764K 764K 764K
64 11 8K 8K 8K 991 718K 718K 718K
128 1 1.50K 1.50K 1.50K 138 207K 207K 207K
256 2 1K 1K 1K 979 490K 490K 490K
1K 2 130K 130K 130K 3.01K 176M 176M 176M
Total 120K 8.25G 8.25G 8.25G 136K 8.58G 8.58G 8.58G

dedup = 1.04, compress = 1.00, copies = 1.00, dedup * compress / copies = 1.04

Here the dedup ratio (dedup = 1.04) is less than 2, so enabling is not recommended.