HT200186: Mount Xsan volumes with advanced options

Learn about Mount Xsan volumes with advanced options
This discussion is locked
commandsoft

Q: xsanctl mount and unmount not working in 10.8

I have Xsan working in Mountain Lion Server and Mountain Lion but for some reason the command line xsanctl mount and unmount commands don't work. Also, the System Preference Xsan, once enabled, does let me mount the volume, but it shows there as "Not mounted" even though it did it and it is. Is this a known bug that Apple is going to fix? We need to use scripts that utilize xsanctl.

 

--Thanks

--Jim

Xsan, OS X Mountain Lion (10.8), Anyone else know a work around?

Posted on Aug 24, 2012 4:46 PM

Close

Q: xsanctl mount and unmount not working in 10.8

  • All replies
  • Helpful answers

  • by Blaidd Drwg,

    Blaidd Drwg Blaidd Drwg Aug 25, 2012 10:06 AM in response to commandsoft
    Level 1 (109 points)
    Aug 25, 2012 10:06 AM in response to commandsoft

    How exactly are you running xsanctl? What is the command you're entering and its output?

     

    Are you running it as root or with sudo?

     

    Is xsand running on the system?

  • by commandsoft,

    commandsoft commandsoft Aug 27, 2012 9:44 AM in response to Blaidd Drwg
    Level 1 (0 points)
    Aug 27, 2012 9:44 AM in response to Blaidd Drwg

    Xsand with PID 25 is running on my system.

     

    Same results with or without sudo. The account is an admin.

     

    The volume Xsan1 is indeed mounted on my desktop and I can read/write to it with no problem. However using xsanctl doesn't function:

     

    Jim-Wolffs-Mac-Pro-2:~ jimwolff$ xsanctl list

    XSan1 - not mounted

     

    Jim-Wolffs-Mac-Pro-2:~ jimwolff$ sudo xsanctl unmount Xsan1

    Password:

    unmount command failed: Volume `Xsan1' is not mounted (error code: 3)

     

    As you can see this list command thinks its unmounted when indeed its already mounted. And the unmount command doesn't work because it thinks its not mounted.

     

    Jim-Wolffs-Mac-Pro-2:~ jimwolff$ sudo xsanctl mount Xsan1

    mount command failed: Unable to mount volume `Xsan1' (error code: 3)

    Jim-Wolffs-Mac-Pro-2:~ jimwolff$

     

    Lastly, trying the mount command (even though its already mounted) also gets error code 3.

     

    Since my original post I've updated the Xserve to 10.8.1 server and my client Mac Pro to OS X 10.8.1.

     

    Are you using it with Mountain Lion??

  • by Blaidd Drwg,

    Blaidd Drwg Blaidd Drwg Aug 27, 2012 6:11 PM in response to commandsoft
    Level 1 (109 points)
    Aug 27, 2012 6:11 PM in response to commandsoft

    Weird. I have used xsanctl in Mountain Lion and never run into this problem. I haven't written any scripts that use xsanctl, though. Out of curiosity, why do you need to script xsanctl?

  • by commandsoft,

    commandsoft commandsoft Aug 30, 2012 4:02 PM in response to commandsoft
    Level 1 (0 points)
    Aug 30, 2012 4:02 PM in response to commandsoft

    Need the command line interfaces to function because we are making a product that wraps some features around Xsan volume control, amoung other Xsan things. That way we can control this from our software GUI in a central integrated manner rather than making the user learn and use a bunch of different things. Anyway, once I figure it out I'll reply since you confirmed you are not having an issue with this command under 10.8.1 Server and client. Seems kind of weird since this is a clean new Xsan setup -- would think it would just work given the other parts that are working. Hopefully won't take much longer to figure out.

     

    --Best Regards,

    --Jim Wolff

  • by Strontium90,

    Strontium90 Strontium90 Aug 30, 2012 5:24 PM in response to commandsoft
    Level 5 (4,087 points)
    Servers Enterprise
    Aug 30, 2012 5:24 PM in response to commandsoft

    Have you confirmed that your DNS is setup properly for all nodes in the SAN.  I know in prior versions, mount/unmount anomalies were often tracked back to DNS issues.