Posts Categorized: linux

Labeling Partitions with LABEL and PARTLABEL

So working on a system that had incorrect partitioning configured.  In /etc/fstab the partitions were configured with:

but the partitions did not have PARTLABELS set. The LABEL and PARTLABEL can be viewed with:

To set the label property use:

To set the partlabel on a GPT partition first install gdisk:

Then… Read more »

Zookeeper install on CentOS 7

Good concise article here on devopscube for installing zookeeper cluster. I’ve added some of my own bits: Firewall Disable firewalld or allow ports 2181 3888 2888 Install Java

User Create a zookeeper user

Install Zookeeper Download ZooKeeper from the Apache:

Set the permissions:

Add the following:

Test the service:… Read more »

Yakuake not restoring window height & width

git branch

I found that Yakuake was re-opening with an 80% width and about 30% height but I prefer 100% wide and 80% high. So it looks like my settings were saving into the file:

But this was possibly not the file that was being read when Yakuake started. I added the

entries to the… Read more »

Manic Miner on Linux

I was reminded about how much time I had spent as a kid playing Manic Miner on an Amstrad 464 and decided to give it a try on my current desktop (Linux Mint) so for future reference… I grabbed the code created by here:

Installed a few dependencies:

Run the make file:

Read more »

rpcbind.socket failed to listen on sockets: Address family not supported by protocol

Using CentOS 7 this problem arose after a reboot and NFS shares would not mount. Trying to start the rpcbind service:

gave the following error message via jounralctl -xe :

So it looks like

was set in /etc/sysctl.conf But this wasn’t yet incorporated into the initramfs. Solution Rebuild the initramfs with:

Read more »

Mount Files Virtually via Dell iDRAC

Use fallocate to create a new 300 MB file :

Create an ext4 file system within the image file:

Create a mount point:

mount it:

Then on the Dell iDRAC use the ‘Virtual Media’ menu to ‘Map Removable Disk…’  : Then on the host operating system the device can be mounted… Read more »

Determine Dell Hard Disk Location from Linux

On a Dell server I needed to determine the physical hard drive location for a faulty disk. Within the operating system the disk was mounted as /dev/sdk so I ran:

And from the output I could correlate this with the information in the iDRAC: So in this example disk 10 on the backplane.  

Dell racadm on Linux

I’m currently using Linux Mint and wanted to communicate with the iDRAC interfaces on Dell servers. Install racadm:

Test with:

or if you want to be prompted for login credentials use:

Example racadm commands Dump lots of info:

Get the status of the PERC/Raid battery:

Set… Read more »

Command Line Optimise JPEG image

This command significantly improved file size on disk although the quality value can be increased to adjust the image quality versus file size:

 

Apache: unable to open logs

In the annals of “Everyday is a learning day”. I have an Apache server hosting student websites, and the number of websites grew to over 700 within a day and Apache was complaining with error:

It took a little while to narrow down the problem as I assumed there was a path that did… Read more »