SUMMARY: UFS within UFS



Thanks for those quick responses. The concensus was to use the loop back fs
(lofs) works great. My boss is smiling again. Thanks Graeme and Francisco
who pointed me to the right direction.

mount -F lofs <absolute path to directory to be mounted> <mount point>

Doing a df gives me displays the mounted directory with the full long
absolute pathname , kind of clutters the display but what the heck - it
works great !!

--SF



---------- Original message ----------
From: Sun Manager <sunfired@xxxxxxxxx>
Date: Mar 22, 2007 3:50 PM
Subject: UFS within UFS
To: sunmanagers@xxxxxxxxxxxxxxx


Hi Gurus,

I have a system here that has mounted partions for some users to upload
their data. Each user has a fixed space in which they can upload their data.
Users sftp into a chrooted environment to upload their data. One user (my
boss) wants extra space in his area to upload his data. I tried to link a
directory which had enough space from within his work directory, but it will
not work because it is a chrooted environment and he cannot traverse down
the link. I had no other partitions free to mount it onto his work area. So
I thought I had a brilliant idea and proceeded to create a filesystem within
a filesystem and have it mounted to a subdirectory in his work area. Here is
what I did:

There is about 50g free in /usr1

# mkfile 50g /usr1/newpart.ufs
# lofiadm -a /usr1/newpart.ufs
# newfs /dev/rlofi/1
# mounst /dev/lofi/1 /<my boss's work area>/temp

All this worked fine. However there is a big performance hit. Using Bonnie I
tried to test IO on a space of 1Gb and get te following result

-------Sequential Output-------- ---Sequential Input--
--Random--
-Per Char- --Block--- -Rewrite-- -Per Char- --Block---
--Seeks---
Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec
%CPU
1024 326 0.7 327 0.2 437 0.6 11973 36.7 148240 85.0 432.8
1.6

Just a few hundred K/sec? That's not acceptable. Doing the same test on a
normal partition yields

-------Sequential Output-------- ---Sequential Input--
--Random--
-Per Char- --Block--- -Rewrite-- -Per Char- --Block---
--Seeks---
Machine MB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU /sec
%CPU
1024 35563 77.2 40732 25.4 30640 33.2 33897 99.9 213579 96.5
31582.6 165.8

What explains this poor performance? How can I improve performance on the
new mount point? Am I missing something?

Thanks in advance

--SF
_______________________________________________
sunmanagers mailing list
sunmanagers@xxxxxxxxxxxxxxx
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



Relevant Pages

  • UFS within UFS
    ... I have a system here that has mounted partions for some users to upload ... Each user has a fixed space in which they can upload their data. ... I had no other partitions free to mount it onto his work area. ... %CPU ...
    (SunManagers)
  • Re: How do I publish a single page of my 30 page website?
    ... I would guess that you have a design element on page 6 that is straddling ... the work area and the scratch area. ... How to trouble-shoot Publisher web upload issues ...
    (microsoft.public.publisher.webdesign)
  • Re: For John Inzer---->SUCCESS & another question :)
    ... a collage done and tried to upload it for copies and it wouldn't upload ... > in your work area. ... To resize it you would go to: ... > Digital Image Support Center ...
    (microsoft.public.windowsxp.photos)
  • Re: document permissions for each user
    ... >> I know sps only can manage area or list, ... >> My boss want all staffs can upload his own document and can setting who ...
    (microsoft.public.sharepoint.portalserver)
  • Re: My Lazio Tickets
    ... Why don't you upload them onto flickr but don't forget to cover yer personal details. ... Go on, it will be boss. ...
    (uk.sport.football.clubs.liverpool)