Package operations
Install the storage-nas cluster (CIFS,iSCSI, NDMP etc.)
$ pfexec pkg install storage-nasAdd compilers (sunstudio, it can be replaced with e.g. gcc-dev-4)
$ pfexec pkg install sunstudioAdd the contrib repository for contributed packages
$ pfexec pkg set-publisher -O http://pkg.opensolaris.org/contrib contrib
Other packages that can be of interest:
SUNWmysql51, ruby-dev, SUNWPython26, SUNWapch22m-dtrace, amp-dev, gcc-dev-4
List available and installed packages with search string
$ pkg list -a SUNWgzip
NAME (PUBLISHER) VERSION STATE UFIX
SUNWgzip 1.3.5-0.111 installed ----
$ pkg list -a '*Python26*'Sharing
NAME (PUBLISHER) VERSION STATE UFIX
SUNWPython26 2.6.1-0.111 known ----
SUNWPython26-extra 0.5.11-0.111 known ----
Create a ZFS filesystem with compression enabled
Enable NFS service:
$ pfexec zfs create -o compression=on rpool/export/share
Share with NFS
Enable NFS service:
$ pfexec svcadm enable -r nfs/serverEnable sharing over NFS for the share filesystem
$ zfs set sharenfs=on rpool/export/shareShare with CIFS
$ pfexec svcadm enable smb/serverTo enable users to access the CIFS share add the following line to /etc/pam.conf and reset users pw with passwd(1):
$ pfexec zfs set sharesmb=on rpool/export/share
$ pfexec zfs set sharesmb=name=mysharename rpool/export/share
other password required pam_smb_passwd.so.1 nowarnEnable auto ZFS-snapshots
Disable snapshots globally for the whole pool:
$ pfexec zfs set com.sun:auto-snapshot=false rpoolEnable snapshots for the share:
$ pfexec zfs set com.sun:auto-snapshot=true rpool/export/shareEnable daily snapshots (can be frequent, hourly, daily, weekly or monthly):
$ pfexec svcsadm enable auto-snapshot:dailyList snapshots:
$ zfs list -t snapshot
If you are unfamiliar with Solaris, read the manual pages for the following commands:
prstat, fsstat, pkg, powertop, zfs, zpool, sharemgr, ipfilter, dladm, fmdump
NOTE: There are graphical options for snapshot setup and the package manager that can be used from graphical console, VNC or forwarded X. Launch them with with "time-slider-setup" or "packagemanager".
NOTE: There are graphical options for snapshot setup and the package manager that can be used from graphical console, VNC or forwarded X. Launch them with with "time-slider-setup" or "packagemanager".
1 comment:
Hey Henkis - great to see you're enjoying the upgrade!
I work with Sun's PR team, so if you come across any questions/issues you'd like answered - just drop me a note at matt.mclernon[at]bitepr.com and I'll take care of it!
Cheers,
Matt
Post a Comment