[gelöst] fehler meldung "filesystem is full" nach Festplatten crash

Status
Not open for further replies.

compaq1000

Cadet
Joined
Feb 15, 2012
Messages
5
Hallo,

Ich benutze Freenas 8.0.3-RELEASE-x64 (9395) seit 3-4 Wochen. Ich benutze ihn als Datastore und auch als festplatten speicher für meine VM von Proxmox.

Ich hatte vor zwei tagen eine Crash der alles still legte ... der freenas war nicht mehr zu erreichen ... nach dem neustart und löschen und wieder hinzufügen von ZFS kann ich ihn wieder erreichen ... nur komme ich jetzt nicht mehr auf die freigaben rauf er verlangt ein Benutzername und Passwort.

Dann habe ich versucht die Benutzer nochmal neu anzulegen. Dieses hat auch nicht funktioniert da bekomme ich dann eine fehlermeldung... Ich habe dann versucht über console mal das Root kennwort zuändern da kam dann das
Code:
/etc: write failed, filesystem is full
passwd: pam_chauthtok(): error in service module


Ich habe mir dann mal die auslastungen angesehn und stelle fest /etc
ist mit 108% überfüllt.
Code:
[root@nas] ~# df
Filesystem                 1K-blocks      Used     Avail Capacity  Mounted on
/dev/ufs/FreeNASs1a           948903    384413    488578    44%    /
devfs                              1         1         0   100%    /dev
/dev/md0                        4663      4638      -348   108%    /etc
/dev/md1                         823         4       753     1%    /mnt
/dev/md2                      152791     16368    124200    12%    /var
/dev/ufs/FreeNASs4             20263      1114     17528     6%    /data


