LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   a question about appserver (https://www.linuxquestions.org/questions/linux-newbie-8/a-question-about-appserver-831291/)

zarzor_2010 09-09-2010 09:00 PM

a question about appserver
 
Hi all
I have a strange problem

I have a computer in the university and I have root access to this pc.
Iam trying to install Cblas library on it. But it gives me a starnge error

/usr/local/atlas is read only file system.

I tried doing mount -l
and it gave me that

appserver1:/export/d1/Linux/doe on /usr/local type nfs4 (ro,sec=.......)

I think what it means that the main server directory is mounted to /usr/local and it is read only.

So, how can I fix this problem to separate the two and make my /usr/local separate

Thanks in advance
Mina

Tinkster 09-09-2010 10:57 PM

Hi,

Are you 100% certain that none of the stuff under the current /usr/local
will be required? Or that it's ok with your institution if you made local
copies of whatever is there?

If no other users on that machine will need the app you could always
just install it in your home.


Cheers,
Tink

zarzor_2010 09-10-2010 08:00 AM

No, Iam the only one who uses this PC. and I do not think that I will need the data in /usr/local

But how can I install the application under my home directory? it needs to add static library to /usr/local/

Thanks for your help
Mina

Tinkster 09-10-2010 05:38 PM

Quote:

Originally Posted by zarzor_2010 (Post 4093416)
No, Iam the only one who uses this PC. and I do not think that I will need the data in /usr/local

If you have data under /usr/local your varsity has
a weird layout :} for its network file-systems.


Quote:

Originally Posted by zarzor_2010 (Post 4093416)
But how can I install the application under my home directory? it needs to add static library to /usr/local/

Thanks for your help
Mina


I have no idea how Cblas works its install, but if you compile
it from source you can just tell it to install to your home; and
you can then add it's lib-path to LD_LIBRARY_PATH in your bashrc.


Cheers,
Tink

zarzor_2010 09-11-2010 09:46 PM

Thank you so much

I tried umount /usr/local to unmount my local folder from the srver folder

But I have another question please. is the umount i used is permenant. or it will come back after I restart my pc.

If it is not permanent, How I can make it permanent?

Thanx alot for your help
Mina

Tinkster 09-11-2010 11:50 PM

Depends on how it's being mounted. Most likely one of
two alternatives:
a) Via a line in /etc/fstab
b) Using autofs, check /etc/auto.net or /etc/auto.misc
(in doubt check auto.master whether it includes any
other files in your distro).

In either case you just need to comment the line that
pertains to the share you're seeing.



Cheers,
Tink

zarzor_2010 09-16-2010 06:19 PM

Thank you so much for your reply

However I did not find the line that mount this appserver. Here is my auto.master

PHP Code:

net -hosts
/misc /etc/auto.misc
/- /etc/auto.direct
/home ldap://ldap4/automountMapName=auto_home,dc=doe,dc=carleton,dc=ca -fstype=
+auto.master 


Here is my /etc/auto.net

PHP Code:

key="$1"

# add "nosymlink" here if you want to suppress symlinking local filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
opts="-fstype=nfs,hard,intr,nodev,nosuid"

# Showmount comes in a number of names and varieties.  "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it.  "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail -n +2"

for P in /bin /sbin /usr/bin /usr/sbin
do
        for 
M in showmount kshowmount
        
do
                if [ -
x $P/$M ]
                
then
                        SMNT
=$P/$M
                        
break
                
fi
        done
done

[ -x $SMNT ] || exit 1

# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"

$SHOWMOUNT LC_ALL=C sort -k 1 | \
        
