User Tools

Site Tools


computing:unix:oi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:unix:oi [2013/02/13 08:33]
gcooper
computing:unix:oi [2019/10/21 08:54] (current)
gcooper
Line 1: Line 1:
 ====== OpenIndiana ====== ====== OpenIndiana ======
  
-See also **[[computing:storage:shared_storage|Shared Storage System]]**.+See also **[[va:va_shared_storage|Shared Storage System Notes]]**.
  
 See also **[[computing:storage:napp-it|napp-it]]**. See also **[[computing:storage:napp-it|napp-it]]**.
Line 14: Line 14:
  
 http://wiki.openindiana.org/oi/Using+OpenIndiana http://wiki.openindiana.org/oi/Using+OpenIndiana
 +
 +==== 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://www.oracle.com/technetwork/server-storage/solaris11/documentation/solaris-11-cheat-sheet-1556378.pdf
 +
 +Solaris 11 Package Manager Cheat Sheet: http://www.oracle.com/technetwork/server-storage/solaris11/documentation/ips-one-liners-032011-337775.pdf
  
 ===== Full Reboot ===== ===== Full Reboot =====
Line 36: Line 47:
  
 ===== Managing Dump and Swap ===== ===== Managing Dump and Swap =====
- 
-:!: You can probably skip this section if you are configuring a storage server as the swap space is not pre-allocated. 
  
 Planning for Swap Space: http://docs.oracle.com/cd/E19963-01/html/821-1459/fsswap-31050.html Planning for Swap Space: http://docs.oracle.com/cd/E19963-01/html/821-1459/fsswap-31050.html
  
 Adjusting the Sizes of Your ZFS Swap and Dump Devices: http://docs.oracle.com/cd/E19963-01/html/821-1448/ggrln.html Adjusting the Sizes of Your ZFS Swap and Dump Devices: http://docs.oracle.com/cd/E19963-01/html/821-1448/ggrln.html
 +
 +==== 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's RAM size.
 +
 +Estimate needed dump space (128GB RAM):
 +
 +<file>
 +root@stor-01:/root# dumpadm -e
 +Estimated dump size: 61.5G
 +</file>
 +
 +Query the current dump device size:
 +
 +<file>
 +root@stor-01:/root# zfs get volsize rpool/dump
 +NAME        PROPERTY  VALUE    SOURCE
 +rpool/dump  volsize   17.7G    local
 +</file>
 +
 +Change the dump volume size:
  
 <file> <file>
Line 48: Line 79:
 zfs set volsize=4G rpool/dump zfs set volsize=4G rpool/dump
 </file> </file>
 +
 +Disable dump and delete the dump volume:
 +
 +<file>
 +dumpadm -d none
 +zfs destroy rpool/dump
 +</file>
 +
 +==== 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 92: Line 134:
 </file> </file>
  
-Run it again without the 'n' flag to actually do the update. This will create a new boot environment, you can list using the command:+Run it again without the 'n' flag to actually do the update. This will create a new boot environment
 + 
 +===== Manage Boot Environments ===== 
 + 
 +http://docs.oracle.com/cd/E23824_01/html/E21801/administer.html
  
 <file> <file>
-beadm list+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
 </file> </file>
  
Line 213: Line 262:
  
 <file> <file>
-10.10.10.5 netmask 255.255.255.0+10.1.10.5 netmask 255.255.255.0
 </file> </file>
  
Line 221: Line 270:
  
 <file> <file>
-10.10.10.6 netmask 255.255.255.0+10.1.10.6 netmask 255.255.255.0
 </file> </file>
  
Line 229: Line 278:
  
 <file> <file>
-10.10.10.5       10g-eth-1  +10.1.10.5       10g-eth-1  
-10.10.10.6       10g-eth-2+10.1.10.6       10g-eth-2
 </file> </file>
  
 ==== Configure Jumbo Frames ==== ==== Configure Jumbo Frames ====
 +
 +=== Intel X540 10GbE NIC ===
 +
 +http://docs.oracle.com/cd/E19254-01/820-7895-11/cggfhffg.html
 +
 +<file>
 +nano /kernel/drv/ixgbe.conf
 +
 +default_mtu             = 9000;
 +
 +reboot
 +</file>
 +
 +=== General Jumbo Frames Info ===
  
 http://docs.oracle.com/cd/E19862-01/820-1606-12/jumbo_fms.html http://docs.oracle.com/cd/E19862-01/820-1606-12/jumbo_fms.html
