Xsanity Sanity for Apple's Xsan and Final Cut Server.
  
Saturday, February 04 2012 @ 12:33 PM EST
Topics
Storage (33)
People (1)
Xsan (97)
How To (26)
User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User
Who's Online
singlemalt
Guest Users: 27
Sponsorship

Xsanity is proudly sponsored by:

Tekserve
The Old Reliable Mac Shop

Tips & Tricks
Using Removable Media with Xsan

Sometimes you just need a small SAN for testing... Times when you don’t have fiber channel and you don’t need to provide access to multiple clients, like maybe if you're writing an article for Xsanity on an airplane. Now this volume is not going to be supported (or supportable) by anyone and nor should it be (so don’t use it for real data), but you can use USB and FireWire drives for a small test Xsan…



To get started we’re first going to destroy the contents of the drive, so be sure it’s backed up. Go ahead and connect the empty USB or FireWire media to be used and open up Disk Utility. Here, locate the disk in question and click on it (make sure not to click on the volume). Click on the Partition tab in Disk Utility and set the format to Free Space to prepare the drive for labeling.

If you’re using Xsan 1.4.x then you should now see the LUN in Xsan Admin and be off to the races. But, if you’re using Xsan 2.x then you’re going to need to go ahead and label the LUN from the command line. To do so, open Terminal.app from /Applications/Utilities. Now go ahead and type in the following command, which should show you all your available LUNs:


cvlabel -l

Next, type the following, which will dump your label information out to a standard text file called labels


cvlabel -c >labels

Now that you have your file open it in your favorite text editor and change the very first text field to read the name that you want your LUN to be labeled as, within Xsan Admin. Once you’re satisfied save the file. Now, use the following command, which will read the file you just edited and then label the LUN for use with acfs using the name you just provided, making it appear in Xsan admin:


cvlabel labels

Now you can open up Xsan Admin and build a new volume using the label. This is a great way to do testing of the Xsan commands, but the volume will be terribly slow, will corrupt easily and is not appropriate for absolutely positively anything other than testing.



Using Removable Media with Xsan | 17 comments | Create New Account
The following comments are owned by whomever posted them.
Using Removable Media with Xsan
Authored by: ravi on Tuesday, January 20 2009 @ 10:08 AM EST
With Xsan 2, there is a minimum volume size requirement (my memory seems
to say 4G, it could be 8G) otherwise cvmkfs will fail.

There are a lot of possibilities: you can use one USB stick for metadata, one
USB stick for userdata1 pool, another firewire drive for userdata2 pool etc.

Most of of my Xsan scripting and ACL related testing has been done on laptop
Xsans. It is not slow from that point of view and I haven't experienced any
corruptions :-)
[ Reply to This ]
Using Removable Media with Xsan
Authored by: sith33 on Tuesday, January 20 2009 @ 05:40 PM EST
I've found that with Xsan 2, you can't use multiple usb/firewire devices. With
Xsan1, I had test sans with like 3 thumbdrives, an ipod in disk mode and an SD
card. With Xsan2, it seems like it sees all the devices as a single LUN in the gui,
even if you label them with cvlabel.

