Category / SysAdmin

Oh noes, while starting a container, it failed cause of a corrupt quota file… Starting container … vzquota : (error) quota file is corrupted vzquota on failed [4] TASK ERROR: command ‘vzctl start 114’ failed: exit code 60 The fix is to remove it and rebuild it (this takes a long time, depending on the […]

Read More

Got this error : mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use ‘-o nolock’ to keep locks local, or start statd. mount.nfs: an incorrect mount option was specified You forgot the rpcbind service ! yum install rpcbind service rpcbind start chkconfig rpcbind on Glad to help ūüėČ

Read More

Mount NFS on LXC Proxmox

8 August, 2018

I’m a long time user of Proxmox (a few years), and recently I had the chance to upgrade an by-now ancient Proxmox 3.4 to current 5.2. In that time frame the developers have changed from OpenVZ to LXC and made a script to migrate the data. One key element however, mounting (remote) NFS shares are […]

Read More

A small list for important Proxmox files & directories. For LXC (Linux containers) : config: /var/lib/lxc/$ct_id/config For KVM (Kernel-based Virtual Machine, mostly Windows machines) config: /etc/pve/qemu-server/$kvm_id.conf Cluster files (if you use Proxmox cluster) per node configuration : /etc/pve/nodes/$node_name/* Location of the ISO files that can then be loaded from the web interface : /var/lib/vz/template/iso/

Read More

In order to increase the size of files you can upload in WordPress, we need to adapt the software powering the software. Let’s begin with PHP, I use Nginx + php-fpm to run PHP, so I need to edit /etc/php.ini on line 799, upload_max_filesize¬†determines the maximum allowed size a PHP file will accept for upload. […]

Read More

Some powerful and or useful find commands; As with anything on the web, test before running ! (I forget the syntax so this is mainly self-documenting)     Find all *.tsv¬†larger 1Mb, compress them with the super fast lz4¬†on high compression and remove the source file after this. find . -name “*.tsv” -size +1M -exec […]

Read More

I could not remove this folder in¬†Windows.¬†It gave an error that is was not there anymore … uh-oh … corruption ? I checked the disk using the windows utility but the disk seemed fine (raid was a-OK). To my surprise the only solution was to go to the windows console / command prompt and remove […]

Read More

This is the tale of caution, when sleep deprived, sysadmin with caution! Let’s be honest who never said : lets finish this game, let’s have another drink, I will sleep when dead, … (enter sleepless night excuse here) ? Last night for me I was on a coding spree, when a thunderstorm broke, I was […]

Read More

A weird bug that crashed the samba server : # service smb status Redirecting to /bin/systemctl status smb.service ‚óŹ smb.service – Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2018-05-11 05:27:35 CEST; 4 days ago Main PID: 1130 (code=exited, status=1/FAILURE) May 11 05:27:35 svennd.be systemd[1]: Starting Samba […]

Read More

While compiling minimap 2 on Centos 7, I got his annoying error : fatal error: zlib.h: No such file or directory Missing dependency ! I wish some tool would help out and tell you, what library I was missing, so I could stop making these posts. As to the solution : yum install zlib-devel for […]

Read More