Introducing trashcan for Gluster File System v3.7

antmascot

“GlusterFS is a unified, poly-protocol, scale-out filesystem serving many petabytes of data”

This is the one-liner from http://gluster.org for describing the file system in short. GlusterFS community has made a tremendous progress in the world of distributed file systems. With the recent releases for this open-source project, it aims for something big that no other file system in this field can even dream about. Given the fact that it lacks a bit performace in case of small files, GlusterFS put forwards the following features for its next big release, GlusterFS v4.0:

  1. Thousand Node glusterd
  2. DHT scalability
  3. Small file performace improvement
  4. Better caching
  5. Data classification
  6. NSR or new style replication and much more (http://www.gluster.org/community/documentation/index.php/Planning40)

This particular article on GlusterFS is focussed on explaining the newly introduced trash feature in version 3.7. Please read through the following link for a brief introduction to Gluster File system.

Introduction to GlusterFS (File System) and Installation on RHEL/CentOS and Fedora

What is Trash translator?
Read More »

Automatic partition mounting in GNU/Linux

Screenshot from 2013-05-10 12:12:30

After the installation of a GNU/Linux system by default the partitions are not automatically mounted. Nowadays GNU/Linux ditros are competing to improve the external appearance. As a result just one mouse-click is enough to mount a partition.Even though it can be set to automatically mount during system boot. Apart from these you can set permissions over the contents of a particular partition with the help of /etc/fstab file. Basic structure of fstab file is as follows.

# /etc/fstab: static file system information.
#
# Use ‘blkid’ to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda10 during installation
UUID=3fc4638a-eeef-4315-91a6-fee625d5c428 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda8 during installation
UUID=0b1f3624-acef-4d85-ba88-34addf72df4c none            swap    sw              0       0

If you have a partition as /dev/sda1 with ntfs(vfat for FAT32) on the system, you can add that file system in the above file as follows and save the same. At your next reboot partition will be automatically mounted.

# /etc/fstab: static file system information.
#
# Use ‘blkid’ to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
/dev/sda1       /media/vol1     ntfs    defaults        0       0
# / was on /dev/sda10 during installation
UUID=3fc4638a-eeef-4315-91a6-fee625d5c428 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda8 during installation
UUID=0b1f3624-acef-4d85-ba88-34addf72df4c none            swap    sw              0       0

Note:- For doing this automatic mount you must first create a /media/vol1 directory as a mount point (sudo mkdir /media/vol1).
For setting permissions on the partition you can edit the defaults entry to something like rw,noexec,exec,…
You can set permissions for a particular user using uid=<uid> and umask=<octadecimal_no>.