Shutdown omnios

sudo shutdown -y -i5 -g0

Restart SSH Omnios

svcadm restart ssh

Create ZFS RAID 10 with mirror ZIL

zpool create tank mirror c13t0d0 c13t0d1 mirror c13t0d6 c13t0d7
zpool add tank log mirror c4t0d0 c4t1d0

Static Networking Omnios

svcadm enable svc:/network/physical:default
ipadm create-addr -T static -a 192.168.0.124/24 igb0/v4static
route -p add default 192.168.0.1
svcadm restart svc:/network/physical:default

add hostname + ip in:
vi /etc/hosts

add nameservers in
vi /etc/resolv.conf
cp /etc/nsswitch.dns /etc/nsswitch.conf

java 7 download

wget --no-cookies --no-check-certificate  --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://download.oracle.com/otn-pub/java/jdk/7u21-b11/jdk-7u21-linux-x64.rpm"

Infiniband OMNIOS – iscsi setup

Remember that 0xFFFF is the default pKey and create your partition.

# dladm create-part -l ibp0 -P 0xFFFF pFFFF.ibp0
# ifconfig pFFFF.ibp0 plumb
# ifconfig pFFFF.ibp0 10.0.0.1/24 up

to make the interface come up automatically on reboot read here:

http://docs.oracle.com/cd/E19082-01/820-3070/getpc/index.html

http://www.c0t0d0s0.org/archives/6140-Less-known-Solaris-Features-iSCSI-with-COMSTAR.html

vyatta – xenserver

http://myvirtualfunction.net/archives/128

Change Pool Master

List all hosts

xe host-list

Promote slave

xe pool-designate-new-master host-uuid=

If the pool master is down… We need to promote a slave forcibly to master by….

xe pool-emergency-transition-to-master

xe pool-recover-slaves

More Info
and More Info

Xenserver Pool slave loses management interface

Can ping XenServer Master, and can Ping Management interface – however XenAPI appears down?

pool-emergency-reset-master master-address=

This will reset the management interface and should bring back up networking for dom0

too many files in directory to delete?

find . -name ‘*.net*’ | xargs rm

change *.net to whatever is necessary.

this will iterate through each file name and apply RM to it.

rm -f * will not work where there are too many files as it simply appends each file name to form a massive string.