Posts

Showing posts from August, 2017
Image
How to ZFS on ubuntu Official support for the ZFS file system is one of  Ubuntu 16.04’s big features . It’s not installed and enabled by default, but it’s officially supported and offered in Ubuntu’s software repositories. When You Might Want to Use ZFS ZFS is an advanced file system  originally created by Sun Microsystems for the Solaris operating system. While ZFS is open source, it’s sadly been absent from most Linux distributions for licensing reasons. It’s a matter of debate whether code licensed under ZFS’s CDDL license is compatible with the Linux kernel’s GPL license. Either way, it’s available for download at  zfsonlinux.org  for other Linux distributions that don’t choose to include it. This file system is often used by organizations for larger servers rather than desktop PCs. It’s designed to preserve data integrity by preventing against data corruption. Every file has a checksum that is used to validate t...

Script to track Yodel parcel

This code comes from Github where you can find all files Simple script in python3 to track on delivery day for Yodel parcel. I found it very useful to be able how many deliveries are before me. Running script in the background will keep checking every 120s delivery queue and if it reach less than 5 parcel will sound alarm. Every time it checks queue, will print status update. To install dependencies run: pip install -r require.txt After that run: python3 yodel.py

CREATING AN LVM LOGICAL VOLUME ON THREE DISKS

To use disks in a volume group, label them as LVM physical volumes with the pvcreate command. Warning This command destroys any data on /dev/sda1 , /dev/sdb1 , and /dev/sdc1 . # pvcreate /dev/sda1 /dev/sdb1 /dev/sdc1 Physical volume "/dev/sda1" successfully created Physical volume "/dev/sdb1" successfully created Physical volume "/dev/sdc1" successfully created Create the a volume group that consists of the LVM physical volumes you have created. The following command creates the volume group new_vol_group . # vgcreate new_vol_group /dev/sda1 /dev/sdb1 /dev/sdc1 Volume group "new_vol_group" successfully created You can use the vgs command to display the attributes of the new volume group. # vgs VG #PV #LV #SN Attr VSize VFree new_vol_group 3 0 0 wz--n- 51.45G 51.45G Create the logical volume from the volume group you have created. The following command creates the logic...