Difference between revisions of "Opensolaris"

From KeegansWiki
Jump to navigation Jump to search
m
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
=Upgrading to Solaris Express=
 +
* ''pkg set-publisher -P -O http://pkg.opensolaris.org/release/ opensolaris.org''
 +
* ''pkg image-update''
 +
* Reboot
 +
* ''pkg set-publisher --non-sticky opensolaris.org''
 +
* ''pkg set-publisher -P -g http://pkg.oracle.com/solaris/release/ solaris''
 +
* Update pkg software:
 +
** ''pfexec pkg install pkg:/package/pkg''
 +
* ''pkg image-update''
 +
* ''pkg image-update --accept''
 +
 +
[http://download.oracle.com/docs/cd/E19963-01/821-1479/gklaa/index.html Info Here]
 +
 
=Updating=
 
=Updating=
 
Note: This has changed. To change publishers:
 
Note: This has changed. To change publishers:
Line 51: Line 64:
 
*pkg install SUNWiscsitgt
 
*pkg install SUNWiscsitgt
 
*svcadm enable svc:/system/iscsitgt:default
 
*svcadm enable svc:/system/iscsitgt:default
 +
*zfs set shareiscsi=on rzpool/norlfile_iscsi_lun3
 +
 +
Verify it is working:
 +
*iscsitadm list target -v
 +
 +
=Networking=
 +
==Routes==
 +
* Adding a static route which persists after reboot
 +
''route -p add -net 10.94.40.0 10.94.40.1''
 +
* And to delete it:
 +
''route -p delete 10.94.40.0 10.94.40.1''
 +
==IPMP==
 +
<pre>
 +
root@dsshare02:~# cat /etc/hostname.e1000g2
 +
group ipmp0 -failover dsshare02-net2 up
 +
root@dsshare02:~# cat /etc/hostname.e1000g3
 +
group ipmp0 -failover dsshare02-net3 up
 +
root@dsshare02:~# cat /etc/hostname.ipmp0
 +
ipmp group ipmp0 dssharenfs02 up
 +
</pre>

Latest revision as of 05:43, 3 February 2011

Upgrading to Solaris Express

Info Here

Updating

Note: This has changed. To change publishers:

This is now out of date

PUBLISHER                             TYPE     STATUS   URI
opensolaris.org-dev      (preferred)  origin   online   http://pkg.opensolaris.org:80/dev/
opensolaris.org                       origin   online   http://pkg.opensolaris.org/release/
  • pkg refresh
  • pkg image-update

CIFS

Unix Way

  • zfs create -o casesensitivity=mixed rzpool/data/
  • zfs sharesmb=name=data rzpool/data
  • zfs set sharesmb=on rzpool/data
  • this is for share permissions
    • zfs sharesmb=abe=true rzpool/data
  • this is for security permissions
    • /usr/bin/chmod A=everyone@:rwxpdDaARWcCos:fd:allow /rzpool/data/
  • chmod 777 /rzpool/data

Note that at this point, everyone has full control (because of the big chmod above)

Windows Way

To create shares, must add domain user to local admins on unix box:

  • smbadm add-member -m domainadmin 'administrators'

This might be required

  • sharemgr set -P smb -p abe=true -s /rzpool/new smb

Making it all work

  • mkdir /rzpool/data/finance
  • chmod 777 /rzpool/data/finance
  • Create share in mmc (folder is b:\rzpool\data\finance)
  • /usr/bin/chmod A=everyone@:rwxpdDaARWcCos:fd:allow /rzpool/data/finance/


Links

iSCSI

  • pkg install SUNWiscsi
  • pkg install SUNWiscsitgt
  • svcadm enable svc:/system/iscsitgt:default
  • zfs set shareiscsi=on rzpool/norlfile_iscsi_lun3

Verify it is working:

  • iscsitadm list target -v

Networking

Routes

  • Adding a static route which persists after reboot

route -p add -net 10.94.40.0 10.94.40.1

  • And to delete it:

route -p delete 10.94.40.0 10.94.40.1

IPMP

root@dsshare02:~# cat /etc/hostname.e1000g2 
group ipmp0 -failover dsshare02-net2 up
root@dsshare02:~# cat /etc/hostname.e1000g3
group ipmp0 -failover dsshare02-net3 up
root@dsshare02:~# cat /etc/hostname.ipmp0 
ipmp group ipmp0 dssharenfs02 up