Line 285: Line 348:
 <file> <file>
 ping -s IP_of_another_machine 9000 4 ping -s IP_of_another_machine 9000 4
-</file> 
- 
-<file> 
-iperf 
 </file> </file>
  
Line 398: Line 457:
 reboot -p reboot -p
 </file> </file>
 +
 +====== Notes from Others ======
 +
 +===== Shutdown / Reboot Commands =====
 +
 +  * Poweroff
 +  * Reboot
 +
 +===== Allow Root SSH =====
 +
 +  - vi /etc/ssh/sshd_config
 +    - change permitrootlogin to yes
 +  - vi /etc/default/login
 +    - change line: CONSOLE =/dev/login|console (Comment it out may be better)
 +  - usermod -K type=normal root
 +  - reboot
 +
 +===== Steps for Solaris Raid1 =====
 +
 +  - Create Solaris parition with format/fdisk on second disk (c3t10d0)
 +  - copy volumes from disk 0 to disk 1
 +    - prtvtoc /dev/rdsk/c3t0d0s0 | fmthard -s - /dev/rdsk/c3t1d0s0
 +  - 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:/network/physical:nwam
 +  - svcadm enable svc:/network/physical:default
 +  - dladm show-phys
 +
 +==== Optional - Rename Link ====
 +
 +  - dladm rename-link oldname Net.1
 +  - ipadm create-addr -T static -a 192.168.10.7/24 Net.1/v4
 +    - route -p add default 192.168.10.254
 +  - check for dns server info:
 +    - cat /etc/resolv.conf
 +    - add our dns with vi if its missing: nameserver  192.168.10.10
 +  - Check that we are configured to use files and dns for resolution:
 +    - cat /etc/nsswitch.conf
 +    - vi  /etc/nsswitch.conf
 +      - put files dns for hosts, ipnodes, and networks.
 +
 +===== Enable Jumbo Frames =====
 +
 +<file>
 +dladm set-linkprop -p mtu=9000 InterfaceName
 +</file>
 +
 +===== Link Aggregation =====
 +
 +Similar terms: NIC Bonding, NIC Teaming
 +
 +<file>
 +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/24 Net.Team.1
 +dladm modify-aggr -L active -T short Net.Team.1
 +dladm modify-aggr -P L2 Net.Team.1
 +</file>
 +
 +:!: Configure cisco to use mode "active"
 + 
 +===== Steps for Solaris Raid 10 =====
 +
 +<file>
 +zpool create tank mirror disk1 disk2
 +zpool add tank mirror disk3 disk4
 +zpool add tank mirror disk5 disk6 #etc...
 +</file>
 +
 +===== Steps for Adding Cache Drives =====
 +
 +<file>
 +zpool add tank cache disk1
 +zpool add tank cache disk2
 +</file>
 +
 +===== Disable ZIL =====
 +
 +<file>
 +zfs set sync=disabled tank
 +zfs get sync
 +</file>
 +
 +===== Steps for Setting Up Comstar =====
 +
 +<file>
 +svcadm enable svc:/system/stmf:default
 +zpool list #will tell you capacity, substitute capacity in next line, its currently 20G
 +zfs create -V 20G tank/ISCSI.tank
 +sbdadm create-lu /dev/zvol/rdsk/tank/ISCSI.tank
 +sbdadm list-lu
 +stmfadm add-view #LUN Name/Number
 +pkg install -v SUNWiscsit
 +svcadm enable -r svc:/network/iscsi/target:default
 +itadm create-target
 +</file>
 +
 +===== Install GUI (For Management/Reporting if you care) =====
 +
 +<file>
 +wget -O - www.napp-it.org/nappit | perl
 +</file>
 +
 +===== Update Solaris =====
 +
 +  - Check what updates are available: <file>pfexec pkg image-update -nv</file>
 +  - apply updates if any are available: <file>pfexec pkg image-update -v</file>
  
computing/unix/oi.1360769596.txt.gz · Last modified: 2013/02/13 08:33 by gcooper