Re: CIFS mount twice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Quoting Suresh Jayaraman <sjayaraman@xxxxxxxx>:
On 11/15/2011 05:56 PM, Aravind M D wrote:
  >> Quoting Jeff Layton <jlayton@xxxxxxxxx>:
  >>
  >>> On Tue, 15 Nov 2011 06:07:39 +0000 (UTC)
  >>> Aravind M D <aravind@xxxxxxxx> wrote:
  >>>
  >>>> Aravind M D <aravind@...> writes:
  >>>>
  >>>>
  >>>> >
  >>>> > Hi,
  >>>> >
  >>>> >   I have some cifs mount points configured on my /etc/fstab.
  >>>> >
  >>>> >   When i am doing mount -a command mount points are mouting again.
  >>>> >
  >>>> >   If mount command is issued mount point is showing twice.
  >>>> >
>>>> >   If i use mount through command line also i am facing the same issue.
  >>>> >
  >>>> >   Please help me.
  >>>> >
  >>>> >   Rgds,
  >>>> >   Aravind M D
  >>>> >
  >>>>
  >>>> Can someone help me with the below issue.
  >>>>
  >>>> Thanks in Advance
  >>>>
  >>>
  >>> Not with the description you've given as there's just hardly anything
  >>> there in the way of details...
  >>>
  >>> I set up my fedora rawhide test box with a cifs mount in /etc/fstab and
  >>> then ran mount -a several times. It was only mounted once.
  >>>
  >>> IIUC, it's the job of /bin/mount to only attempt to mount filesystems
  >>> that have not already been mounted when mount -a is run. If that's not
>>> happening on your machine then it sounds like something is broken there.
  >>>
  >>> --
  >>> Jeff Layton <jlayton@xxxxxxxxx>
  >>
  >> Hi Jeff,
  >>
  >> I have SLES 11 SAP systems on which some CIFS FS are configured on
  >> /etc/fstab.
  >>
  >> ~#cat /etc/fstab
  >> //oese-sc1-osi01/osiris1       /oese-sc1-osi01/osiris1/
  >> cifs                  username=user1,password=pass1,uid=200,gid=200
  >> //oese-sc1-osi02/osiris2       /oese-sc1-osi02/osiris2/
  >> cifs                  username=user1,password=pass1,uid=200,gid=200
  >> //oese-sc1-osi99/osiris0       /oese-sc1-osi99/osiris0/
  >> cifs                  username=user1,password=pass1,uid=200,gid=200
  >>
  >> Already these FS are mounted on my system. When i run mount -a and mount
  >> command below is the output.
  >>
  >> ~#mount
  >>
  >> //oese-sc1-osi01/osiris1 on /oese-sc1-osi01/osiris1 type cifs (rw,mand)
  >> //oese-sc1-osi02/osiris2 on /oese-sc1-osi02/osiris2 type cifs (rw,mand)
  >> //oese-sc1-osi99/osiris0 on /oese-sc1-osi99/osiris0 type cifs (rw,mand)
  >> //oese-sc1-osi01/osiris1 on /oese-sc1-osi01/osiris1 type cifs (rw,mand)
  >> //oese-sc1-osi02/osiris2 on /oese-sc1-osi02/osiris2 type cifs (rw,mand)
  >> //oese-sc1-osi99/osiris0 on /oese-sc1-osi99/osiris0 type cifs (rw,mand)
  >>
  >> Mounts are showing twice.
  >>
>> I have tested the same on Debian 6 also i have faced same problem. But in
  >> the debian 6 i tried upgrading the cifs-utils to the latest version.
  >>
>> Once cifs-utils was upgraded the mount -a will mount partition only once.
  >>
  >
  > Looks like you are hitting problems with older version of cifs-utils.
  >
  > I ran the "mount -a" tests on openSUSE 11.4 and SLES11 SP1 but I could
  > reproduce this problem. I don't have a SLES11 setup. I'll see if I could
  > get one. Some useful information that'll help include
  >
  > a) version of cifs-utils/cifs-mount
  > b) version of util-linux
  > c) mount -a -vvv output
  >
  >
  > OTOH, if you have a support contract with SUSE/Novell, please open a bug
  > report on https://bugzilla.novell.com agaist the product and include me
  > in the Cc.
  >
  >
  >
  > Thanks
  > Suresh

Hi Suresh,

Please find the details of CIFS configuration i am using.

Debian
------------

root@ser1[1]:~# cat /etc/debian_version
6.0
root@ser1[1]:~# mount.cifs -V
mount.cifs version: 4.5

root@ser1[1]:~# dpkg -l | grep util-linux
ii util-linux 2.17.2-9 Miscellaneous system utilities

mount -a -vvv output for debian is on the below link

http://pastebin.com/E0a4NW46

SLES
------------

ser2:~ # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

ser2:~ # mount.cifs -V
mount.cifs version: 1.12-3.4.3-1.17.2-2359-SUSE-CODE11

ser2:~ # rpm -qa | grep util-linux
util-linux-lang-2.16-6.8.2
util-linux-2.16-6.8.2

mount -a -vvv output for SLES is on the below link

http://pastebin.com/uWaYSqqD


- Aravind



Links:
------
[1] #

--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux