Lofs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Lofs
# 1  
Old 12-10-2004
Lofs

Hi gang!

I've just tried to build a Loopback FS, and I used the option "ro" not knowing what it was meaning, as in the example I have for this feature...

Code:
mount -F lofs -o ro /my_rep /my_image_rep

and of course now I'm stuck with my LOFS which is read-only... not really what I want to have

I tried to chmod it with no success (loggued as root)

How can I manage to remove it?

(and next time I will create it without the "ro" option)

Thanx
# 2  
Old 12-10-2004
Have you tried remounting read-write?
Code:
mount -F lofs -o rw,remount /my_rep /my_image_rep

I do not have a Solaris box to test this on, unfortunately.

Otherwise, can you not just umount it and then mount again?

Cheers
ZB
# 3  
Old 12-10-2004
Quote:
Originally posted by zazzybob
Have you tried remounting read-write?
Code:
mount -F lofs -o rw,remount /my_rep /my_image_rep

can you not just umount it?
thanx for your help, I tried to remount it with no success it only answered
Code:
mount: /myrep/: Device busy

and for umounting it, it doesn't work but I do it like to umount a standard mount, not a LOFS, may be there is special command line to umount a LOFS?

this is what is in my mnttab:
Code:
/myrep   /my_image_rep    lofs    ro,suid,dev=154000f     1102611141


Last edited by Lomic; 12-10-2004 at 10:05 AM..
# 4  
Old 12-10-2004
Maybe somebody is using a file on /myrep (or you or somebody else have a pwd of somewhere under /myrep).

Try fuser /myrep to see what processes are using the fs. If you don't have fuser try lsof.

With fuser you can supply the -k option to send a SIGKILL out to any processes using the mount (e.g. fuser -k /myrep) - be careful though - you could boot people off the system (yourself included) and cause file corruption if somebody is for example editing a file, leave child processes, not cleanup after itself, etc, etc, etc.

Once you get a "clean" output from fuser /myrep that nobody is using the mount, remount it rw.

Cheers
ZB
# 5  
Old 12-10-2004
Quote:
Originally posted by zazzybob
Maybe somebody is using a file on /myrep (or you or somebody else have a pwd of somewhere under /myrep).
ok

Quote:
Try fuser /myrep to see what processes are using the fs
nothing

Quote:
If you don't have fuser try lsof.
I grepped on /myrep and there are two java processes dealing with files among /myrep

If I understand correctly, I should manage to get rid of those processes in order to umount

(so I have to stop the software which run those processes... let's see if it is possible)

thanx again for helping Smilie
# 6  
Old 12-10-2004
now it is ok, no more processes running and nobody accessing /myrep

I tried:

mount -F lofs -o rw /myrep /my_image_rep

-> Device busy (but nothing in fuser or lsof)

I tried several ways being at the same level than my_image_rep, being one rep higher and doing it like mount -F lofs -o rw /myrep rep_higher/my_image_rep

obtaining results like
mount: mount-point my_image_rep is not an absolute pathname.

mount: mount-point /my_image_rep does not exist.

and also every way of umount including with the -f option on what is in my mnttab (concerning /myrep)

I think I will end to rebuild the package I try to deploy using another directory than the one actually declared (my_image_rep)

but it will not fix the ro state of the actual my_rep_image in which I also have other packages installed (meaning that the other softwares will have troubles)

one colleague of mines suggest me to edit mnttab directly and to change ro in rw, any chance to succeed that way?
# 7  
Old 12-10-2004
Have you umounted before trying to mount again? You could add the remount option as I showed earlier.

Otherwise if the box isn't critical - just reboot the thing that'll unmount it (as long as it isnt in /etc/vfstab)!

Cheers
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

LOFS in Solaris zone, privileges

Hi all Can i check, if I have a lofs filesystem in my local zone (myzone) for - e.g. global-zone -> /db/myzone (/dev/dsk/c0t0d0s6 ufs) myzone-> /myzone (lofs filesystem) zonecfg -z myzone (add fs set dir=/myzone set special=/db/myzone set type=lofs )q1) If I have install... (0 Replies)
Discussion started by: javanoob
0 Replies

2. Solaris

Solaris zones - checking processes and lofs file system

Hi all, q1) If i am in a global-zone, is there any command or anyway to check if a particular process in "ps -ef" output is running in which zone ? q2) if i have created and mount a lofs filesystem/mountpoint for my non-global zone, can i say the following e.g. /dev/md/dsk/d60 /data --... (1 Reply)
Discussion started by: javanoob
1 Replies

3. Solaris

df error for lofs file system in local zone.

I 've a zone which is running oracle db instance. We have exported the SAN file system from the global zone as following fs: dir: /oradb special: /oradb raw not specified type: lofs options: from global zone #df -h | grep oradb... (7 Replies)
Discussion started by: fugitive
7 Replies

4. Solaris

LOFS file system

Hi All, Can you please help me in understanding the lofs file system or point me towards some link which can help ? Thanks (1 Reply)
Discussion started by: kumarmani
1 Replies

5. Solaris

Normal LOFS behaviour?

I've got one directory LOFS mounted on top of another (this is to help move from an older standard that we used to follow to a newer one that we will be). Something like this: bash-3.00# df -k | grep /x /dev/md/dsk/d4 77449687 88172 76587019 1% /x /x ... (1 Reply)
Discussion started by: blowtorch
1 Replies

6. Solaris

lofs

Hi all, I am unable to comprehend these instructions. please help if ; then /usr/sbin/mount -O -F lofs $MOE /lib/libc.so.1 Thanks (1 Reply)
Discussion started by: wrapster
1 Replies

7. Solaris

lofs

hi all, I was going through the /lib/svc/methods/fs-root file and found this command /usr/sbin/mount -O -F lofs $MOE /lib/libc.so.1 can anyone please explain to me what it does. i know what lofs does what lib.so.1 and what mount is , but am not able to interpret it as its written in the... (1 Reply)
Discussion started by: wrapster
1 Replies

8. UNIX for Advanced & Expert Users

auto mount lofs

Hi All, I want to mount one directory to other. i.e /export/home/dju to /dju It's like a link ( link -s ). but I don't want to use this( link method ) . I try to use : mount -F lofs /export/home/dju /dju the question is, how do I use this mount method with automount ,... (1 Reply)
Discussion started by: mdjuarsa
1 Replies

9. UNIX for Advanced & Expert Users

Lofs

Does anyone use lofs (loopback file systems)? I'm not looking for any deep details, but are there actually any advantages to using lofs? If anyone knows, what are the basic advantages? Thanks. -S (7 Replies)
Discussion started by: Sowser
7 Replies
Login or Register to Ask a Question