Category / SysAdmin

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

I’m no expert on this, but I had to google everything together so many times, I made a soon-to-be-outdated half-ass guide on how to let users access a samba share on Linux using the windows domain controller “AD” (active directory) or at least how I got it to work. Let me know if it worked […]

Read More

I can’t seem to find apcupsd (a ups monitor, that shutdowns computers, before you run out of ups power) on Centos 6, surprisingly on Centos 7 this package is available from epel, but not so for Centos 6. Here is a condense howto get the source and compile it. (mainly for my personal use) wget […]

Read More