Category Archives: omnios

Rename ZPOOL

# zpool export tank

Then, import using desired name:

# zpool import tank tank2

Import tank / lun’s

zpool import -f tank

sbdadm import-lu /dev/zvol/rdsk/[Volumename]/[sharename]

That will import your lun. Then run:

sbdadm list-lu

This will list your luns. The number you will need is the GUID so copy it and get ready to paste.
Run this command:

iscsi initiator – Omnios

http://www.devtrends.com/index.php/opensolaris-iscsi-initiator/

Delete ISCSI target – OMNIOS

svcadm  disable svc:/system/iscsi:default

sbdadm list-lu

sbdadm delete-lu

zfs destroy -f tank/volname

 

activate boot environment omnios

free memory – cpu’s / slot usage OmniOS / OpenSolaris

 

ndd list tcp variables

ndd /dev/tcp ?

TCP Tuning IPoIB OmniOS

ndd -set /dev/tcp tcp_recv_hiwat 262144
ndd -set /dev/tcp tcp_xmit_hiwat 262144
ndd -set /dev/tcp tcp_max_buf 4194304

Execute script on boot

don’t forget to set the correct permissions on your script, i like 4755 for these types of scripts

List Snapshots ZFS