Sunday, February 1, 2009

More opensolaris

wdespe@sakura:~# zfs create chakra/mediacollection
wdespe@sakura:~# df -h
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/xvm         274G   2.3G   263G     1%    /
/devices                 0K     0K     0K     0%    /devices
/dev                     0K     0K     0K     0%    /dev
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   9.6G   336K   9.6G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
                       266G   2.3G   263G     1%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   9.6G    40K   9.6G     1%    /tmp
swap                   9.6G    44K   9.6G     1%    /var/run
rpool/export           274G    19K   263G     1%    /export
rpool/export/home      274G    19K   263G     1%    /export/home
rpool/export/home/wdespe
                       274G   586K   263G     1%    /export/home/wdespe
rpool                  274G    78K   263G     1%    /rpool
chakra                 2.7T    27K   2.7T     1%    /chakra
chakra/mediacollection
                       2.7T    27K   2.7T     1%    /chakra/mediacollection
wdespe@sakura:~#

 

Setup CIFS

wdespe@sakura:~# pkg install SUNWsmbs
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    1/1       28/28     1.07/1.07

PHASE                                        ACTIONS
Install Phase                                  61/61
PHASE                                          ITEMS
Reading Existing Index                           9/9
Indexing Packages                                1/1
wdespe@sakura:~#
wdespe@sakura:~# pkg install SUNWsmbskr
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    1/1         6/6     0.42/0.42

PHASE                                        ACTIONS
Install Phase                                  17/17
PHASE                                          ITEMS
Reading Existing Index                           9/9
Indexing Packages                                1/1
wdespe@sakura:~#

rebooted to make sure cifs was working.

edit /etc/pam.conf

added:

other	password required	pam_smb_passwd.so.1	nowarn


 



# passwd <username>



wdespe@sakura:/etc# zfs set sharesmb=on chakra/mediacollection

wdespe@sakura:/etc# zfs sharesmb=name=mediacollection chakra/mediacollection