0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

TrueNAS 25.10のインストールでOS領域のサイズを無理やり指定する

0
Posted at

インストールプログラムのコードを書き換える手法です。
公式に推奨されていないので、自己責任にて実施してください。
何か不具合が生じても一切の責任を負えません。

背景

誤って用意したSSDを活用したいと思い、余りのSSDと合わせてミラーリングしてTrueNAS(25.10.2.1)を入れようと思ったのですが…

問題点

OSしかSSDに入れることができないらしく、もったいなさすぎるので、ストレージプールのlog, metadata, L2ARC領域をパーティションを分けて同じSSD内に同居させたい。

どうしたか

gistにある情報1を参考にしたのですが、ファイルパスが変わっていました。

変更すべきファイルはこちらです。

/usr/lib/python3/dist-packages/truenas_installer/install.py

のこの部分。

71: async def format_disk(disk: Disk, ......)
......
80: # Create data partition
81: await run(["sgdisk", "-n3:0:0", "-t3:BF01", disk.device])
......

なので、OS領域を32GB分だけ確保するとなるとこういう形になりますね

sed -i 's/-n3:0:0/-n3:0:+32G/g' /usr/lib/python3/dist-packages/truenas_installer/install.py

exit

参考手順では直接Pythonを実行していますが、自分は少し怖かったので一旦Shellをexitで終了して、インストールメニューに戻り、通常通りのインストールを進めました。

Geminiさんに聞いても、Webを彷徨っても見つからなかったのでここにメモしておきます。

  1. https://gist.github.com/gangefors/2029e26501601a99c501599f5b100aa6#file-install-freenas-scale-on-a-partition-and-create-a-mirror-md

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?