vielleicht hilf das noch ...
Code:
[root@nas] /etc# ll
total 518
dr-xr-xr-x  23 root         wheel      2560 Feb 15 19:19 ./
drwxr-xr-x  20 root         wheel       512 Jan  3 12:08 ../
drwxrwxr-x   2 root         operator    512 Jan  3 12:08 .snap/
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 X11/
-rw-r--r--   1 root         wheel       283 Feb 14 21:42 afpd.conf
lrwxr-xr-x   1 root         wheel        12 Jan  3 12:06 aliases@ -> mail/aliases
-rw-r--r--   1 root         wheel       221 Jan  3 12:06 amd.map
-rw-r--r--   1 root         wheel      1248 Jan  3 12:06 apmd.conf
-rw-r--r--   1 root         wheel       241 Jan  3 12:06 auth.conf
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 bluetooth/
-rw-r--r--   1 root         wheel      2413 Feb 14 21:42 crontab
-rw-r--r--   1 root         wheel      1330 Jan  3 10:07 csh.cshrc
-rw-r--r--   1 root         wheel       491 Jan  3 12:06 csh.login
-rw-r--r--   1 root         wheel       122 Jan  3 12:06 csh.logout
-rw-r--r--   1 root         wheel       571 Jan  3 12:06 ddb.conf
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 defaults/
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 devd/
-rw-r--r--   1 root         wheel      9566 Jan  3 12:06 devd.conf
-rw-r--r--   1 root         wheel      2080 Jan  3 12:06 devfs.conf
-rw-r--r--   1 root         wheel        91 Jan  3 10:07 devfs.rules
-rw-r--r--   1 root         wheel       277 Jan  3 12:06 dhclient.conf
-rw-r--r--   1 root         wheel         0 Jan  3 12:06 diskless
-rw-r--r--   1 root         wheel      5719 Jan  3 12:06 disktab
-rw-rw-r--   1 root         wheel         0 Jan  3 12:06 dumpdates
-rw-r--r--   1 root         wheel         0 Feb 14 21:42 exports
-rw-r--r--   1 root         wheel       154 Jan  3 12:06 fbtab
-rwxr-xr-x   1 root         wheel      2799 Jan  3 10:07 find_alias_for_smtplib.py*
-rw-r--r--   1 root         wheel       119 Feb 14 21:45 fstab
-rw-r--r--   1 root         wheel       258 Jan  3 10:07 ftpusers
-rw-r--r--   1 root         wheel      6295 Jan  3 10:07 gettytab
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 gnats/
-rw-r--r--   1 root         wheel       710 Feb 15 18:07 group
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 gss/
-rw-r--r--   1 root         wheel        46 Feb 14 21:42 host.conf
-rw-r--r--   1 root         1002         37 Jan 15 20:08 hostid
-rw-r--r--   1 root         wheel      1171 Feb 14 21:41 hosts
-rw-r--r--   1 root         wheel      3361 Jan  3 12:06 hosts.allow
-rw-r--r--   1 root         wheel       123 Jan  3 12:06 hosts.equiv
-rw-r--r--   1 root         wheel      5015 Jan  3 12:06 inetd.conf
drwxr-xr-x   3 a-cbrachlow  1002        512 Jan  3 10:07 ix/
-rw-r--r--   1 root         wheel       242 Jan  3 12:06 libalias.conf
drwxr-xr-x  20 root         wheel      1536 Feb 14 21:42 local/
-rw-r--r--   1 root         wheel        60 Feb 14 21:42 local_settings.py
-r--r--r--   1 root         wheel      2309 Feb 15 14:58 localtime
-rw-r--r--   1 root         wheel       908 Jan  3 12:06 locate.rc
-rw-r--r--   1 root         wheel      1856 Jan  3 12:06 login.access
-rw-r--r--   1 root         wheel      6744 Jan  3 12:06 login.conf
-rw-r--r--   1 root         wheel     16384 Jan  3 12:06 login.conf.db
-rw-r--r--   1 root         wheel       574 Jan  3 12:06 mac.conf
drwxr-xr-x   2 a-cbrachlow  1002        512 Jan  3 12:06 mail/
-rw-r--r--   1 root         wheel       106 Jan  3 12:06 mail.rc
-rw-r--r--   1 root         wheel         0 Jan  3 12:06 make.conf
-rw-------   1 root         wheel      1895 Feb 15 18:19 master.passwd
-rw-r--r--   1 root         1002          6 Jan  3 12:08 md_size
-rw-r--r--   1 root         wheel       305 Feb 14 21:42 motd
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 mtree/
lrwxr-xr-x   1 root         wheel        23 Jan  3 12:06 namedb@ -> ../var/named/etc/namedb
-rw-r--r--   1 root         wheel        23 Jan  3 12:06 nanobsd.conf
-rwxr-xr-x   1 root         wheel     24011 Jan  3 10:07 netcli*
-rwxr-xr-x   1 root         wheel       148 Jan  3 10:07 netcli.sh*
-rw-r--r--   1 root         wheel       797 Jan  3 12:06 netconfig
-rwxr-xr-x   1 root         wheel      2433 Jan  3 12:06 netstart*
-rw-r--r--   1 root         wheel     23970 Jan  3 12:06 network.subr
-rw-r--r--   1 root         wheel       377 Jan  3 12:06 networks
-rw-r--r--   1 root         wheel      1987 Jan  3 10:07 newsyslog.conf
-rw-------   1 root         wheel      1710 Jan  3 12:06 nsmb.conf
-rw-r--r--   1 root         wheel       120 Feb 14 21:42 nsswitch.conf
drwx------   2 root         wheel       512 Jan  3 12:06 ntp/
-rw-r--r--   1 root         wheel       142 Feb 15 14:58 ntp.conf
-rw-------   1 root         wheel       446 Jan  3 12:06 opieaccess
-rw-------   1 root         wheel         0 Feb 15 19:16 opiekeys
drwxr-xr-x   2 root         wheel       512 Feb 14 21:42 pam.d/
-rw-r--r--   1 root         wheel      1587 Feb 15 18:19 passwd
-rwxr-xr-x   1 root         wheel      2375 Jan  3 12:06 pccard_ether*
drwxr-xr-x   6 a-cbrachlow  1002        512 Jan  3 10:07 periodic/
-rw-r--r--   1 root         wheel       435 Jan  3 10:07 periodic.conf
-rw-r--r--   1 root         wheel     28385 Jan  3 12:06 pf.os
-rw-r--r--   1 root         wheel       248 Jan  3 12:06 phones
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 ppp/
-rw-r--r--   1 root         wheel       629 Jan  3 12:06 profile
-rw-r--r--   1 root         wheel      6094 Jan  3 12:06 protocols
-rw-r--r--   1 root         wheel        48 Jan  3 10:07 pw.conf
-rw-r--r--   1 root         wheel     40960 Feb 14 21:41 pwd.db
-rw-r--r--   1 root         wheel      3726 Jan  3 12:06 rc
-rw-r--r--   1 root         wheel      4616 Jan  3 12:06 rc.bsdextended
-rw-r--r--   1 root         wheel      1101 Jan  3 12:08 rc.conf
-rwxr-xr-x   1 root         wheel     11891 Jan  3 10:07 rc.conf.local*
drwxr-xr-x   2 a-cbrachlow  1002       3584 Jan  3 12:06 rc.d/
-rw-r--r--   1 root         wheel     18599 Jan  3 12:06 rc.firewall
-rw-r--r--   1 root         wheel      9520 Jan  3 10:07 rc.freenas
-rw-r--r--   1 root         wheel     12878 Jan  3 12:08 rc.initdiskless
-rwxr-xr-x   1 root         wheel      2324 Jan  3 12:06 rc.resume*
-rw-r--r--   1 root         wheel      5794 Jan  3 12:06 rc.sendmail
-rw-r--r--   1 root         wheel      3342 Jan  3 10:07 rc.shutdown
-rw-r--r--   1 root         wheel     38512 Jan  3 10:07 rc.subr
-rwxr-xr-x   1 root         wheel      2296 Jan  3 12:06 rc.suspend*
-rw-r--r--   1 root         wheel      2704 Jan  3 12:06 remote
-rw-r--r--   1 root         wheel        50 Feb 15 18:20 resolv.conf
-rw-r--r--   1 root         wheel        50 Feb 15 18:20 resolv.conf.save
lrwxr-xr-x   1 root         wheel        13 Jan  3 12:06 rmt@ -> /usr/sbin/rmt
-rw-r--r--   1 root         wheel      1683 Jan  3 12:06 rpc
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 security/
-rw-r--r--   1 root         wheel     86566 Jan  3 12:06 services
-rw-r--r--   1 root         wheel       294 Jan  3 12:07 shells
drwxr-xr-x   2 root         wheel       512 Jan  3 12:06 skel/
-rw-r--r--   1 root         wheel       862 Feb 14 21:42 snmpd.config
-rw-------   1 root         wheel     40960 Feb 14 21:41 spwd.db
drwxr-xr-x   2 a-cbrachlow  1002        512 Feb 14 21:42 ssh/
drwxr-xr-x   3 root         wheel       512 Feb 14 21:42 ssl/
-rw-r--r--   1 root         wheel       681 Jan  3 10:07 sysctl.conf
-rw-r--r--   1 root         wheel      1229 Feb 14 21:42 syslog.conf
lrwxr-xr-x   1 root         wheel        23 Jan  3 12:06 termcap@ -> /usr/share/misc/termcap
-rw-r--r--   1 root         wheel     10689 Jan  3 12:06 termcap.small
-rw-r--r--   1 root         wheel      7557 Feb 14 21:42 ttys
-rw-r--r--   1 root         wheel        33 Jan  3 12:08 version.freenas
drwxr-xr-x   2 root         wheel       512 Feb 14 21:41 zfs/

