Showing posts with label Storage. Show all posts
Showing posts with label Storage. Show all posts

Monday, December 15, 2014

Ubuntu server 14.04 - Auto mount network Drive Issue

Recently, due to maintanance upgrade I have to reboot my Server and notice that it stuck at boot screen waiting for external Network drive to mount. Previous article ubuntu-server-auto-mount-iscsi-storage

The message is "the disk drive for /backupdata is not ready or not presented". 2 things I can do:

Remount network drive with UUID instead of /dev/blah..blah in /etc/fstab
#> blkid
/dev/mapper/datavg-backupdata: UUID="85e81bbc-2c86-4bef-b1e9-f77d21929de5" TYPE="xfs" 

Add nobootwait option into mount target in /etc/fstab
UUID=85e81bbc-2c86-4bef-b1e9-f77d21929de5 /backupdata xfs auto,rw,user,nobootwait 0 0

Then reboot my system and It work!

Friday, April 25, 2014

ZFS filesystem

What is it?

Deduplication is the process of eliminating duplicate copies of data. Dedup is generally either file-level, block-level, or byte-level. Chunks of data -- files, blocks, or byte ranges -- are checksummed using some hash function that uniquely identifies data with very high probability. When using a secure hash like SHA256, the probability of a hash collision is about 2\^-256 = 10\^-77 or, in more familiar notation, 0.00000000000000000000000000000000000000000000000000000000000000000000000000001. For reference, this is 50 orders of magnitude less likely than an undetected, uncorrected ECC memory error on the most reliable hardware you can buy.

Chunks of data are remembered in a table of some sort that maps the data's checksum to its storage location and reference count. When you store another copy of existing data, instead of allocating new space on disk, the dedup code just increments the reference count on the existing data. When data is highly replicated, which is typical of backup servers, virtual machine images, and source code repositories, deduplication can reduce space consumption not just by percentages, but by multiples.


Installing zfs on Ubuntu server 12.04

sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:zfs-native/stable
sudo apt-get update
sudo apt-cache search zfs
sudo apt-get install ubuntu-zfs

Note: this might take some time as it compiles the kernel module for your kernel

Run the zfs commands to make sure it works
sudo zfs
sudo zpool

There is no extra configuration for ZFS running on Ubuntu

zpool command configure zfs storage pools
zfs command configure zfs filesystem
zpool list shows the total bytes of storage available in the pool. 
zfs list shows the total bytes of storage available to the filesystem, after
redundancy is taken into account. 
du shows the total bytes of storage used by a directory, after compression
and dedupe is taken into account. 
"ls -l" shows the total bytes of storage currently used to store a file,
after compression, dedupe, thin-provisioning, sparseness, etc.

Link for reference:
https://blogs.oracle.com/bonwick/entry/zfs_dedup