2019-01-01から1年間の記事一覧

mdconfig testdisk

mdconfig ディスクイメージをマウント、ディスクイメージ中のファイルを編集する _ まず、母艦で VM のディスクイメージをマウントする。# mdconfig -a -t vnode freebsd0.img md0 # mount /dev/md0p2 /mnt VM のファイルを母艦に同期する。 # rsync -a --de…

FreeBSD bhyve host server

VMX unrestricted mode support (UG) UG(VMX unrestricted mode support)が付いてないCPUでは2 CPU以上のVMは走らない FreeBSD以外のVMは走らない でした;-(BHyVeあれこれ Hosting Linux® guests or FreeBSD guests with more than one vCPU requires VMX un…

RDS mysql general_log

general_log General_log = 1 (デフォルト値は 0 またはログ記録なし)MySQL を実行している Amazon RDS DB インスタンスのログを有効にしてモニタリングする Amazon RDS のストレージが不足したときに発生する問題の解決 mysql> call mysql.rds_rotate_gener…

FreeBSD bhyve console

A suitable FreeBSD 8-STABLE, 9-STABLE or 10-CURRENT guest can exist in a disk image or any valid storage device and only requires a modified /etc/ttys entry to work. All other options can be specified at runtime at the loader prompt. Perma…

FreeBSD bhyve ATA/ATAPI emulation

https://svn.grid.pub.ro/svn/bhyve-ATA-emul/doc/atapi/my-paper.pdf

FreeBSD bhyve guest server

bhyveがサポートする仮想環境 virtio-blk FreeBSD 8.4-RELEASE and newer, including CURRENT bhyve - FreeBSD Wiki FreeBSD 8.4-RELEASE以降 → virtio-blk ahci-hd HISTORY The ahci driver first appeared in FreeBSD 8.0. https://www.freebsd.org/cgi/ma…

MacBook Pro 16

NIDOO 15インチ ノートパソコン ブリーフケース 撥水 15インチラップトップ / ノートブック / 15" 16" MacBook Pro / 15" Microsoft Surface Book 2 3 / 14" Lenovo Ideapad 330 / 15" Samsung Notebook 9 Pro用/ウルトラブック用 PCバッグ (ダークグレー)ぴ…

OSX installer bootable usb

Apple、証明書の有効期限切れによりmacOSインストーラーが破損しているというエラーが出る問題が確認されているとして古いmacOS/OS Xのインストーラーを再ダウンロードするように通知。 | AAPL Ch.macOS の起動可能なインストーラを作成する方法 - Apple サ…

Microsoft Bluetooth Mouse 3600 と Mac がつながらない

Bluetooth Mouse 3600 Black is not connecting with my Mac - Microsoft CommunityMicrosoft Bluetooth Mouse 3600 is not app… - Apple CommunityUnable to connect microsoft bluetooth mou… - Apple Community

FreeBSD bhyve migration

Cold MigrationFeature request: support incremental migration to reduce downtime · Issue #309 · churchers/vm-bhyve · GitHubNetwork migration for bhyve guests using vm-bhyve · GitHubsocat が必要 # pkg install socat 移行先 bhyve2 vm recv実行 …

nagios slack 連携

SlackをNagiosに連携させる方法 -field SERVICEOUTPUT="$SERVICEOUTPUT$ $LONGSERVICEOUTPUT$"で出力の2行目以降を表示https://gist.github.com/matt448/8200821#gistcomment-2129991

sendmail gmail Multiple destination domains per transaction is unsupported

define(`SMTP_MAILER_MAXRCPTS', `1')dnl define(`RELAY_MAILER_MAXRCPTS', `1')dnl email - Multiple destination domains per transaction is unsupported - Stack Overflow Google Workspaceのドメインが複数含まれる場合、1回のトランザクションではひ…

FreeBSD zfs tuning

http://open-zfs.org/wiki/Performance_tuning vfs.zfs.arc_meta_limit ARCのうち、メタデータに使う量(バイト単位) デフォルトは全物理メモリの 1/4 に設定される (arc_maxは(全物理メモリ- 1GB)) vfs.zfs.arc_max: ARCの最大値。 デフォルトは(全物理メモ…

FreeBSD bhyve

bhyve https://wiki.freebsd.org/bhyveFreeBSD bhyve + vm-bhyveでゲストにFreeBSD環境を入れてみる | My Scrap bookvm-bhyve を使う VMの運用 vm start freebsd-current # VMの起動 vm stop freebsd-current # VMのシャットダウン vm reset freebsd-current…

FreeBSD blacklistd ipfw

blacklistd(8)の保持しているルールはblacklistclt(8)コマンドで次のように確認できます。システムを再起動した段階では次のようになんのルールも入っているはずです。図 まだ何も検出していない状態のblacklistd(8) # blacklistctl dump -a address/ma:port…

courier imap imapd-ssl: malloc

IMAP_ULIMITD=65536 (64MB) を131072 (128MB) に変更 Simply edit /etc/courier/imapd and change :IMAP_ULIMITD=131072courier-imap-ssl : malloc issue | DotMana

robots.txt

Note that Crawl-delay is not part of the original robots.txt specification. But it’s no problem to include them for those parsers that understand it, as the spec defines: Unrecognised headers are ignored. So older robots.txt parsers will s…

check_logfiles postgres ログ監視

log_directory = '/var/log/pgsql' log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' log_file_mode = 0644 log_rotation_age = 1d log_rotation_size = 0 /var/log/pgsql/postgresql-2019-07-19_000000.log ログローテション、ログファイル名は日付 nagios…

megacli FreeBSD

/usr/local/sbin/MegaCli なのでPATHを通す command[check_raid]=env PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin /usr/local/libexec/nagios/check_raid.pl --plugin=megacli

groonga-normalizer-mysql FreeBSD

FreeBSD 11 ソースコンパイルautoconf automake libtool が必要 curl -o groonga-normalizer-mysql-1.1.4.tar.gz https://github.com/groonga/groonga-normalizer-mysql/archive/v1.1.4.tar.gz tar xvzf groonga-normalizer-mysql-1.1.4.tar.gz cd groonga-n…

freebsd shell 日本語メール

サブジェクトの先頭に日付(2019/07/09)をいれる #! /bin/sh FROM=from@example.com TO=to@example.com DATE=`date +%Y/%m/%d` SUBJECT=`echo -n "$DATE " | cat - subject.txt | openssl enc -e -base64 -A` BODY=`cat body.txt | openssl enc -e -base64` /…

Varnish probe

Your backend is responding with a 301 to the health check; only 200 is an expected "healthy" response by default. .probe = { .url = "/"; .timeout = 1s; .interval = 10s; .window = 10; .threshold = 8; .expected_response = 301; } https://serv…

ceph journal SSD

Journal 用 SSD を用いた Ceph 構成の構築 - ジェダイさんのブログCeph: maintenance mode, use case and common operations | Sébastien Han

postgres パラレルクエリ パラレル実行

https://pgecons-sec-tech.github.io/tech-report/presentation/PGECons_20181018_parallel.pdfhttps://www.postgresql.jp/document/11/html/runtime-config-resource.html#GUC-MAX-PARALLEL-WORKERShttps://www.depesz.com/2018/02/12/waiting-for-postgres…

dell raid card

dell_raid_hdd_ssd - Google スプレッドシートPowerEdge RAIDコントローラーに関する一般情報 | Dell 日本SAS 6iR 2TB unexpected sense https://www.dell.com/community/PowerEdge-HDD-SCSI-RAID/Dell-R720-with-PERC-H710P-Mini-Repeating-Unexpected-Sens…

smart smartmontools

SSD smart https://unix.stackexchange.com/questions/106678/how-to-check-the-life-left-in-ssd-or-the-mediums-wear-level plextor PX-G128M6e 241 (0xF1) Total_LBAs_Written -> 32MiB書込みごとに +1インクリメント http://lab.mitty.jp/trac/lab/wiki/…

sftp umask

ForceCommand internal-sftp -u 002 コイケアキヨシ blog: sftpの権限だけのユーザを作成する(ディレクトリの制限も) umask はパーミッションを落とす方向に作用しますので、元のファイルが 666 ならアップロードしたファイルは 664 になりますが、元が 64…

megacli centos7

インストール Broadcom サポートサイトからMegaCli ユーティリティをダウンロードします。 http://docs.avagotech.com/docs/12351587 https://www.dell.com/support/article/jp/ja/jpbsd1/SLN292235 $ unzip 8-07-14_MegaCLI.zip $ sudo yum install Linux/M…

gitlab サーバ移行

・移行元と移行先のgitlabのバージョンを揃えるdoc/raketasks/backup_restore.md · master · GitLab.org / GitLab Community Edition · GitLab SSH host keysMigrate GitLab Instance to new Host – pikedom.com mattermost gitlab-ce 付属のmattermost。mat…

gitlab upgrade 更新

https://docs.gitlab.com/omnibus/update/https://about.gitlab.com/update/#centos-7 sudo yum install gitlab-ce ... gitlab preinstall: It seems you are upgrading from 10.x version series gitlab preinstall: to 11.x series. It is recommended to …