Reduce windows folder size on windows 7/8

The following command will uninstall all previous versions of components without the scheduled task’s 30-day grace period:

DISM.exe /online /Cleanup-Image /StartComponentCleanup

The following command will remove files needed for uninstallation of service packs. You won’t be able to uninstall any currently installed service packs after running this command:

DISM.exe /online /Cleanup-Image /SPSuperseded

The following command will remove all old versions of every component. You won’t be able to uninstall any currently installed service packs or updates after this completes:

DISM.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

Source: https://superuser.com/questions/669193/why-is-windows-folder-so-big-in-windows-8-1

How to Reduce the Size of Your WinSXS Folder on Windows 7 or 8

Move mysql data folder to ZFS on CentOS 7

1. change origin data folder as mount point

sudo systemctl stop mariadb.service
cd /var/lib
sudo mv mysql mysql.bak
sudo mkdir mysql
sudo chown mysql:mysql mysql

2. create zfs file system

sudo zfs create -o mountpoint=/var/lib/mysql mysqldata/mysql

3. mount zfs file system

sudo zfs mount -a

4. change mount point owner as mysql and cp all data file to /var/lib/mysql

sudo chown mysql:mysql mysql
cd mysql.bak
sudo cp -p -r * ../mysql
cd ..

5. install package policycoreutils-python

sudo yum install policycoreutils-python

6. run semanage fcontext and restorecon

sudo semanage fcontext -a -t mysqld_db_t "/mysql(/.*)?"
sudo grep -i mysql /etc/selinux/targeted/contexts/files/file_contexts.local
sudo restorecon -R -v /var/lib/mysql

7. start mysql

sudo systemctl start mariadb.service

Reference: MariaDB Changing Database Location