Re: Mounting /mnt to another volume

82 views
Skip to first unread message

Kevin Menard

unread,
Dec 3, 2012, 7:26:47 AM12/3/12
to rubbe...@googlegroups.com
Hi Adam,

How do you mean that /mnt was already defined by rubber?  I routinely mount /mnt to an LVM volume across either EBS or ephemeral stores.

--
Kevin

Thursday, November 29, 2012 5:32 PM
I would like to mount /mnt to an EBS volume and although I have been successful with mounting folders like /tmp to EBS volumes via the rubber.yml file, it appears to be impossible to use that method to move the /mnt folder since it was already defined by rubber.

Has anybody been able to do this successfully?  My goal is to use volatile storage for /tmp and EBS for /mnt.

Cheers,
Adam
--
You received this message because you are subscribed to the Google Groups "rubber" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubber-ec2/-/gQPdENGIjJYJ.
To post to this group, send email to rubbe...@googlegroups.com.
To unsubscribe from this group, send email to rubber-ec2+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubber-ec2?hl=en.

Adam Nelson

unread,
Dec 3, 2012, 2:21:26 PM12/3/12
to rubbe...@googlegroups.com
Kevin,

I see how that would work for volumes inside of /mnt as per the example in rubber.yml, but I'm trying to do this with /mnt itself:

---- my rubber.yml ---
roles:
  my_role:
    availability_zone: us-west-1b
    volumes:
      - size: 100 # size of vol in GBs
        zone: us-west-1b # zone to create volume in, needs to match host's zone
        device: /dev/sdh # OS device to attach volume to
        mount: /mnt # The directory to mount this volume to
        mount_opts: defaults
        filesystem: ext4 # the filesystem to create on volume    

--- Resulting instance ---
ubuntu@staging-encode2:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.9G  1.9G  5.7G  25% /
udev            3.4G  8.0K  3.4G   1% /dev
tmpfs           1.4G  172K  1.4G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            3.4G     0  3.4G   0% /run/shm
/dev/xvdb       414G  199M  393G   1% /mnt


As you can see, /mnt mounts to /dev/xvdb making it unavailable for /tmp.  

If I change /mnt in rubber.yml above to /tmp, I get this in my instance.  You can see that /mnt is auto-mounted by Rubber:

ubuntu@staging-encode2:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.9G  1.9G  5.7G  25% /
udev            3.4G  8.0K  3.4G   1% /dev
tmpfs           1.4G  172K  1.4G   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            3.4G     0  3.4G   0% /run/shm
/dev/xvdb       414G  199M  393G   1% /mnt
/dev/xvdh        99G  188M   94G   1% /tmp

Madhan Padmanabhan

unread,
Jul 30, 2013, 3:28:19 PM7/30/13
to rubbe...@googlegroups.com
Hey Kevin,

Were you able to find a solution for this?

Kevin Menard

unread,
Aug 1, 2013, 6:37:28 PM8/1/13
to rubbe...@googlegroups.com
Solution for what?  I admin I didn't see Adam's email.  But as I stated, I'm able to mount /mnt directly.  What problem are you having?
 
--
Kevin
To unsubscribe from this group and stop receiving emails from it, send an email to rubber-ec2+...@googlegroups.com.
 
 
 
Reply all
Reply to author
Forward
0 new messages