Posts Categorized: linux

Exclude Directories for Disk Usage (du)


I sometimes want to omit directories from my disk usage (du -sh *) checks. This includes virtual files systems such as proc / dev and also mounts to other filesystems (data in the example below). This is what works for me: du –exclude={proc,sys,dev,data} -sh * The equals sign appears to be optional and worked both… Read more »

Labeling Partitions with LABEL and PARTLABEL

So working on a system that had incorrect partitioning configured.  In /etc/fstab the partitions were configured with: PARTLABEL=data1 /data1 ext4 defaults 0 0 PARTLABEL=data2 /data2 ext4 defaults 0 0 but the partitions did not have PARTLABELS set. The LABEL and PARTLABEL can be viewed with: lsblk -o name,label,partlabel,mountpoint,size,uuid To set the label property use: e2label… 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 yum install java-1.8.0-openjdk User Create a zookeeper user groupadd zookeeper useradd -g zookeeper -d /opt/zookeeper -s /sbin/nologin zookeeper Install Zookeeper Download ZooKeeper from the Apache: wget… 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: ~/.config/yakuakerc But this was possibly not the file that was being read when Yakuake started. I added the [Window] Height=80 Width=100 entries… 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: git clone Installed a few dependencies: apt-get install libx11-dev libxext-dev… Read more »

Mount Files Virtually via Dell iDRAC

Use fallocate to create a new 300 MB file : fallocate -l 300M disk_image.img Create an ext4 file system within the image file: mkfs.ext4 disk_image.img Create a mount point: mkdir /mnt/disk_image mount it: mount -t auto -o loop disk_image.img /mnt/disk_image Then on the Dell iDRAC use the ‘Virtual Media’ menu to ‘Map Removable Disk…’  :… 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: udevadm info –query=all –name=/dev/sdk And from the output I could correlate this with the information in the iDRAC: So in this example disk 10 on… Read more »

Dell racadm on Linux

I’m currently using Linux Mint and wanted to communicate with the iDRAC interfaces on Dell servers. Install racadm: sudo echo ‘deb xenial openmanage’ | sudo tee -a /etc/apt/sources.list.d/ sudo gpg –keyserver –recv-key 1285491434D8786F gpg -a –export 1285491434D8786F | sudo apt-key add – sudo apt-get update sudo apt-get install srvadmin-idracadm8 Test with: /bin/racadm -R… Read more »