GPT type for partition dedicated to gjournal (moving journal outside)

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:
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:
  1. Turn off gjournal flag on UFS: tunefs -J disable /dev/mirror/s0W.journall
  2. Destroy gjournal: gjournal clear /dev/mirror/s0W
  3. Create new gjournal: gjournal label /dev/mirror/s0W /dev/nvme0p2
  4. Turn on gjournal flag on UFS: tunefs -J enable /dev/mirror/s0W.journall

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?
 
Back
Top