You are not logged in.

#1 2011-02-08 18:12:48

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Log files management

Hi,

My NFSv4 share has gone down for no apparent reason. I never touched any config, both client and server IPs are there (router is OK). Client and server daemons restart successfully. I tried to check my logs, but it was a case of a needle in a haystack. What is the proper way to pinpoint the relevant messages? Is there a way to create custom logs where only some subset(s) of messages go?

UPD:

Actually I discovered that it is no longer mounted on the client side via /etc/fstab:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0

/dev/disk/by-label/SwapX swap swap defaults 0 0
/dev/disk/by-label/RootX / ext4 defaults 0 1
/dev/disk/by-label/HomeX /home ext4 defaults 0 1

stovepipebox:/ /mnt/stovepipe nfs4 _netdev,auto 0 0

manual mounting works:

$ sudo mount -t nfs4 stovepipebox:/ /mnt/stovepipe

I learned that by trial and error; I suppose I should have used hints from logs. I'd like to learn how to use porperly the log thing.

Last edited by Llama (2011-02-08 18:38:06)

Offline

#2 2011-02-08 19:49:53

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: Log files management

I did a grep -ri nfs /var/log on the client side and the only messages were whether the connection happened or failed. There was a recent update to nfs so maybe something changed and your options for it aren't valid anymore. Your nfs mount worked with no options when you did it manually.


You're just jealous because the voices only talk to me.

Offline

#3 2011-02-09 16:37:19

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Log files management

The grep thing will work as long as any nfs/mounting related message contaings nfs signature. Does somebody guarantee that?

As of now, my NFS share is back, right on startup. I never changed anything, and I don't like it.

Offline

#4 2011-02-09 17:49:26

steve___
Member
Registered: 2008-02-24
Posts: 452

Re: Log files management

I've created a central syslog for my computers and log all message between warning..emerg

I then, in a terminal, I use

tail -f /log_file | grep -vEf /path/to/exclude_file

and check it randomly throughout the day.

Last edited by steve___ (2011-02-09 17:50:12)

Offline

Board footer

Powered by FluxBB