Re: [ilugd] Samba share woes!
Original question was: How to cope up with redundant smbmount hangups, sync automagically if windows box gets rebooted etc. is the hard mount option by default? if yes then it does't seems to be working with smbfs beacuse when problem occurs of hanging i just umount and mount again it becomes fine... googling gllug have suggests to have autofs should work ..with some problem at some cases. Just for archiving purposes: Well answer is automounter;. Here is my auto.master and auto.smb /etc/auto.master includes /data/share /etc/auto.smb --timeout=60 /etc/auto.smb includes uploads -fstype=smbfs,username=Administrator,password=xxx,uid=user,gid=ftpusers ://hostname/uploads It works great, thank to all those who replied. Cheers! Yash ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Samba share woes!
On 6/19/06, Yashpal Nagar [EMAIL PROTECTED] wrote: Hi We use smbmount to mount certain windows shares as by rc.local on a Redhat FC3 box as: /bin/mount -t smbfs -o username=Administrator,password=xxx,uid=userid,gid=ftpusers //xxx.xxx.xxx.xxx/share /data/share/ Now the problem is after sometime this get hanged due to either windows m/c gets rebooted or some time-out don't exactly know . Is there any nice other way around to get sync again smb shares in such cases? a automount dir for ftp home dir would work ? just guessing!? Regards, Yash hey, If your shares are static then you can add entries in /etc/fstab for these shares for example //server/backup (windows machine)/mnt/backup(linux mount point)cifs credentails=/etc/.smb,uid=xx,gid=xxx 0 0 credentials=filename specifies a file that contains a username and/or password. The format of the file is: username=valueusername=ankush password=valuepassword=ankush This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any creden- tials file properly. Make sure /etc/.smb is 600 or 400 for more information regarding cifsman mount.cifs Regards Ankush Grover ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Samba share woes!
--- Yashpal Nagar [EMAIL PROTECTED] wrote: Hi We use smbmount to mount certain windows shares as by rc.local on a Redhat FC3 box as: /bin/mount -t smbfs -o username=Administrator,password=xxx,uid=userid,gid=ftpusers //xxx.xxx.xxx.xxx/share /data/share/ Now the problem is after sometime this get hanged due to either windows m/c gets rebooted or some time-out don't exactly know . Is there any nice other way around to get sync again smb shares in such cases? Firstly put it under /etc/fstab - you have better control over the mounting and unmounting process including unmounting shares while shuttign down. Secondly I think your problem stems from the fact that smbfs like nfs will retry indefinitely if a share becomes unavilable - this can have serious implications on the server. The way around is to understand how the hard and soft mount options works. Read the details under the nfs section in mount and decide which one is more important. Remember hard mount is the default and that is what you would usually want unless your apps really know how to handle unrealible network file systems. Mithun __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Samba share woes!
Mithun Bhattacharya wrote: --- Yashpal Nagar [EMAIL PROTECTED] wrote: Hi We use smbmount to mount certain windows shares as by rc.local on a Redhat FC3 box as: /bin/mount -t smbfs -o username=Administrator,password=xxx,uid=userid,gid=ftpusers //xxx.xxx.xxx.xxx/share /data/share/ Now the problem is after sometime this get hanged due to either windows m/c gets rebooted or some time-out don't exactly know . Is there any nice other way around to get sync again smb shares in such cases? Firstly put it under /etc/fstab - you have better control over the mounting and unmounting process including unmounting shares while shuttign down. You could have better adminsitration in ideal cases but i have been very annoyed with this fstab/vfstab which screams loud when your nfs server is down. my both the boxes are away i can't quit if nfs server is down..and its waiting indefinite to server to come up, anyway Secondly I think your problem stems from the fact that smbfs like nfs will retry indefinitely if a share becomes unavilable - this can have serious implications on the server. The way around is to understand how the hard and soft mount options works. Read the details under the nfs section in mount and decide which one is more important. Remember hard mount is the default and that is what you would usually want unless your apps really know how to handle unrealible network file systems. is the hard mount option by default? if yes then it does't seems to be working with smbfs beacuse when problem occurs of hanging i just umount and mount again it becomes fine... googling gllug have suggests to have autofs should work ..with some problem at some cases. Regards Yash ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/