Berkeley CSUA MOTD:Entry 36930
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2005/3/28-30 [Computer/SW/Unix] UID:36930 Activity:moderate
3/28    Is it possible to nfs export the same filesystem twice under two names
        one read only one read-write.  Perhaps with a symlink?  Perhaps
        mounting a partion in two different places with two different names
        and exporting them seperately (one rw one ro)
        (or am I begging for trouble doing something like that).
        \- You can mount it in difference places, but you cant export
           two diff names.
        \_ You might be able to do this if you use something like vnconfig.
           1. Make a file of the size of the fs you want exported:
             # dd if=/dev/zero of=myfile bs=1024 count=X
           2. Configure the device:
             # vnconfig -c -v /dev/svnd0c myfile
           3. Make a fs on the file
             # newfs /dev/svnd0c
           4. Configure the second copy:
             # vnconfig -c -v /dev/svnd1c myfile
           5. Make two directories, one for ro, one for rw mount:
             # mkdir /mnt/ro /mnt/rw
           6. Mount the same file, once rw, once ro:
             # mount -o ro /dev/svnd0c /mnt/ro
             # mount -o rw /dev/svnd1c /mnt/rw
           7. NFS export the ro and rw fs's separately
           (Note I haven't tested the commands).
           \_ If you're going to go this route on FreeBSD, you can use null
              mounts. See man mount_nullfs. I suggest you make the null-mounted
              FS the read-only export; although the manpage warnings are a bit
              strong, nullfs used to have some consistency problems, so it's
              best to keep it simple. (Null mounts are also useful for
              populating jails.) -gm
           \_ linux has --bind mounts as well.  And solaris has loopback mounts\
              as well
           \_ linux has --bind mounts as well.  And solaris has loopback mounts
              as well
        \_ You can mount it in two different locations, one r/w and one r/o
           but I don't think you can export it twice.
2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
2012/8/26-11/7 [Computer/SW/Security] UID:54465 Activity:nil
8/26    Poll: how many of you pub/priv key users: 1) use private keys that
        are not password protected 2) password protect your private keys
        but don't use ssh-agent 3) use ssh-agent:
        1) .
        2) ..
        3) ...
	...
2011/11/20-2012/2/6 [Computer/Companies/Apple, Computer/SW/Unix] UID:54237 Activity:nil
11/20   Are there tools that can justify a chunk of plain ASCII text by
        replacing words with words of similar meaning and inserting/removing
        commas into the text?  I received a 40-line plain text mail where
        all the lines are justified on left and right.  Every word and comma
        is followed by only one space, and every period is followed by two
        spaces.  The guy is my kid's karate instructor which I don't think is
	...
2011/9/14-10/25 [Computer/HW/Drives] UID:54173 Activity:nil
9/13    Thanks to Jordan, our disk server is no longer virtualized. Our long
        nightmare of poor IO performance should hopefully be over. Prepare for
        another long nightmare of poor hardware reliability!
        ...
        Just kidding! (I hope)
        In any case, this means that cooler was taken out back and shot, and
	...
2010/4/28-5/10 [Computer/SW/OS/Windows] UID:53807 Activity:nil
4/28    Win 3.1 was more widely adopted than Win 3.0.  Win XP (5.1) was more
        widely adopted than Win 2k (5.0).  Now it looks like Win 7 (6.1) is
        going to be more widely adopted than Vista (6.0).  Is this a trend on
        Microsoft x.0 versions being bad?
        \_ duh.
        \_ "more widely adopted" ... well... what are you basing these numbers
	...
2010/3/8-30 [Computer/SW/Unix] UID:53745 Activity:nil
3/8     I have a mod_rewrite question that I think should be straight-
        forward but I think I'm not getting something.
        I have a virtual server with some root, say /home/user/public_html/
        and in there I have two subdirs, say /app1/ and /app2/
        and i want the following:
        http://mysite/app1   -->   /home/user/public_html/app1
	...
2009/2/26-3/5 [Computer/SW/Unix] UID:52653 Activity:nil
2/26    If I want to rsync a perforce or svn directory while users
        are checking things in, could I wind up with a corrupted copy?
        \_ sure why not.  if you are really cool, your copy of the svn
           repo is on LVM, and you snap the LVM to copy it.
           \_ It'll seem less cool when you realize you've taken a snapshot
              of a block level device, which only guarantees that this set of
	...
2008/11/29-12/6 [Computer/SW/OS/FreeBSD, Computer/SW/OS/VM] UID:52129 Activity:moderate
11/29   I'm experimenting with virtualization, and as a poor college student
        I'm wondering what the best alternatives for virtualization are, and
        how best to cut my teeth on messing with non-linux platforms (or I
        guess interesting stuff on Linux would work too). Right now I've got
        FreeBSD7 running on KVM on my home computer (on a Core 2 Quad), and am
        somewhat at a loss as to how to use it. (More details: bridged
	...
2008/8/27-9/3 [Computer/HW/Laptop, Computer/SW/OS/Linux] UID:50980 Activity:nil
8/27    I have a rather large linux partition.  I just got a new laptop
        and want to move all my settings and customization to that new
        computer.  how to do this?  I tried remastersys but it seems that it
        get stuck somewhere, and I am hoping it is not really trying to create
        a 26GB iso file.
        any ideas?  is there anyway i can back up my debian package database
	...
2008/6/6-10 [Computer/SW/OS/Windows, Computer/SW/Unix] UID:50172 Activity:nil
6/6     Am I in alone is really hating tabbed web browsing? I cannot stand
        it! If I go to a new site I like to have a new window because I
        might want to see both sites at once or I might want to kill the
        window entirely if it gets hung up. From my POV tabbed browsing is
        not a plus.
        \_ I multitask between 2-3 different things, meaning I need to
	...