In this example I will be checking all user quotas on an LVM which is mounted as /data 1) The first step will be to check the fstab. As we see there are no mount options for quotas # cat /etc/fstab # /dev/mapper/centos-root / ext4 defaults 1 1 UUID=2fd24677-cf50-420b-a3dd-cea7c29aa185 /boot ext4 defaults 1 2 /dev/mapper/centos-swap Read More…
Category: Linux
Extending a VMware VMDK and LVM in CentOS 6
In this example I will be expanding a VMDK on virtual machine running on ESXi 5.5 from 100GB to 220GB. I will then increase the size of LVM in the Centos 6.7 guest to reflect this. Its always prudent to take a clone of the VM and/or ensure everything has been backed up before attempting to extend Read More…
Cannot Create Regular File : No Space Left on Device
Problem I started having an issue with FTP where users were unable to create new files in their FTP areas. The following error displayed in my Filezilla client when I tested: 553 Could not create file Troubleshooting I examined vsftpd and all permissions on the server but they looked fine. I then tried to copy Read More…
A fatal error has been detected by the Java Runtime Environment – Problematic Frame libc.so
I use Ahsay to do a file level backup on a Linux (Centos 6.6) machine. The scheduled backups suddenly started being missed. The following error appeared when I ran the backup manually. # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000003337e7f5bf, pid=2150, tid=140190110197504 # Read More…
Rsync to QNAP
I wanted to sync some files from OSX (10.9.4) to my QNAP (TS-210 (Firmwre 4.1.2) NAS 1. Enable Rsync by going to Download Station -> Backup Server -> Rsync server -> tick the Allow remote Rsync server to back up data to NAS and fill out a username and password. 2. Create a shared folder Read More…
Fixing the Ghost Vulnerability (CVE-2015-0235) on Centos
At the end of January 2015 a vulnerability was discovered which allows remote code execution in daemons/services that perform DNS host loookups. This includes Linux based system and any OS that uses the GNU C libraries . I will show you how to to this on Centos: First of all check the changelog to see if it has already Read More…
Installing JRE and Ahsay OBM client on Centos CLI
Below are 12 simple steps to set up and Ahsay client to backup a Centos machine via the CLI. Log onto the machine you want to backup. 1. Download JRE 1.5 (version v1.5+ at the time of writing) and put it in your home directory (/home/jordansphere in this case) 2. # cd /home/jordansphere 3. # tar Read More…
Create a PKCS#12 (.p12) file using OpenSSL
Scenario: I wanted to create PKCS12 file to import into a Sonicwall Firewall (FW 5.9.0.4) You'll need. – Certificate from CA (my.crt) – Private key (my.key) – CA Bundle (myCA.crt) – The password for the private key From a UNIX based server pop all of the required files into a specific directory. # openssl pkcs12 Read More…
Change DocumentRoot of main site in CPanel
To change the document root of a main site in CPanel you'll need root SSH access. Note that you will be able to change an "Add on domains" via the GUI. # vi /var/cpanel/userdata/{myusername}/{jordansphere.co.uk} Once in Vi change the documentroot: /home/{username}/public_html to whatever you want (eg /home/{username}/public_html/jordansphere.co.uk ) Afterwards you'll need to run this command: Read More…
Substitute in Vi
Scenario: I wanted to substitute one HEX code for another in a stylesheet # vi stylesheet.css Once in Vi :1, $ s/e5e5e5/1A1A33/g
You must be logged in to post a comment.