growfs でファイルシステムを大きくする2024年03月03日 13時38分49秒

UFS ファイルシステムを大きくしたかったので、growfs。そんなに大きくは無かったので、mdconfig を利用。
# mdconfig -t -a swap -s 15GB
md0
# ufs_copy /dev/ada0s3e /dev/md0
# growfs /dev/md0
It's strongly recommended to make a backup before growing the file system.
OK to grow filesystem on /dev/md0 from 10GB to 15GB? [yes/no] y
Response other than "yes"; aborting
growfs ではしっかりと yes と答えないといけない様だ。
# growfs /dev/md0
It's strongly recommended to make a backup before growing the file system.
OK to grow filesystem on /dev/md0 from 10GB to 15GB? [yes/no] yes
super-block backups (for fsck_ffs -b #) at:
 21802624, 23085120, 24367616, 25650112, 26932608, 28215104, 29497600, 30780096