Remove a Volume

Discussion in 'Storage' started by Ov10fac, Feb 26, 2012.

  1. Offline

    Ov10fac

    Member Since:
    Feb 26, 2012
    Messages:
    3
    Message Count:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ov10fac, Feb 26, 2012

    I have been searching the web and here for a few days with no luck. I know this should be simple, but I just can't seem to find the answer.

    I have upgraded to a new server and am replacing two external (USB) drives with one SATA raid. I have copied all files to the new drive and now want to simply remove the USB drives from FreeNas.

    Both the USB drives are UFS mounts. I expected a simple menu item or button to "remove" or "delete" a volume, but I can't find anything like that.

    I am running FreeNAS 8

    Any help appreciated.
  2. Offline

    rickschneider17

    Member Since:
    Mar 1, 2012
    Messages:
    1
    Message Count:
    1
    Likes Received:
    0
    Trophy Points:
    0
    rickschneider17, Mar 1, 2012

    Similar Issue

    I am having a similar issue. I am new to FreeNAS and trying to play around with it on a small test system of spare parts.

    It is installed onto the USB key no problem, and see's my small 60GB drive no problem. I then created a Volume as ZFS, and it shows up in the UI under /mnt/data, however, I want to delete it, and try to do some other things with it. I cant find a way to delete.

    I am running FreeNAS 8.0.3.
  3. Offline

    James FreeNAS Core Team

    Member Since:
    May 24, 2011
    Messages:
    298
    Message Count:
    298
    Likes Received:
    21
    Trophy Points:
    18
    Occupation:
    iXsystems, Inc.
    Location:
    San Jose, CA
    Home page:
  4. Offline

    kjertil

    Member Since:
    Mar 16, 2012
    Messages:
    19
    Message Count:
    19
    Likes Received:
    0
    Trophy Points:
    1
    kjertil, Mar 16, 2012

    Removing disks or volumes

    Reading the guide about exporting an ZFS volume does not really answer my question...
    How do you erase an failed volume?
    I get messages like "an error occured"... when trying to create a RAID volume.
    Now i cannot delete it. It just shows up as a volume!
  5. Offline

    peterh

    Member Since:
    Oct 19, 2011
    Messages:
    297
    Message Count:
    297
    Likes Received:
    1
    Trophy Points:
    0
    peterh, Mar 16, 2012

    use "umount" in a shell.
    See freebsd.org manpages for details.
  6. Offline

    kjertil

    Member Since:
    Mar 16, 2012
    Messages:
    19
    Message Count:
    19
    Likes Received:
    0
    Trophy Points:
    1
    kjertil, Mar 16, 2012

    I'm sorry if this sounds offensive to anyone, but shouldn't this be one of the key functions of managing "volumes" ?
    It feels like this function has been hidden away because of bugs or incomplete functionality.
    I would be glad if anyone could clearify...
  7. Offline

    peterh

    Member Since:
    Oct 19, 2011
    Messages:
    297
    Message Count:
    297
    Likes Received:
    1
    Trophy Points:
    0
    peterh, Mar 16, 2012

    a shell lis concluded for completeness !
    In addition the shell is scriptable and may do arbitrarily complex functions ( for those so inclined :)
  8. Offline

    kjertil

    Member Since:
    Mar 16, 2012
    Messages:
    19
    Message Count:
    19
    Likes Received:
    0
    Trophy Points:
    1
    kjertil, Mar 16, 2012

    yes do i understand that the command prompt COULD be the solution.
    How ever i am not a freeBSD guy and don't feel for learning freeBSD just so
    i can MAYBE remove a "volume" in freeNAS.
    my solution would rather be to aquire another windows 2008 license than spend
    this time.
    thank you.
  9. Offline

    peterh

    Member Since:
    Oct 19, 2011
    Messages:
    297
    Message Count:
    297
    Likes Received:
    1
    Trophy Points:
    0
    peterh, Mar 16, 2012

    That's ok with me, what you can't do by knowledge you can solve with spending money.

    May the source be with you!
  10. Offline

    wolf29

    Member Since:
    Mar 20, 2012
    Messages:
    7
    Message Count:
    7
    Likes Received:
    0
    Trophy Points:
    0
    wolf29, Mar 20, 2012

    export is another way to say delete the volume, apparently.
    I went ahead and shelled into the system
    $ssh root@my_freenas
    "mount" shows you all your mounted volumes
    "Umount Moldy_volume" unmounts the filesystem
    back on the web interface, "Export" gives you a dialog that offers among other things, a checkbox to mark all drives as new.
    I did that and the moldy_volume disappeared
    "create volume" showed all those drives so I can create a new volume.
    Now I just have to check and see if all the freenas users who called moldy_volume home have home volumes.
  11. Offline

    nrnoble

    Member Since:
    Apr 10, 2012
    Messages:
    4
    Message Count:
    4
    Likes Received:
    0
    Trophy Points:
    0
    nrnoble, Apr 10, 2012

    I just started using FreeNAS within the past 2 days, so I am still learning what it can\can't do. I decided I wanted to remove one of the small TEST drives I was using and couldn't find a way. I was using a test drive because I didn't want to damage real data. After digging for a solution I found this thread, which confirms that FreeNAS does not include the functionality to unmount drives for reasons I have yet to discover.

    As a general high level comment\opinion, FreeNAS is primarily for those who already have a reasonable amount of experience with unix type systems. What the webUI does not do, they simply can do at the console by excuting the require commands. FreeNAS is not for the causal user who is looking for plug-n-play. For those who want something easy\simple to use and configure, a better option is to buy a NAS box for a couple hundred and add your drives.

Share This Page