#author("2018-09-21T13:10:59+09:00","default:kuji","kuji") #author("2018-09-21T13:24:45+09:00","default:kuji","kuji") CONTENTS #contents ---- Lastmodified &lastmod; ---- *G7 OS/Hardware [#n88eea0f] FreeBSD 11.2-RELEASE-p3 #0: Thu Sep 6 07:14:16 UTC 2018 CPU: Intel(R) Celeron(R) CPU G530 @ 2.40GHz (2394.61-MHz K8-class CPU) real memory = 8589934592 (8192 MB) avail memory = 8238145536 (7856 MB) / (except /usr/home) ada0: <VB0250EAVER HPG9> ATA8-ACS SATA 2.x device ada0: Serial Number Z3TF7F8C ada0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada0: 238475MB (488397168 512 byte sectors) ZFS /usr/home ada1 at ahcich1 bus 0 scbus1 target 0 lun 0 ada1: <WDC WD30EZRZ-00Z5HB0 80.00A80> ACS-2 ATA SATA 3.x device ada1: Serial Number WD-WCC4N1CAKLXL ada1: 600.000MB/s transfers ada1: 2861588MB (5860533168 512 byte sectors) ada2 at ahcich2 bus 0 scbus2 target 0 lun 0 ada2: <WDC WD30EZRZ-00Z5HB0 80.00A80> ACS-2 ATA SATA 3.x device ada2: Serial Number WD-WCC4N6CDPSS8 ada2: 300.000MB/s transfers ada2: 2861588MB (5860533168 512 byte sectors) ada3 at ahcich3 bus 0 scbus3 target 0 lun 0 ada3: <WDC WD30EZRZ-00Z5HB0 80.00A80> ACS-2 ATA SATA 3.x device ada3: Serial Number WD-WCC4N5PDVFN0 ada3: 300.000MB/s transfers ada3: 2861588MB (5860533168 512 byte sectors) CD cd0: <hp DVDROM DH40N IS01> Removable CD-ROM SCSI device cd0: Serial Number K66B5B21800 cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) NIC em0: link state changed to UP *G7 Now [#hfe8ea46] # zpool status pool: tank state: ONLINE config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 ada1 ONLINE 0 0 0 ada2 ONLINE 0 0 0 ada3 ONLINE 0 0 0 errors: No known data errors # df -h Filesystem Size Used Avail Capacity Mounted on /dev/ada0p2 222G 16G 188G 8% / devfs 1.0K 1.0K 0B 100% /dev tank 5.2T 4.5T 720G 87% /usr/home *System make [#q04ecd84] root user 以外のユーザを登録せずにインストールすると、/usr/home はディレクトリ、シンボリックリンクが作成されない。~ /usr/home だけをZFS上に作成する、というディスク構成。 18 14:32 zpool create -f tank raidz1 ada1 ada2 ada3 22 14:33 zpool status 23 14:33 zfs set mountpoint=/boot/zfs/zroot/usr/home tank 26 14:34 cd /boot/zfs/zroot 29 14:37 cd /boot/zfs 30 14:37 zpool export tank 31 14:37 zpool import tank 35 14:39 zfs set mountpoint=/usr/home tank 37 14:40 ln -s /usr/home/ /home 49 14:46 zpool status 50 14:46 reboot 55 15:01 /etc/periodic/weekly/310.locate ** 3rd party Apps [#b8a3d47e] cd /usr/ports/ports-mgmt/portupgrade && make install clean portsnap fetch && portsnap extract /root/bin/check.sh /etc/periodic/weekly/310.locate portinstall screen portinstall smartd portinstall **Zpool 再接続 [#f7713d3f] ***【確認事項】 [#m1f2721b] /boot/loader.conf vfs.zfs.prefetch_disable=0 zfs_load="YES" /etc/rc.conf zfs_enable="YES" history 71 1:50 zpool status 72 1:56 reboot 73 1:59 df 74 2:01 reboot 75 2:04 df 76 2:04 zpool import 77 2:05 zpool status 78 2:05 zpool import -f tank 79 2:05 zpool status -x 80 2:05 zpool status 81 2:05 df 82 2:06 df 83 2:06 zpool status 84 2:06 zfs set mountpoint=/usr/home tank 85 2:06 df 86 2:09 ln -s /usr/home/ /home ---- Total access &counter(total);:本日 &counter(today);:昨日 &counter(yesterday); #counter([total|today|yesterday]);