#3: DM-Mirror support for LVM2 physical relocation
One of the most limited functionality in the DSM firmware is the lack of RAID/Volume modification tools. For example, after you create one SHR raid volume you can't move/relocate/decrease/etc. disks. Nevertheless, the Linux kernel has functions to relocate LVM extends. Moreover, you can reduce logical volumes using resize2fs and you have the full power to modify your RAID. All tools are included in the firmware (mdadm, lvm, resize2fs, etc.) except the modules to migrate a LVM extend: dm-mirror.ko
Here the modules that you need (for DSM 3.2 kernel 3.2.30 x64):
DM-LOG: http://pastebin.com/RaVVpqMb DM-REGION-HASH: http://pastebin.com/Dj1Z69xy DM-MIRROR: http://pastebin.com/Jc32M86g
You only need to load them in this order to enable the PVMOVE command in the LVM tool:
$ insmod /lib/modules/dm-log.ko
$ insmod /lib/modules/dm-region-hash.ko
$ insmod /lib/modules/dm-mirror.ko
The command is "lvm pvmove", or you can create the symlink with "ln -s lvm /sbin/pvmove"
Moreover, if you like to load these modules at boot create a simple script file in "/usr/syno/etc/rc.d/" to load them (for example, "S15LoadModules.sh").
With this great tool I administrate all my RAID/LVM volumes without any limitation!