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.