Wie kann ich das Problem lösen???

Danke für eure Hilfe im vorraus. :-D
 

bubulein

Explorer
Joined
Jun 1, 2011
Messages
62
Moin,

Du könntest Dich mit den Befehlen
Code:
# du -h -H -d 2 -I *mnt /
# du -H /etc

mal auf die Suche nach großen Dateien und Ordnern machen

-Christian
 

compaq1000

Cadet
Joined
Feb 15, 2012
Messages
5
Moin,

Du könntest Dich mit dee Befehlen
Code:
# du -h -H -d 2 -I *mnt /
# du -H /etc

mal auf die Suche nach großen Dateien und Ordnern machen

-Christian

Ok ... aber es betrifft ja nur /etc die anderen sind ja alle in ordnung ... und was soll ich da löschen? Ich habe ja auch nichts Installiert ...

Gibt es auf /etc Log dateien wenn ja wo und kann man die ohne bedenken löschen?

Gruß Jens
 

bubulein

Explorer
Joined
Jun 1, 2011
Messages
62
Moin,
vielleicht postest Du einfach mal was die Befehle so ausspucken.
Von alleine passiert das alles schonmal nicht, also muss irgendwer oder irgend was das Dateisystem beschreibbar gemacht haben.

-Christian
 

compaq1000

Cadet
Joined
Feb 15, 2012
Messages
5
Moin,
vielleicht postest Du einfach mal was die Befehle so ausspucken.
Von alleine passiert das alles schonmal nicht, also muss irgendwer oder irgend was das Dateisystem beschreibbar gemacht haben.

-Christian

morgen ;-)