awk -v key="$key-v opts="$opts-- '
        BEGIN   { ORS=""; first=1 }
                { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
        END     { if (!first) print "\n"; else exit 1 }
        ' 
sed 's/#/\\#/g' 

Here is my /etc/auto.misc

PHP Code:

cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux          -ro,soft,intr           ftp.example.org:/pub/linux
#boot           -fstype=ext2            :/dev/hda1
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
#jaz            -fstype=ext2            :/dev/sdc1
#removable      -fstype=ext2            :/dev/hdd 

Thank you so much for your help.

Tinkster 09-16-2010 08:37 PM

So what about auto.net & fstab?

zarzor_2010 09-17-2010 08:36 AM

Thank you all for trying to help me of this issue.

here is my /etc/fstab
PHP Code:

/dev/VolGroup00/LogVol00 ext3 defaults 1 1
LABEL
=/boot /boot ext3 defaults 1 2
tmpfs 
/dev/shm tmpfs defaults 0 0
devpts 
/dev/pts devpts gid=5,mode=620 0 0
sysfs 
/sys sysfs defaults 0 0
proc 
/proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0 

here it is my auto.net

PHP Code:

key="$1"

# add "nosymlink" here if you want to suppress symlinking local filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
opts="-fstype=nfs,hard,intr,nodev,nosuid"

# Showmount comes in a number of names and varieties.  "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it.  "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail -n +2"

for P in /bin /sbin /usr/bin /usr/sbin
do
        for 
M in showmount kshowmount
        
do
                if [ -
x $P/$M ]
                
then
                        SMNT
=$P/$M
                        
break
                
fi
        done
done

[ -x $SMNT ] || exit 1

# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"

$SHOWMOUNT LC_ALL=C sort -k 1 
        
awk -v key="$key-v opts="$opts-- '
        BEGIN   { ORS=""; first=1 }
                { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
        END     { if (!first) print "\n"; else exit 1 }
        ' 
sed 's/#/\\#/g' 


thanks
Mina

Tinkster 09-17-2010 09:04 AM

Sorry, meant auto.misc. But that .net doesn't look like any autofs
config file I've ever seen - it's a shell script of sorts?

What OS & version are you running?

Tinkster 09-17-2010 09:04 AM

Sorry, meant auto.misc. But that .net doesn't look like any autofs
config file I've ever seen - it's a shell script of sorts?

What OS & version are you running?

zarzor_2010 09-17-2010 09:16 AM

/etc/auto.misc is

PHP Code:

cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

# the following entries are samples to pique your imagination
#linux          -ro,soft,intr           ftp.example.org:/pub/linux
#boot           -fstype=ext2            :/dev/hda1
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
#jaz            -fstype=ext2            :/dev/sdc1
#removable      -fstype=ext2            :/dev/hdd 

I have checked my /etc/auto.net and it is the same as before
here it is again:

PHP Code:

#!/bin/bash

# $Id: auto.net,v 1.8 2005/04/05 13:02:09 raven Exp $

# This file must be executable to work! chmod 755!

# Look at what a host is exporting to determine what we can mount.
# This is very simple, but it appears to work surprisingly well

key="$1"

# add "nosymlink" here if you want to suppress symlinking local filesystems
# add "nonstrict" to make it OK for some filesystems to not mount
opts="-fstype=nfs,hard,intr,nodev,nosuid"

# Showmount comes in a number of names and varieties.  "showmount" is
# typically an older version which accepts the '--no-headers' flag
# but ignores it.  "kshowmount" is the newer version installed with knfsd,
# which both accepts and acts on the '--no-headers' flag.
#SHOWMOUNT="kshowmount --no-headers -e $key"
#SHOWMOUNT="showmount -e $key | tail -n +2"

for P in /bin /sbin /usr/bin /usr/sbin
do
        for 
M in showmount kshowmount
        
do
                if [ -
x $P/$M ]
                
then
                        SMNT
=$P/$M
                        
break
                
fi
        done
done

[ -x $SMNT ] || exit 1

# Newer distributions get this right
SHOWMOUNT="$SMNT --no-headers -e $key"

$SHOWMOUNT LC_ALL=C sort -k 1 | \
        
awk -v key="$key-v opts="$opts-- '
        BEGIN   { ORS=""; first=1 }
                { if (first) { print opts; first=0 }; print " \\\n\t" $1, key ":" $1 }
        END     { if (!first) print "\n"; else exit 1 }
        ' 
sed 's/#/\\#/g' 


Thank you
Mina

prayag_pjs 09-17-2010 09:38 AM

follow this link to get autofs details

http://www.redhat.com/docs/manuals/l...nfs-mount.html

zarzor_2010 09-17-2010 10:05 AM

I have checked the autofs files in the univ PC. (/etc/auto.master, /etc/auto.misc, /etc/auto.net) and there is no entery for that file

appserver1:/export/d1/Linux/doe on /usr/local type nfs4 (ro,sec=.......)

is there a way to check a log file on the univ linux to see from where it is got mounted?

Thanks
Mina


All times are GMT -5. The time now is 08:03 PM.