I've added NVme SSD to the server and now I want to move gjournal journal to a dedicated partiton on SSD.
Currently there is a UFS partiton which reside on gjournal which reside on gmirror:
Gjournal use partition mirror/s0W for Data and for Journal also.
I want to move Journal part to SSD.
To achieve this I'll format SSD with GPT (using gpart) and create a partition of type X (the issue) for gjournal-journal. Then I'll have something like /dev/nvme0p2 in /dev.
Next I plan:
So, the first problem: which GPT type should I use for partition dedicated to gjournal journal? Which type I might supply to the -t argument in command
And, the second problem: is it safe for data which currently reside on this partition? I guess the only issue will be in unallocated space inside data paritition after journal part moved outside. Am I optimistic?
Currently there is a UFS partiton which reside on gjournal which reside on gmirror:
Code:
1. Name: mirror/s0W.journal
Mediasize: 144955145216 (135G)
Sectorsize: 512
Mode: r1w1e1
Consumers:
1. Name: mirror/s0W
Mediasize: 182536109568 (170G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
Jend: 182536109056
Jstart: 144955145216
Role: Data,Journal
Gjournal use partition mirror/s0W for Data and for Journal also.
I want to move Journal part to SSD.
To achieve this I'll format SSD with GPT (using gpart) and create a partition of type X (the issue) for gjournal-journal. Then I'll have something like /dev/nvme0p2 in /dev.
Next I plan:
- Turn off gjournal flag on UFS:
tunefs -J disable /dev/mirror/s0W.journal
l - Destroy gjournal:
gjournal clear /dev/mirror/s0W
- Create new gjournal:
gjournal label /dev/mirror/s0W /dev/nvme0p2
- Turn on gjournal flag on UFS:
tunefs -J enable /dev/mirror/s0W.journal
l
So, the first problem: which GPT type should I use for partition dedicated to gjournal journal? Which type I might supply to the -t argument in command
gpart add /dev/nvme0 -t X -i 2
And, the second problem: is it safe for data which currently reside on this partition? I guess the only issue will be in unallocated space inside data paritition after journal part moved outside. Am I optimistic?