Skip to content

web - zfsonlinux 0.6.4. released - zfs-announce mailing list

The Linux team is happy to announce a new release of OpenZFS on Linux. The 0.6 4 release adds support for 6 new feature flags, multiple new properties, asynchronous IO, support for Linux kernels up to 4.0 and more.
NEW FUNCTIONALITY
* Compatible with kernels up to Linux 4.0.
* New feature flags (additional details below):
- spacemap_histogram
- extensible_dataset
- bookmarks
- enabled_txg
- hole_birth
- embedded_data
* New asynchronous I/O (AIO) support.
* New fallocate() FALLOC_FL_PUNCH_HOLE support.
* New fragmentation metric in 'zpool list'.
* New LZ4 compression of meta data.
* New "redundant_metadata" property controls desired redundancy level.
* New "overlay" property controls behavior for non-empty mount points.
* New 'zpool list -v' shows individual disk capacity.
* New 'zpool get -H' (scripted mode) support.
* New 'zpool create -t' creates a pool with a temporary name.
* New arc_summary.py script from FreeNAS.
* New bash completion support.
* New DTRACE_PROBES integrated with Linux tracepoints.
* New compressed block histograms with zdb.
* New verbatim pool imports with zdb.

What a release, thank you very much for the work and the damn long list of new features, improvements and bug fixes!

played around with file synchronization tool syncthing v0.10.1

I played around with a file synchronisation tool called syncthing v0.10.1 and here is the outcome.

How To

enable gui to outside

change

<gui enabled="true" tls="false">
    <address>127.0.0.1:8080</address>
</gui>

to (enable tls is optional)

<gui enabled="true" tls="true">
    <address>0.0.0.0:8080</address>
</gui>

You should add user name and password for gui authentication as soon as possbile.

change default directory

change

<folder id="default" path="/home/<user>/Sync" ro="false" rescanIntervalS="60" ignorePerms="false">

to

<folder id="default" path="/home/<user>/<your folder path>" ro="false" rescanIntervalS="60" ignorePerms="false">

excluding files

  • put a .stignore file into the root of your sharing directory

patterns

  • // - comment (no effect)
  • - regular file name or file paths
      • zero or more character but not directory separator
  • ** - zero or more character with directory separator
  • ? - single character that is not the directory separator
  • / - matches in current directory only
  • #include - load patterns from a file
  • ! - negates the pattern (files that are not ignored)

tool php classmap generator packagist

After a month, i've finished a tool to create a classmap from a php project. The current stable version is v1.4 and can be found on github.com as well as on packagist.org. Why? Well, obviously because i can (and wanted to learn a few things like tokens, or symfony console) ;-). But for real, when you have to deal with legacy projects or code but want to remove the strange and slow existing autoloader (with all its exception), the easiest way to do this is by using a classmap. I also tried to find a classmap generator that can deal with psr-0 and not psr-0 files, all i could find are generators that support psr-0 files. A classmap itself is just a php array. The key is the full qualified classname and the value is the relative path to the file. Creating a classmap on your own is suitable when you have to manage a number of files below 20. But when it comes to more you can not effort the time to maintain that file. So for a lot of files that are not covert by composer, the classmap generator should be well suitable. It is planned to implement a "phar" classmap generation for the upcoming version. When you want to create phar files, this could be a timesaver as well. The classmap generator is build by using symfony\console and yes, it is a joy to work with that component! Shame on me, the current version is not covered by unittests. After i implemented the current features from the todo list, this will be my major task.

The classmap generator can handle all kind of php files like: - Interface - Abstract Class - Class The generator can handle files with or without namespace. Even files with multiple definitions (interface, abstract class and class in one file) is no problem. Furthermore, you can create multiple configuration files and update this classmaps when needed. Like well known from the composer, the classmap generator is able to create a autoloader file for you. The created autoloader will use the created classmap file and supports psr-0 autoloading. source/link to the wiki

What is left to write? Of course i'm proud about this. What you see right now is the work of one month and after i finished the core design, i rebuild a lot by replacing my cli application class with the symfony\console component. I hope you can use the tool. If you need help or found a bug, contact me on github.com

Smartmontools - monitore hdd S.M.A.R.T. values via cron

A teammate at work asked me the question "how do you monitor your smart values from each device" and i could not answer him, since i do not monitor any smart values. A quick research and now i am able to present him a good answer on Monday - even with some time to evaluate it :-D. Smartmontools is the tool you have to choose. On arch, it is done with pacman.

pacman -S smartmontools
A quick look on the official wiki and the arch wiki, i roughly created the following smartd.conf.
/dev/ -H -l error -l selftest -f -n standby,q -m email@for.me
The file can be found at "/etc/smartd.conf". Do not forget to remove/comment out the first "DEVICESCAN". The file is well documented, so it is an easy one (hopefully ;-)). All you have to do is to add the smartd to you autostart (e.g. rc.conf). If you are using systemd, the following line is doing the job.
sudo systemctl enable smartd.service