This is an old revision of the document!
Howto: https://napp-it.org/downloads/omnios.html
See also Shared Storage System Notes.
See also napp-it.
See also ZFS.
For large-memory systems, choose a larger boot drive or disable dump because the swap and dump devices take up a lot of space by default.
Reference HowTo: http://virtuallyhyper.com/2013/04/installing-and-configuring-omnios/
Solaris 11 Administrator Cheat Sheet:
Solaris 11 Package Manager Cheat Sheet:
echo ::memstat | mdb -k swap -lh
pkgadd -d package_name.pkg
A normal 'reboot' command does a fast reboot. This does a full reboot:
reboot -p
The following commands change the default behavior of the
reboot
command to do a full reboot not a fast reboot.
svccfg -s "system/boot-config:default" setprop config/fastreboot_default=false svccfg -s "system/boot-config:default" setprop config/fastreboot_onpanic=false svcadm refresh svc:system/boot-config:default
Update the 'pkg' package manager first:
pkg install pkg:/package/pkg
You can then do a trial run image update:
pkg image-update -nv
Run the same command again without the 'n' flag to actually do the update.
Update Napp-IT first: http://www.napp-it.org/doc/downloads/setup_napp-it_os.pdf
Then OmniOS:
http://docs.oracle.com/cd/E23824_01/html/E21801/administer.html
beadm list # list BE's beadm rename <be-name> <new-be-name> # rename a BE - can't rename active BE beadm destroy <be-name> # delete a BE beadm activate <be-name> # make another BE active on reboot
http://omnios.omniti.com/wiki.php/Installation
Download the CD image and burn it to a disc or download a USB image and burn it to a flash drive:
dd if=/path/to/image.usb-dd of=/dev/sdx bs=1M
bootadm set-menu timeout=5
The system installs a root user with a blank password.
Set the root password with the passwd
command.
Enable root login via ssh in the Napp-IT web interface: Services > SSH allow root
or by editing the /etc/ssh/sshd_config
file, changing the PermitRootLogin
option to yes
.
http://docs.oracle.com/cd/E19963-01/html/821-1458/gkind.html
New tools supersede the older ipconfig
and ndd
tools:
dladm
ipadm
Useful networking commands (examples below):
dladm show-phys dladm show-link ipadm show-if [interface] ipadm show-addr [addrobj] ipadm create-addr -T address-type -a address/prefixlen addrobj ipadm show-addrprop [-p property] [addrobj]
http://docs.oracle.com/cd/E23824_01/html/821-1458/gljtt.html
dladm show-phys # list available interfaces dladm show-link # shows link status dladm show-ether # shows Ethernet info dladm show-aggr # shows aggregated interfaces ipadm show-addr # show IP addressing netstat -nr # show IP routes
Disable nwam (Network AutoMagic):
svcs nwam svcs network/physical:default svcadm disable svc:/network/physical:nwam svcadm enable svc:/network/physical:default
Delete an IP interface before configuring it, if it already exists:
ipadm show-if ipadm delete-if igb0
ipadm create-if igb0 ipadm create-addr -T static -a 192.168.1.4/24 igb0/v4 # assign an IPv4 address route -p add default 192.168.1.1 # assign a default route if not already configured
ipadm create-addr -T dhcp igb0/dhcp
Use your domain name and your internal DNS server.
echo 'domain domainname.tld' > /etc/resolv.conf echo 'nameserver 10.0.0.5' >> /etc/resolv.conf echo 'nameserver 8.8.8.8' >> /etc/resolv.conf cp /etc/nsswitch.dns /etc/nsswitch.conf
vi /etc/ssh/sshd_config PermitRootLogin yes GSSAPIAuthenication no # Fix slow logins AllowUsers root backupuser # If you need another user to use SSH
svcadm restart svc:/network/ssh:default
See also UNIX Link Aggreagation (Bonding)
vi /kernel/drv/ixgbe.conf default_mtu = 9000;
Needed for LSI HBAs
Download the SAS2IRCU archive from Broadcom and upload it to the desired server.
https://www.broadcom.com/support/download-search?pg=&pf=&pn=&pa=&po=&dk=sas2ircu
chmod +x sas2ircu ./sas2ircu list ./sas2ircu 0 display
Only works with RAID controllers, not HBAs.
Download the MegaCLI archive from Broadcom and upload it to the desired server.
https://www.broadcom.com/support/download-search?pg=&pf=&pn=&pa=&po=&dk=megacli
pkgadd -d MegaCli.pkg chmod +x /opt/MegaRAID/CLI/MegaCli /opt/MegaRAID/CLI/MegaCli
See also Napp-IT ZFS Storage Server
bootadm install-bootloader -Mfv -P rpool
</note>
Make the mirror drive bootable:
<file>
pfexec installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c5t3d0s0
</file>
svcs proftpd svcadm enable proftpd svcadm disable proftpd
So far, I have only used manual methods for controlling users, home directories and permissions!
===== NTP =====
Configure NTP:
vi /etc/inet/ntp.conf
Edit:
pool 0.us.pool.ntp.org iburst pool 1.us.pool.ntp.org pool 2.us.pool.ntp.org pool 3.us.pool.ntp.org
Set the time and enable the NTP daemon:
ntpdate pool.ntp.org svcadm enable ntp
NTP takes a while to get synchronized. Check the status (on localhost) like this:
ntpq -p
===== IPMI =====
pkg install ipmi ipmitool
====== Legacy Info Below ======
===== Add Unrecognized New Hardware =====
While this section was written for the new Intel x540 10GbE NIC, it seems this driver has been updated and these steps are no longer necessary. These notes are left as an example only.
Determine the 'vendor' and 'device' id's that aren't being recognized by the 'ixgbe' driver, then add them to the list:
scanpci grep ixgbe /etc/driver_aliases update_drv -a -i "pci8086,1528" ixgbe ifconfig -a plumb ifconfig -a modinfo|grep ixgbe more /etc/path_to_inst | grep ixgbe
===== Add New Persistent NIC =====
If you are using Napp-IT, use it for assigning IP addresses.
vi /etc/hostname.ixgbe0
10.1.10.5 netmask 255.255.255.0
vi /etc/hostname.ixgbe1
10.1.10.6 netmask 255.255.255.0
vi /etc/inet/hosts
10.1.10.5 10g-eth-1 10.1.10.6 10g-eth-2
===== Configure Jumbo Frames =====
==== Intel X540 10GbE NIC ====
http://docs.oracle.com/cd/E19254-01/820-7895-11/cggfhffg.html
nano /kernel/drv/ixgbe.conf default_mtu = 9000; reboot
==== General Jumbo Frames Info ====
http://docs.oracle.com/cd/E19862-01/820-1606-12/jumbo_fms.html
https://blogs.oracle.com/taylor22/entry/nfs_streaming_over_10_gbe
http://docs.oracle.com/cd/E19254-01/820-7895-11/cggfhffg.html
http://hardforum.com/showthread.php?t=1601960