OpenVZ Forum


Home » General » Support » loop device alternative
loop device alternative [message #46863] Wed, 20 June 2012 04:33 Go to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
is there an alternative to creating a virtual partition (loop dev) within a container?

i need to set a quota on a cache folder within a container.

thanks!
Re: loop device alternative [message #46880 is a reply to message #46863] Thu, 21 June 2012 04:00 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
really just want to create a cache directory like /tmp/cache and make sure it doesn't grow out of control by setting a quota on it. is there an easy way to do this inside a container? i use to create virtual partitions for this.
Re: loop device alternative [message #46887 is a reply to message #46880] Thu, 21 June 2012 16:02 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
nobody knows the answer to this?
Re: loop device alternative [message #46892 is a reply to message #46863] Thu, 21 June 2012 23:59 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
just the worst.
Re: loop device alternative [message #46992 is a reply to message #46863] Tue, 26 June 2012 14:44 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
bump for days
Re: loop device alternative [message #47005 is a reply to message #46992] Tue, 26 June 2012 23:14 Go to previous messageGo to next message
amsayk is currently offline  amsayk
Messages: 3
Registered: March 2012
Junior Member

take a look at tmpwatch
Re: loop device alternative [message #47029 is a reply to message #47005] Wed, 27 June 2012 21:16 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
^ thank you so much for your reply. any reply is wonderful right now.

unfortunately, this cache directory syncs with a cloud object so if files were removed they would just be redownloaded. I have to actually set a cap on it so it just won't grow after a certain point.

tmpwatch would be good after that so it will remove old files from something that is maxed out though.

any other ideas are very welcome. thanks!
Re: loop device alternative [message #47097 is a reply to message #47029] Thu, 05 July 2012 19:52 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
why do you hate me openvz?
Re: loop device alternative [message #47105 is a reply to message #47097] Fri, 06 July 2012 17:50 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
bump?
Re: loop device alternative [message #47151 is a reply to message #46863] Thu, 12 July 2012 02:23 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
never forget.
Re: loop device alternative [message #47188 is a reply to message #47151] Tue, 17 July 2012 22:04 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
bup
Re: loop device alternative [message #47320 is a reply to message #46863] Mon, 30 July 2012 15:20 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
bump
icon13.gif  Re: loop device alternative [message #47322 is a reply to message #46863] Mon, 30 July 2012 16:13 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
Apart from trying to piss off everyone, what's the point in bumping your thread over and over and over again?

This is not a busy forum. Your thread didn't even dissapear from the first page. Give it a rest.
Re: loop device alternative [message #47363 is a reply to message #47322] Thu, 02 August 2012 19:31 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
because it displays the lack of response and that other alternatives are better if there's not an active system for issues such as this.

i will never stop bumping it until it's resolved. if you don't like it or do not have any solutions, don't read it and don't reply.

ps- thank you for your reply. Smile
Re: loop device alternative [message #47364 is a reply to message #46863] Fri, 03 August 2012 00:14 Go to previous messageGo to next message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
You're welcome. Even afer all these years I still like feeding the trolls now and then. Enjoy while you can. Very Happy
Re: loop device alternative [message #47431 is a reply to message #46863] Fri, 10 August 2012 17:50 Go to previous messageGo to next message
xaxaxa is currently offline  xaxaxa
Messages: 11
Registered: August 2012
Location: Vancouver, BC
Junior Member
mount -t tmpfs none /tmp/cache -o size=nbytes

Re: loop device alternative [message #47925 is a reply to message #47431] Wed, 19 September 2012 00:09 Go to previous messageGo to next message
testbot is currently offline  testbot
Messages: 13
Registered: June 2012
Location: Chicago
Junior Member
^ very cool! thank you! i will give that a try. Grin
Re: loop device alternative [message #48203 is a reply to message #46863] Thu, 04 October 2012 06:41 Go to previous message
nuno is currently offline  nuno
Messages: 43
Registered: January 2010
Member
Hi.
You can also mount another filesystem in /tmp/cache.

There're instructions on how to do that in here already Wink
Regards,
Previous Topic: question about sys_time
Next Topic: How To Upgrade Vzctl on Debian Squeeze
Goto Forum:
  


Current Time: Thu Jul 11 11:24:24 GMT 2024

Total time taken to generate the page: 0.02394 seconds