This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:unix:oi [2013/02/12 15:43] gcooper |
computing:unix:oi [2019/10/21 08:54] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== OpenIndiana ====== | ====== OpenIndiana ====== | ||
- | See also **[[computing:storage: | + | See also **[[va:va_shared_storage|Shared Storage System |
See also **[[computing: | See also **[[computing: | ||
Line 14: | Line 14: | ||
http:// | http:// | ||
+ | |||
+ | ==== Solaris 11 Cheat Sheets ==== | ||
+ | |||
+ | * How to create network configuration profiles? | ||
+ | * How to configure VLANS? | ||
+ | * How to manipulate Zones? | ||
+ | * How to use ZFS shadow migration? | ||
+ | |||
+ | Solaris 11 Administrator Cheat Sheet: http:// | ||
+ | |||
+ | Solaris 11 Package Manager Cheat Sheet: http:// | ||
===== Full Reboot ===== | ===== Full Reboot ===== | ||
Line 40: | Line 51: | ||
Adjusting the Sizes of Your ZFS Swap and Dump Devices: http:// | Adjusting the Sizes of Your ZFS Swap and Dump Devices: http:// | ||
+ | |||
+ | ==== Dump ==== | ||
+ | |||
+ | :!: You only need a dump device if you need (and usually buy) help from OS devs, example from OmniTi. | ||
+ | If so, you may need a larger rpool commensurate with your server' | ||
+ | |||
+ | Estimate needed dump space (128GB RAM): | ||
+ | |||
+ | < | ||
+ | root@stor-01:/ | ||
+ | Estimated dump size: 61.5G | ||
+ | </ | ||
+ | |||
+ | Query the current dump device size: | ||
+ | |||
+ | < | ||
+ | root@stor-01:/ | ||
+ | NAME PROPERTY | ||
+ | rpool/ | ||
+ | </ | ||
+ | |||
+ | Change the dump volume size: | ||
< | < | ||
Line 46: | Line 79: | ||
zfs set volsize=4G rpool/dump | zfs set volsize=4G rpool/dump | ||
</ | </ | ||
+ | |||
+ | Disable dump and delete the dump volume: | ||
+ | |||
+ | < | ||
+ | dumpadm -d none | ||
+ | zfs destroy rpool/dump | ||
+ | </ | ||
+ | |||
+ | ==== Swap ==== | ||
+ | |||
+ | :!: You can probably skip this section if you are configuring a storage server as the swap space is not pre-allocated. | ||
Note the change in blocks allocated to swap: | Note the change in blocks allocated to swap: | ||
Line 90: | Line 134: | ||
</ | </ | ||
- | Run it again without the ' | + | Run it again without the ' |
+ | |||
+ | ===== Manage Boot Environments ===== | ||
+ | |||
+ | http:// | ||
< | < | ||
- | beadm list | + | beadm list # list BE's |
+ | beadm rename < | ||
+ | beadm destroy < | ||
+ | beadm activate < | ||
</ | </ | ||
Line 211: | Line 262: | ||
< | < | ||
- | 10.10.10.5 netmask 255.255.255.0 | + | 10.1.10.5 netmask 255.255.255.0 |
</ | </ | ||
Line 219: | Line 270: | ||
< | < | ||
- | 10.10.10.6 netmask 255.255.255.0 | + | 10.1.10.6 netmask 255.255.255.0 |
</ | </ | ||
Line 227: | Line 278: | ||
< | < | ||
- | 10.10.10.5 | + | 10.1.10.5 |
- | 10.10.10.6 | + | 10.1.10.6 |
</ | </ | ||
+ | ==== Configure Jumbo Frames ==== | ||
+ | === Intel X540 10GbE NIC === | ||
- | ==== Configure | + | http:// |
+ | |||
+ | < | ||
+ | nano / | ||
+ | |||
+ | default_mtu | ||
+ | |||
+ | reboot | ||
+ | </ | ||
+ | |||
+ | === General | ||
+ | |||
+ | http:// | ||
+ | |||
+ | http:// | ||
https:// | https:// | ||
Line 246: | Line 313: | ||
* All devices using jumbo frames should run in their own VLAN | * All devices using jumbo frames should run in their own VLAN | ||
* Set the MTU to 9000 | * Set the MTU to 9000 | ||
- | * Test traffic | ||
- | * < | ||
- | * < | ||
+ | === Configure Jumbo Frames on OpenIndiana === | ||
+ | |||
+ | Your NIC may be identified as '' | ||
+ | Enable Jumbo Frames using this command: | ||
+ | |||
+ | < | ||
+ | ndd -set /dev/ixgbe0 accept-jumbo 1 | ||
+ | </ | ||
+ | |||
+ | Set the MTU on the adapter to 9000 using this command: | ||
+ | |||
+ | < | ||
+ | ifconfig ixgbe0 mtu 9000 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | ipadm set-ifprop mtu 9000 | ||
+ | </ | ||
+ | |||
+ | === Test Jumbo Frames === | ||
+ | |||
+ | You can test the settings by pinging to and from the machine with 9000 byte packets. | ||
+ | |||
+ | To test from a remote client, run this command: | ||
+ | |||
+ | < | ||
+ | ping -s 9000 IP_of_Solaris_machine | ||
+ | </ | ||
+ | |||
+ | To test from the Solaris machine, run this command: | ||
+ | |||
+ | < | ||
+ | ping -s IP_of_another_machine 9000 4 | ||
+ | </ | ||
===== Services (Daemons) ===== | ===== Services (Daemons) ===== | ||
Line 359: | Line 457: | ||
reboot -p | reboot -p | ||
</ | </ | ||
+ | |||
+ | ====== Notes from Others ====== | ||
+ | |||
+ | ===== Shutdown / Reboot Commands ===== | ||
+ | |||
+ | * Poweroff | ||
+ | * Reboot | ||
+ | |||
+ | ===== Allow Root SSH ===== | ||
+ | |||
+ | - vi / | ||
+ | - change permitrootlogin to yes | ||
+ | - vi / | ||
+ | - change line: CONSOLE =/ | ||
+ | - usermod -K type=normal root | ||
+ | - reboot | ||
+ | |||
+ | ===== Steps for Solaris Raid1 ===== | ||
+ | |||
+ | - Create Solaris parition with format/ | ||
+ | - copy volumes from disk 0 to disk 1 | ||
+ | - prtvtoc / | ||
+ | - Add second drive to rpool by attaching drive 0 and 1 | ||
+ | - Zpool attach -f rpool c3t0d0s0 c3t1d0s0 | ||
+ | - Check status: zpool status rpool | ||
+ | |||
+ | ===== Steps for IP Address Configuration ===== | ||
+ | |||
+ | - If no ip addresses exist in ifconfig -a edit /etc/hosts and make sure you have an entry for static ip and hostname. | ||
+ | - svcadm disable svc:/ | ||
+ | - svcadm enable svc:/ | ||
+ | - dladm show-phys | ||
+ | |||
+ | ==== Optional - Rename Link ==== | ||
+ | |||
+ | - dladm rename-link oldname Net.1 | ||
+ | - ipadm create-addr -T static -a 192.168.10.7/ | ||
+ | - route -p add default 192.168.10.254 | ||
+ | - check for dns server info: | ||
+ | - cat / | ||
+ | - add our dns with vi if its missing: nameserver | ||
+ | - Check that we are configured to use files and dns for resolution: | ||
+ | - cat / | ||
+ | - vi / | ||
+ | - put files dns for hosts, ipnodes, and networks. | ||
+ | |||
+ | ===== Enable Jumbo Frames ===== | ||
+ | |||
+ | < | ||
+ | dladm set-linkprop -p mtu=9000 InterfaceName | ||
+ | </ | ||
+ | |||
+ | ===== Link Aggregation ===== | ||
+ | |||
+ | Similar terms: NIC Bonding, NIC Teaming | ||
+ | |||
+ | < | ||
+ | dladm show-link | ||
+ | dladm create-aggr -l Net.LACP.1 -l Net.LACP.2 Net.Team.1 | ||
+ | ipadm create-addr -T static -a 192.168.100.7/ | ||
+ | dladm modify-aggr -L active -T short Net.Team.1 | ||
+ | dladm modify-aggr -P L2 Net.Team.1 | ||
+ | </ | ||
+ | |||
+ | :!: Configure cisco to use mode " | ||
+ | |||
+ | ===== Steps for Solaris Raid 10 ===== | ||
+ | |||
+ | < | ||
+ | zpool create tank mirror disk1 disk2 | ||
+ | zpool add tank mirror disk3 disk4 | ||
+ | zpool add tank mirror disk5 disk6 #etc... | ||
+ | </ | ||
+ | |||
+ | ===== Steps for Adding Cache Drives ===== | ||
+ | |||
+ | < | ||
+ | zpool add tank cache disk1 | ||
+ | zpool add tank cache disk2 | ||
+ | </ | ||
+ | |||
+ | ===== Disable ZIL ===== | ||
+ | |||
+ | < | ||
+ | zfs set sync=disabled tank | ||
+ | zfs get sync | ||
+ | </ | ||
+ | |||
+ | ===== Steps for Setting Up Comstar ===== | ||
+ | |||
+ | < | ||
+ | svcadm enable svc:/ | ||
+ | zpool list #will tell you capacity, substitute capacity in next line, its currently 20G | ||
+ | zfs create -V 20G tank/ | ||
+ | sbdadm create-lu / | ||
+ | sbdadm list-lu | ||
+ | stmfadm add-view #LUN Name/Number | ||
+ | pkg install -v SUNWiscsit | ||
+ | svcadm enable -r svc:/ | ||
+ | itadm create-target | ||
+ | </ | ||
+ | |||
+ | ===== Install GUI (For Management/ | ||
+ | |||
+ | < | ||
+ | wget -O - www.napp-it.org/ | ||
+ | </ | ||
+ | |||
+ | ===== Update Solaris ===== | ||
+ | |||
+ | - Check what updates are available: < | ||
+ | - apply updates if any are available: < | ||