Harry Putnam
2009-Feb-18 06:55 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
I''m hoping to get some general clues about what all is required to get an experiment going with zfs. I''ve managed to install osol-11 in a vmware on windowsXP host from a recent *.iso. I''m following along with Simon''s blog showing how to set up ZFS. I''m newbie with both ZFS and Solaris but the instructions seem pretty clear. However I''m finding some things the Simon directions at: http://breden.org.uk/2008/03/08/home-fileserver-zfs-setup/ Do, are failing for me. I''ve added a few extra drives in he vmware and added them to zpool... So cutting to the chase I have a zpool established and up to the point where I make it available to other hosts. Eventually I hope to have a 3 windows machines, 2 linux and 1 solaris machine using the Zfs drives for backup. For now I''m just including 1 linux and 1 windows in my experiment. Going by simons instructions I''m settting up a sbm/cifs share. I see the smbshare is already setup: # zfs get all tank/home/reader |grep smb tank/home/reader sharesmb on local Then I''m told to check and see what name the share is given: # sharemgr show -vp default nfs=() zfs zfs/tank/home/reader smb=() tank_home_reader=/tank/home/reader Ok, then I''m having a problem getting the smb/server running. Here is where I need some kind of brief outline telling what all is needed to get that to happen. When I look at the server, Its said to be in `maintenance mode'' # svcs | grep smb online 18:40:45 svc:/network/smb/client:default maintenance 23:55:48 svc:/network/smb/server:default I''m not really sure how to use svcadm wisely but I tried to enable it first: svcadm enable -r smb/server svcadm: svc:/milestone/network depends on \ svc:/network/physical, which has multiple instances I''m not sure what that output means... but it doesn''t appear to be any kind of error. Still when I look again... its still in maintenance mode. I noticed a special kernel package right next to the smb server called. SUNWsmbskr (smb/server kernel). So does this require a special kernel? A brief roadmap from the point I''m at to running ZFS server, somekind of outline would be really be handy. When looking at the demos etc on line about zfs.. I don''t recall seeing anything about a special kernel... or is the smb server not required to allow windows machines to `see'' the zfs pool? Also.. I keep seeing mention of a CIFS implementation but all the stuff I see about cifs in the package manager says `client''. So I''m getting a bit confused.
Ian Collins
2009-Feb-18 07:59 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
Harry Putnam wrote:> Here is where I need some kind of brief outline telling what all is > needed to get that to happen. > > When I look at the server, Its said to be in `maintenance mode'' > > # svcs | grep smb > online 18:40:45 svc:/network/smb/client:default > maintenance 23:55:48 svc:/network/smb/server:default > > I''m not really sure how to use svcadm wisely but I tried to enable it > first: > > svcadm enable -r smb/server > svcadm: svc:/milestone/network depends on \ > svc:/network/physical, which has multiple instances > > I''m not sure what that output means... but it doesn''t appear to be any > kind of error. > > Still when I look again... its still in maintenance mode.What does "tail /var/svc/log/network-smb-server:default.log" show? The log file for a service listed as part of the long listing (svcs -l smb/server). -- Ian.
Harry Putnam
2009-Feb-18 18:03 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
Ian Collins wrote:> Harry Putnam wrote:[...]>> Still when I look again... its still in maintenance mode.> What does "tail /var/svc/log/network-smb-server:default.log" show? > > The log file for a service listed as part of the long listing (svcs -l > smb/server). >Following these two commands: svcadm disable sbm/server svcadm enable -r smb/server [...] [ Feb 18 11:53:42 Executing start method ("/usr/lib/smbsrv/smbd start"). ] smbd: NetBIOS services started smbd: kernel bind error: No such file or directory smbd: daemon initialization failed [ Feb 18 11:53:43 Method "start" exited with status 95. ] I wondered about the kernel in previous post: > I noticed a > special kernel package right next to the smb server called. SUNWsmbskr > (smb/server kernel). > So does this require a special kernel? Does that mean I need to do something to the kernel..? Replace it with SUNWsmbskr? Or is it something less ambitious?
You definitely need SUNWsmbskr - the cifs server provided with OpenSolaris is tied to the kernel at some low level. I found this entry helpful: <http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode> On Wed, Feb 18, 2009 at 1:03 PM, Harry Putnam <reader at newsguy.com> wrote:> Ian Collins wrote: >> >> Harry Putnam wrote: > > [...] > >>> Still when I look again... its still in maintenance mode. > >> What does "tail /var/svc/log/network-smb-server:default.log" show? >> >> The log file for a service listed as part of the long listing (svcs -l >> smb/server). >> > > Following these two commands: > svcadm disable sbm/server > svcadm enable -r smb/server > > [...] > > [ Feb 18 11:53:42 Executing start method ("/usr/lib/smbsrv/smbd start"). ] > smbd: NetBIOS services started > smbd: kernel bind error: No such file or directory > smbd: daemon initialization failed > [ Feb 18 11:53:43 Method "start" exited with status 95. ] > > I wondered about the kernel in previous post: > >> I noticed a >> special kernel package right next to the smb server called. SUNWsmbskr >> (smb/server kernel). > >> So does this require a special kernel? > > Does that mean I need to do something to the kernel..? Replace it with > SUNWsmbskr? > > Or is it something less ambitious? > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
Harry Putnam
2009-Feb-18 21:14 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
Blake wrote:> You definitely need SUNWsmbskr - the cifs server provided with > OpenSolaris is tied to the kernel at some low level. > > I found this entry helpful: > > <http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode>Looks like it will be immensely so.. However it appears from the comments there that I need to have the smb server online before the directions there are very usefull. I''ve installed both SUNWsmbs and SUNWsmbskr and rebooted as directed. pkg shows them installed. pkg list|grep smbs SUNWsmbs 0.5.11-0.101 installed SUNWsmbskr 0.5.11-0.101 installed However I still get the same error when trying to start smb server. [ Feb 18 14:36:36 Enabled. ] [ Feb 18 14:36:36 Executing start method ("/usr/lib/smbsrv/smbd start"). ] smbd: NetBIOS services started smbd: kernel bind error: No such file or directory smbd: daemon initialization failed [ Feb 18 14:36:37 Method "start" exited with status 95. ] I''m not finding many clues with google as to what to do, but as always its not doubt that my search strings are lacking, since I don''t have enough experience yet to know what to look for exactly. Something like this: how to "install SUNWsmbskr" Turns up man messges about the need to reboot after installing but not any I see about how to deal with any problems with the install itself.
have you made sure that samba is *disabled*? svcs samba ? On Wed, Feb 18, 2009 at 4:14 PM, Harry Putnam <reader at newsguy.com> wrote:> Blake wrote: >> >> You definitely need SUNWsmbskr - the cifs server provided with >> OpenSolaris is tied to the kernel at some low level. >> >> I found this entry helpful: >> >> <http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode> > > Looks like it will be immensely so.. > However it appears from the comments there that I need to have the smb > server online before the directions there are very usefull. > > I''ve installed both SUNWsmbs and SUNWsmbskr and rebooted as directed. > pkg shows them installed. > pkg list|grep smbs > SUNWsmbs 0.5.11-0.101 installed > SUNWsmbskr 0.5.11-0.101 installed > > However I still get the same error when trying to start smb server. > [ Feb 18 14:36:36 Enabled. ] > [ Feb 18 14:36:36 Executing start method ("/usr/lib/smbsrv/smbd > start"). ] > smbd: NetBIOS services started > smbd: kernel bind error: No such file or directory > smbd: daemon initialization failed > [ Feb 18 14:36:37 Method "start" exited with status 95. ] > > I''m not finding many clues with google as to what to do, but as always its > not doubt that my search strings are lacking, since I don''t have enough > experience yet to know what to look for exactly. Something like this: > how to "install SUNWsmbskr" > Turns up man messges about the need to reboot after installing but not any I > see about how to deal with any problems with the install itself. > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
Harry Putnam
2009-Feb-19 03:35 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
Blake <blake.irvin at gmail.com> writes:> have you made sure that samba is *disabled*? > > svcs samba > > ? >First..good news ... its working. About samba: Yeah, that was one of the things I did find while googling. But apparently that package is not installed by default.. it was not installed here at any rate: root # pkg list |grep smb SUNWlibsmbclient 3.0.28-0.101 installed SUNWsmbfs 0.5.11-0.101 installed SUNWsmbfskr 0.5.11-0.101 installed SUNWsmbs 0.5.11-0.101 installed SUNWsmbskr 0.5.11-0.101 installed And of course svcs shows no evidence of it. It appears now that smb/server is working... I''ve had occasion to reboot at least twice more since the reboot that followed installation of smbs and smbskr... but only now has the `maintenance'' mode turned into `online'' svcs |grep smb online 20:19:12 svc:/network/smb/server:default online 20:19:34 svc:/network/smb/client:default A beautiful sight.. hehe.. I''ve been thrashing around for 2 days on this. It would be nice to know just what really happened there. I''m guessing its pretty likely to be some ill-informed oversight of mine. Thanks for your time... now I can continue the setup.
Harry Putnam
2009-Feb-19 13:14 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
Blake <blake.irvin at gmail.com> writes: [...]> I found this entry helpful: > > <http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode>There is a comment in those directions about installing a SMB PAM module: 6. Install the SMB PAM module Add the below line to the end of /etc/pam.conf: other password required pam_smb_passwd.so.1 nowarn Do you know what that is? I don''t find any pkg named like that here. pkg search -r pam|grep smb <nada>
James C. McPherson
2009-Feb-19 13:20 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
On Thu, 19 Feb 2009 07:14:07 -0600 Harry Putnam <reader at newsguy.com> wrote:> Blake <blake.irvin at gmail.com> writes: > > > [...] > > > I found this entry helpful: > > > > <http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode> > > There is a comment in those directions about installing a SMB PAM > module: > 6. Install the SMB PAM module > > Add the below line to the end of /etc/pam.conf: > > other password required pam_smb_passwd.so.1 nowarn > > Do you know what that is? > > I don''t find any pkg named like that here. > > pkg search -r pam|grep smb > <nada>You might find it if you searched instead with $ pkg search -r smb In SXCE, at least, /usr/lib/security/pam_smb_passwd.so is part of the SUNWsmbfsu package. James -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog
Enda O''Connor
2009-Feb-19 13:23 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
On 02/19/09 13:14, Harry Putnam wrote:> Blake <blake.irvin at gmail.com> writes: > > > [...] > >> I found this entry helpful: >> >> <http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode> > > There is a comment in those directions about installing a SMB PAM > module: > 6. Install the SMB PAM module > > Add the below line to the end of /etc/pam.conf: > > other password required pam_smb_passwd.so.1 nowarn > > Do you know what that is? > > I don''t find any pkg named like that here. > > pkg search -r pam|grep smb > <nada>try pkg search -r pam_smb_passwd.so.1 which gives SUNWsmbs package Enda> > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Enda O''Connor x19781 Software Product Engineering Patch System Test : Ireland : x19781/353-1-8199718
Enda O''Connor
2009-Feb-19 13:24 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
On 02/19/09 13:20, James C. McPherson wrote:> On Thu, 19 Feb 2009 07:14:07 -0600 > Harry Putnam <reader at newsguy.com> wrote: > >> Blake <blake.irvin at gmail.com> writes: >> >> >> [...] >> >>> I found this entry helpful: >>> >>> <http://blogs.sun.com/timthomas/entry/solaris_cifs_in_workgroup_mode> >> There is a comment in those directions about installing a SMB PAM >> module: >> 6. Install the SMB PAM module >> >> Add the below line to the end of /etc/pam.conf: >> >> other password required pam_smb_passwd.so.1 nowarn >> >> Do you know what that is? >> >> I don''t find any pkg named like that here. >> >> pkg search -r pam|grep smb >> <nada> > > > You might find it if you searched instead with > > $ pkg search -r smb > > > In SXCE, at least, /usr/lib/security/pam_smb_passwd.so is > part of the SUNWsmbfsu package. >Hi And looks like 2008.11 has it in SUNWsmbs. Enda> > James > -- > Senior Kernel Software Engineer, Solaris > Sun Microsystems > http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Enda O''Connor x19781 Software Product Engineering Patch System Test : Ireland : x19781/353-1-8199718
Robert Thurlow
2009-Feb-19 17:51 UTC
[zfs-discuss] Confused about prerequisites for ZFS to work
Harry Putnam wrote:> There is a comment in those directions about installing a SMB PAM > module: > 6. Install the SMB PAM module > > Add the below line to the end of /etc/pam.conf: > > other password required pam_smb_passwd.so.1 nowarn > > Do you know what that is?It''s part of the Solaris CIFS server, and its purpose is to permit you to store passwords in a form useful to CIFS. The regular passwords are stored with one-way encryption, and CIFS needs the plain text to encrypt a different way for interoperability. The PAM module sees the password as it is changed, and will store it for CIFS purposes. Rob T