Has anyone managed to do a multi-device xsan2 setup?
[ Reply to This ]
  • Using Removable Media with Xsan - Authored by: rstasel on Wednesday, January 21 2009 @ 03:13 PM EST
  • Using Removable Media with Xsan - Authored by: ravi on Wednesday, January 21 2009 @ 05:02 PM EST
  • Using Removable Media with Xsan - Authored by: rstasel on Wednesday, January 21 2009 @ 07:59 PM EST
  • Using Removable Media with Xsan - Authored by: ravi on Thursday, January 22 2009 @ 12:15 AM EST
  • Using Removable Media with Xsan
    Authored by: sith33 on Wednesday, January 21 2009 @ 04:29 PM EST
    Yeah, that's what happens with me too. I've tried a variety of methods of
    connecting devices, and types of devices. I think the Xsan2 Admin just gets
    confused about devices that don't have WWNs or serials or something. I'm not
    sure I've tried mixed Firewire/USB environments recently or not.
    [ Reply to This ]
  • Using Removable Media with Xsan - Authored by: ravi on Thursday, January 22 2009 @ 12:18 AM EST
  • Using Removable Media with Xsan - Authored by: sith33 on Thursday, January 22 2009 @ 11:02 AM EST
  • Using Removable Media with Xsan - Authored by: ravi on Thursday, January 22 2009 @ 03:15 PM EST
  • Using Removable Media with Xsan - Authored by: sith33 on Thursday, January 22 2009 @ 05:24 PM EST
  • Using Removable Media with Xsan
    Authored by: bhuntsman on Friday, February 27 2009 @ 01:12 PM EST
    Just FYI, with a bit work, this works fine with a DMG too. Talk about convienience!

    I set up a 6.85GB dmg, then used Disk Utility to set the partition on it to "Free Space". Once done, it showed up in cvlabel, I labeled it, and got it to work in Xsan Admin. This was all done on Leopard with Xsan 2.1.1.

    This makes a perfect test setup for testing ACLs, etc.
    [ Reply to This ]
  • Using Removable Media with Xsan - Authored by: kmitnick on Wednesday, February 03 2010 @ 09:49 PM EST
  • Using Removable Media with Xsan - Authored by: kmitnick on Thursday, February 18 2010 @ 08:06 PM EST
  • Using Removable Media with Xsan - Authored by: peter.mears on Tuesday, March 30 2010 @ 11:47 PM EDT
  • Using Removable Media with Xsan
    Authored by: hm74us on Thursday, September 23 2010 @ 11:09 PM EDT
    I recently installed Xsan 2.2.x for learning purposes and I'm trying to get a usb drive recognized, which is formatted as Mac OS Extended (Journaled) with GUID Partition Table. When I follow the instructions on this article, using cvlabel -l there is no output. I only have the following directories in /Library/Filesystems/
    -bin -config -debug -man -ras

    and in /Library/Filesystems/config/
    there is no volume-name.cfg I ran cvadmin then I'm told that the file system manager is not configured.
    Xsanadmin> start ufs on localhost Start FSS "ufs" Cannot start FSS 'ufs' - failed (FSM not configured)
    Any ideas will be greatly appreciated.
    [ Reply to This ]
    Using Removable Media with Xsan
    Authored by: stuart on Wednesday, November 16 2011 @ 01:31 AM EST
    Kevin, et alia:

    Indeed the full compliment of postings here were a rather interesting
    read. With MacOS Lion roaring along inclusive of XSAN, I am wondering
    if anyone has attempted to configure XSAN using removable DASDs
    using this command line mechanism as yet?

    That said, thumb drives would seem rather disinteresting for some
    several reasons, the most of which being the practicality of even proving
    they'd work. Although, the practicality of advancing the capability of
    leveraging USB 2TB and 3TB DASDs (FireWire400/800, or Thunderbolt
    for that matter) is extremely utilitarian and worthy of thought.

    One other question is, I'd wonder how XSAN deals with TRIM and SSD
    issues?

    Lastly, Kevin did remark in one of his comments that he was
    using VMware. However, MacOS can legally be run under VirtualBox as
    well when hosted under MacOS on real apple hardware.

    So what you ask?

    Well, VirtualBox is open source...meaning that if someone wanted too, a
    rather crafty programmer could write code into VirtualBox that took a
    DASD on the MacOS host OS and presented it to the MacOS guest OS
    installation as a Fibre Channel device! Then would not XSAN just
    be happy as pie to let XSAN run on it??

    Stuart, N3GWG
    Computer Scientist
    [ Reply to This ]
    Story Options
    Best Viewed on a Mac | Suggested Browser: Whatever floats yer boat.