ZFS mount FreeBSD
- 7 sene önce, Burak Çalışkan tarafından yazılmıştır.
- ZFS mount FreeBSD için yorumlar kapalı
- FreeBSD
service cron stop
ls -l /dev/ada*
chmod -R 777 /ZFS7
zpool destroy ZFS7
zpool create -f ZFS7 /dev/ada0
chmod -R 777 /ZFS7
zpool import ZFS7
chmod -R 777 /ZFS7
chmod -R 777 /ZFS7/
zpool list
df -h
zfs get status
zfs set compression=on ZFS7
zfs get compression ZFS7
cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime
reboot
service cron stop
sqlite3 /usr/local/var/backup/backup_server.db “CREATE TRIGGER test5 AFTER INSERT ON logs BEGIN UPDATE logs SET logdata = REPLACE(LOWER(logdata),’backup’,’xbackup’) where LOWER(logdata) like ‘%backup%’; END;”
reboot
zpool create -f ZFS7 mirror /dev/da1 /dev/da2
zpool create -f ZFS7 mirror /dev/ada1 /dev/ada2
zpool add ZFS7 mirror /dev/ada2
zfs unmount ZFS7
zpool destroy -f ZFS7
zpool status