also das Ergebniss:
Code:
[root@nas] ~# du -h -H -d 2 -I *mnt/
du: No match.
[root@nas] ~#


und der zweite befehl:
Code:
[root@nas] ~# du -H /etc
1       /etc/.snap
29      /etc/security
1       /etc/bluetooth
1       /etc/zfs
2       /etc/gss
2793    /etc/mail
1       /etc/gnats
15      /etc/pam.d
363     /etc/rc.d
18      /etc/local/istgt
5       /etc/local/pango
2       /etc/local/avahi/services
11      /etc/local/avahi
1       /etc/local/devd
3       /etc/local/freenas-debug/network
3       /etc/local/freenas-debug/geom
4       /etc/local/freenas-debug/hardware
5       /etc/local/freenas-debug/active_directory
5       /etc/local/freenas-debug/ldap
3       /etc/local/freenas-debug/system
3       /etc/local/freenas-debug/ssl
3       /etc/local/freenas-debug/sysctl
3       /etc/local/freenas-debug/zfs
4       /etc/local/freenas-debug/cache
39      /etc/local/freenas-debug
84      /etc/local/nut
2       /etc/local/openldap
1       /etc/local/scponly
2       /etc/local/fonts/conf.d
48      /etc/local/fonts/conf.avail
68      /etc/local/fonts
1       /etc/local/pam.d
4       /etc/local/bash_completion.d
2       /etc/local/samba
1       /etc/local/snmp
6       /etc/local/periodic/daily
7       /etc/local/periodic
2       /etc/local/dbus-1/system.d
1       /etc/local/dbus-1/session.d
9       /etc/local/dbus-1
62      /etc/local/lighttpd/conf.d
2       /etc/local/lighttpd/vhosts.d
93      /etc/local/lighttpd
41      /etc/local/rc.d
1       /etc/local/man.d
573     /etc/local
6       /etc/devd
31      /etc/periodic/security
24      /etc/periodic/daily
5       /etc/periodic/weekly
3       /etc/periodic/monthly
62      /etc/periodic
1       /etc/X11
1       /etc/ssl/freenas/CA/certs
1       /etc/ssl/freenas/CA/private
3       /etc/ssl/freenas/CA
6       /etc/ssl/freenas
16      /etc/ssl
65      /etc/mtree
1       /etc/skel
53      /etc/defaults
1       /etc/ntp
18      /etc/ix/templates/pam.d
2       /etc/ix/templates/kerberos
20      /etc/ix/templates
21      /etc/ix
137     /etc/ssh
1       /etc/ppp
4639    /etc
[root@nas] ~#


Gruß Jens
 

bubulein

Explorer
Joined
Jun 1, 2011
Messages
62
Moin,
der Überltäter liegt wohl hier:
2793 /etc/mail
bis auf
aliases mailer.con
sollte man alles Löschen/Verschieben können.

-Christian
 

compaq1000

Cadet
Joined
Feb 15, 2012
Messages
5
Guten Morgen :smile:

Jupp ist mir auch aufgefallen und hatte da mal rein geschaut ausser Aliases und Mailer.conf ist da aber nix drinne.
Was aber sehr merkwürdig ist das die Datei Aliases sehr sehr groß ist ...

Code:
[root@nas] ~# ll /etc/mail/
total 2772
drwxr-xr-x   2 1002  1002       512 Jan 19 01:48 ./
dr-xr-xr-x  23 root  wheel     2560 Feb 17 08:16 ../
-rw-r--r--   1 root  wheel  2820851 Feb 17 08:16 aliases
-rw-r--r--   1 root  wheel       94 Jan 18 22:34 mailer.conf
[root@nas] ~#


Also mal rein geschaut und dann kommt da unmengen an wiederholungen der Einträge ... also auf normal gesetzt siehe da alles wieder schick ... aber nach neustart ist die aliases wieder so voll mit mehren wiederholung der einträge ...

Code:
# $FreeBSD: src/etc/mail/aliases,v 1.22.2.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#	@(#)aliases	5.3 (Berkeley) 5/24/90
#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks.
#
#	>>>>>>>>>>	The program "newaliases" must be run after
#	>> NOTE >>	this file is updated for any changes to
#	>>>>>>>>>>	show through to sendmail.
#
#
# See also RFC 2142, `MAILBOX NAMES FOR COMMON SERVICES, ROLES
# AND FUNCTIONS', May 1997
# 	http://tools.ietf.org/html/rfc2142

# Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.

# root:	me@my.domain

# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts
_dhcp:	root
_pflogd: root
bin:	root
bind:	root
daemon:	root
games:	root
kmem:	root
mailnull: postmaster
man:	root
news:	root
nobody:	root
operator: root
pop:	root
proxy:	root
smmsp:	postmaster
sshd:	root
system:	root
toor:	root
tty:	root
usenet: news
uucp:	root

# Well-known aliases -- these should be filled in!
# manager:
# dumper:

# BUSINESS-RELATED MAILBOX NAMES
# info:
# marketing:
# sales:
# support:

# NETWORK OPERATIONS MAILBOX NAMES
abuse:	root
# noc:		root
security:	root

# SUPPORT MAILBOX NAMES FOR SPECIFIC INTERNET SERVICES
ftp: 		root
ftp-bugs: 	ftp
# hostmaster: 	root
# webmaster: 	root
# www: 		webmaster

# NOTE: /var/msgs and /var/msgs/bounds must be owned by sendmail's
#	DefaultUser (defaults to mailnull) for the msgs alias to work.
#
# msgs: "| /usr/bin/msgs -s"

# bit-bucket: /dev/null
# dev-null: bit-bucket
root: ****@******.de


Diese eintäge so wie er ist ... gibt es in der Datei mindestens 20 mal ... wie gesagt das Kürzen bringt nix ... das löschen neustarten und dann wieder setzen will ich jetzt mal probieren ...

LG jens

Edit: Also das löschen und neustarten bringt nix er erstellt sie wieder und zwar mit den mehrfach einträgen ... wo holt er die daten er???
 

compaq1000

Cadet
Joined
Feb 15, 2012
Messages
5
Guten Morgen :smile:

Jupp ist mir auch aufgefallen und hatte da mal rein geschaut ausser Aliases und Mailer.conf ist da aber nix drinne.
Was aber sehr merkwürdig ist das die Datei Aliases sehr sehr groß ist ...

Edit: Also das löschen und neustarten bringt nix er erstellt sie wieder und zwar mit den mehrfach einträgen ... wo holt er die daten er???

Ich nochmal ... Ich habe das Problem gefunden ... Ich habe zuviele aliases angelegt gehabt ... Ich habe mir nicht nur root an meine Email addresse weiterleiten lassen sondern auch andere Benutzer dadurch wurde die datei aliases so groß ... er legt für jeden aliases den ...

Code:
# $FreeBSD: src/etc/mail/aliases,v 1.22.2.1.6.1 2010/12/21 17:09:25 kensmith Exp $
#	@(#)aliases	5.3 (Berkeley) 5/24/90
#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks.
#
#	>>>>>>>>>>	The program "newaliases" must be run after
#	>> NOTE >>	this file is updated for any changes to
#	>>>>>>>>>>	show through to sendmail.
#
#
# See also RFC 2142, `MAILBOX NAMES FOR COMMON SERVICES, ROLES
# AND FUNCTIONS', May 1997
# 	http://tools.ietf.org/html/rfc2142

# Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.

# root:	me@my.domain

# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts
_dhcp:	root
_pflogd: root
bin:	root
bind:	root
daemon:	root
games:	root
kmem:	root
mailnull: postmaster
man:	root
news:	root
nobody:	root
operator: root
pop:	root
proxy:	root
smmsp:	postmaster
sshd:	root
system:	root
toor:	root
tty:	root
usenet: news
uucp:	root

# Well-known aliases -- these should be filled in!
# manager:
# dumper:

# BUSINESS-RELATED MAILBOX NAMES
# info:
# marketing:
# sales:
# support:

# NETWORK OPERATIONS MAILBOX NAMES
abuse:	root
# noc:		root
security:	root

# SUPPORT MAILBOX NAMES FOR SPECIFIC INTERNET SERVICES
ftp: 		root
ftp-bugs: 	ftp
# hostmaster: 	root
# webmaster: 	root
# www: 		webmaster

# NOTE: /var/msgs and /var/msgs/bounds must be owned by sendmail's
#	DefaultUser (defaults to mailnull) for the msgs alias to work.
#
# msgs: "| /usr/bin/msgs -s"

# bit-bucket: /dev/null
# dev-null: bit-bucket


... an :smile: ... Ich glaub man nennt das Bug ... es würde ja reichen wenn man nur ftp mail@adresse.ha eintragen würde ;-)

Ich danke dir für deine Unterstützung

Gruß Jens
 
Status
Not open for further replies.
Top