{SKULD,ROTA}.db.tokushima-u.ac.jp
SKULD/ROTA 共通
- FreeBSD 14.4 をインストール.
- root's shell (sh -> csh)
- /etc/resolv.conf (nameserver)
- /etc/rc.conf
- /etc/ipf.rules
- /etc/auto_master
- /etc/make.conf
- /etc/hosts.allow
- (SKULD) touch /etc/exports
- (ROTA) echo 'V4: /' > /etc/exports
- /etc/mail/mailer.conf (use /usr/libexec/sendmail/sendmail)
- /etc/aliases
- newaliases
- /etc/mail# make install
- /etc/periodic.conf
- /etc/daily.local
- ports collecton
- update to newest /usr/src, /usr/ports
- /usr/src# rm -rf .[a-z]* *
- /usr/src# git clone -o freebsd -b releng/14.4 https://git.FreeBSD.org/src.git /usr/src
- /usr/ports# rm -rf .[a-z]* *
- /usr/ports# git clone -o freebsd https://git.FreeBSD.org/ports.git /usr/ports
- # /home/private/root/sbin/ports.sh retrieve
- ports collecton
- ports-mgmt/portupgrade
- # portupgrade -afc
- ports collecton
- japanese/nkf
- japanese/less
- converters/base64
- devel/imake
- archiver/zip
- archiver/unzip
- x11/xauth
- x11-toolkits/libXaw
- filesystems/zfs-stats
- usr.staff.tar.xz を展開.
- root.staff.tar.xz を/root/にマージ.
SKULD.db.tokushima-u.ac.jp
FileSystem: da{2} (EFI)
- # gpart create -s gpt da?
- # gpart add -s 260m -t efi -l efiboot da?
- # gpart add -s 512k -t freebsd-boot -l gptboot da?
- # gpart add -s 16g -a 1024 -t freebsd-swap -l swap da?
- # gpart add -a 1024 -t freebsd-zfs -l zfs da?
- # newfs_msdos -F 32 -c 4 -L EFISYS /dev/da?p1
- # mount -t msdosfs /dev/da?p1 /mnt
- /mnt# cp -r /boot/efi/efi .
- # umount /mnt
- # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 da?
- ports collecton
- databases/postgresql17-server
- print/texlive-full-server
- print/gsfonts
- print/font-amsfont
- print/t1utils
- print/ttf2pt1
- www/apache24
- www/p5-libwww
- www/tidy-html5
- java/openjdk8
- graphics/xv
- graphics/netpbm
- graphics/scr2png
- graphics/silgraphite
- textproc/scr2txt
- devel/rcs
- devel/gdb
- devel/jansson
- net/openldap26-server
- net-mgmt/net-snmp
- net-mgmt/mrtg
- x11/ico
- x11-fonts/p5-type1inst
- japanese/a2ps
- japanese/font-ipa
- japanese/font-mplus-ipa
- japanese/font-std
- chinese/font-std
- chinese/ttf2pt1
- chinese/ttfm
- textproc/groff
- textproc/utf8proc
- textproc/html
- textproc/texi2html
- textproc/itstool
- textproc/p5-libxml
- textproc/html2text
- textproc/xhtml
- /etc
- zfs create -o atime=off -o checksum=sha256 -o utf8only=on -o compression=zstd zroot/home1
- zfs set mountpoint=/home1 zroot/home1
- zfs create -o compression=off -o recordsize=8k zroot/home1/pgsql
- zfs create zroot/home1/WWW
- zfs create zroot/home1/skuld
- home1.pgsql.tarを展開
- home1.WWW.tarを展開
- home1.skuld.tarを展開
- /etc/ssh/sshd_config
- /etc/inetd.conf
- /etc/services
- /etc/sysctl.conf
- pkg.list のパッケージを構築
- crontabの設定(root, edb)
- inetd
ROTA.db.tokushima-u.ac.jp
準備
cronの停止 (ustorageに書き込むjobを停止)
- www@urd: (EDBtoUTLF.sh)
- alex@nakedsun: Logistics. 5minuts, Backup
- alex@proxima:
- alex@skeggoeld, reginleif: (import.sh)
ストレージの移行(private, ustorage)
cronの復帰 (ustorageに書き込むjobを復帰)
- www@urd: (EDBtoUTLF.sh)
- alex@nakedsun: Logistics. 5minuts, Backup
- alex@proxima:
- alex@skeggoeld, reginleif: (import.sh)
rotaのバックアップを停止
- root@verdandi, root@urd: rota-backup.sh
準備
ZFS: da{234} (EFI)
- # gpart create -s gpt da?
- # gpart add -s 260m -t efi -l efiboot da?
- # gpart add -s 512k -t freebsd-boot -l gptboot da?
- # gpart add -s 16g -a 1024 -t freebsd-swap -l swap da?
- # gpart add -a 1024 -t freebsd-zfs -l zfs da?
- # newfs_msdos -F 32 -c 4 -L EFISYS /dev/da?p1
- # mount -t msdosfs /dev/da?p1 /mnt
- /mnt# cp -r /boot/efi/efi .
- # umount /mnt
- # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 da?
- zfs create -o atime=off -o checksum=sha256 -o utf8only=on -o setuid=off zroot/home1
- zfs set mountpoint=/home1 zroot/home1
- zfs create -o setuid=off -o compression=zstd zroot/home1/private
- zfs create -o atime=off -o checksum=sha256 -o utf8only=on -o setuid=off ztank/home1
- zpool create ztank mirror da2p4 da3p4
- zfs create -o compression=zstd-19 -o setuid=off ztank/home1/ustorage
- zfs set mountpoint=none ztank/home1
- zfs set mountpoint=none ztank
- zfs set mountpoint=/home1/ustorage ztank/home1/ustorage
- zfs sharenfs="..." zroot/home1/private
- zfs sharenfs="..." ztank/home1/ustorage
- 旧サーバからデータコピー(/home1/private, /home1/ustorage)
- ~root/cron
- ~root/sbin
- ~root/.ssh
- crontab (root)
- /usr/local/etc/rc.d/zfsusbcache
`
ztankの容量を増やすには...
- zpool detach ztank da2p4
- zpool add -f ztank da2p4
- zpool detach ztank da3p4
- zpool add -f ztank da3p4