Festplatten-Übersicht und Samba  [GELÖST]

Locked
User avatar
MLan
Posts: 466
Joined: Wed 20. Sep 2017, 23:05
Location: @home

Festplatten-Übersicht und Samba

Post by MLan »

Guten Morgen,
habe folgendes Problem bei einem Server:
Debian 10.11 + KH 21.2 (Build 2302)

Auf diesem Server wird eine Samba Platte nur für die Dauer eines Backups gemountet. (Hetzner Storagebox)
Der Mountpoint ist in /etc/fstab eingetragen.
Wenn die Platte nicht gemountet ist, komme ich nicht mehr ins Adminpanel. (weisse Seite)
Wie kann man solche Mount Points in der Festplatten-Übersicht ausklammern ?

Code: Select all

/var/log/keyhelp/php-error.log

[19-Oct-2021 10:50:09 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /home/keyhelp/www/keyhelp/core/System/Disk.php on line 324
[19-Oct-2021 10:50:09 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function getSize() on bool in /home/keyhelp/www/keyhelp/core/pending/Server.php:196
Stack trace:
#0 /home/keyhelp/www/keyhelp/pages/admin_dashboard.php(184): Server::getDiskspace('/')
#1 /home/keyhelp/www/keyhelp/index.php(411): unknown()
#2 {main}
  thrown in /home/keyhelp/www/keyhelp/core/pending/Server.php on line 196
[19-Oct-2021 10:50:50 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /home/keyhelp/www/keyhelp/core/System/Disk.php on line 324
[19-Oct-2021 10:50:50 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to a member function getSize() on bool in /home/keyhelp/www/keyhelp/core/pending/Server.php:196
Stack trace:
#0 /home/keyhelp/www/keyhelp/pages/admin_dashboard.php(184): Server::getDiskspace('/')
#1 /home/keyhelp/www/keyhelp/index.php(411): unknown()
#2 {main}
  thrown in /home/keyhelp/www/keyhelp/core/pending/Server.php on line 196
Gruß MLan
User avatar
Alexander
Keyweb AG
Posts: 3809
Joined: Wed 20. Jan 2016, 02:23

Re: Festplatten-Übersicht und Samba

Post by Alexander »

KeyHelp benutzt diesen Befehl zum Auslesen:

Code: Select all

df --print-type --portability --block-size=1
Der wird denke ich bei dir fehlschlagen, oder? Wie ist die Ausgabe und wie lautet der Exitcode?
(Exitcode kann mit dem Befehl "echo $?" ausgegeben werden)
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
MLan
Posts: 466
Joined: Wed 20. Sep 2017, 23:05
Location: @home

Re: Festplatten-Übersicht und Samba

Post by MLan »

Hallo Alex,

ungemountet:

Code: Select all

df --print-type --portability --block-size=1
df: /storagebox: Host is down
Filesystem     Type          1-blocks        Used     Available Capacity Mounted on
udev           devtmpfs   16775192576           0   16775192576       0% /dev
tmpfs          tmpfs       3358822400      675840    3358146560       1% /run
/dev/md2       ext4     1950353915904 53777334272 1797432512512       3% /
tmpfs          tmpfs      16794095616       28672   16794066944       1% /dev/shm
tmpfs          tmpfs          5242880           0       5242880       0% /run/lock
tmpfs          tmpfs      16794095616           0   16794095616       0% /sys/fs/cgroup
tmpfs          tmpfs       6717640704    19435520    6698205184       1% /tmp
/dev/md1       ext3         510955520   176459776     307682304      37% /boot
tmpfs          tmpfs       3358818304           0    3358818304       0% /run/user/0
echo $? = 1
gemountet:

Code: Select all

df --print-type --portability --block-size=1
Filesystem                          Type          1-blocks         Used     Available Capacity Mounted on
udev                                devtmpfs   16775192576            0   16775192576       0% /dev
tmpfs                               tmpfs       3358822400       679936    3358142464       1% /run
/dev/md2                            ext4     1950353915904  53777571840 1797432274944       3% /
tmpfs                               tmpfs      16794095616        28672   16794066944       1% /dev/shm
tmpfs                               tmpfs          5242880            0       5242880       0% /run/lock
tmpfs                               tmpfs      16794095616            0   16794095616       0% /sys/fs/cgroup
tmpfs                               tmpfs       6717640704     19435520    6698205184       1% /tmp
/dev/md1                            ext3         510955520    176459776     307682304      37% /boot
//u212222.your-storagebox.de/backup cifs      536870912000 162141288448  374729623552      31% /storagebox
tmpfs                               tmpfs       3358818304            0    3358818304       0% /run/user/0
echo $? = 0
Gruß Mlan
User avatar
MLan
Posts: 466
Joined: Wed 20. Sep 2017, 23:05
Location: @home

Re: Festplatten-Übersicht und Samba  [GELÖST]

Post by MLan »

Lösung:
Habe den Mountpoint /storagebox geöscht und neu angelegt.
Locked