Solved newfs and UFS options for formatting

Hi!

Recently I have a new migrated system with FreeBSD-10.3. I have three HDD (1x250 GB and 2x320 GB), the first disk content the OS and formatting with SUJ option for bsdinstall.
But, the others disks is formatting manually with this option:

Code:
newfs -j -L DATOS /dev/ada1p1

and

Code:
newfs -j -L DATOS /dev/ada2p2

My very newbie questions here is:

This activated the SUJ (soft updates + journaling) for UFS or only activated J (journaling)?

Is there a danger of data loss with just apply that option (newfs -j)?

Recommend to format both hard disk again with the correct options (newfs -U -j)?

Reading newfs(8) I found this:

Code:
-j         Enable soft updates journaling on the new file system.  This flag
         is    implemented by running the tunefs(8) utility found in the
         user's $PATH.

But I don't have a clear idea if I performed the format properly.
 
You can see the current status using tunefs -p

It looks like you've read the man page for newfs, however the SEE ALSO section at the bottom has related programs which are also helpful.
 
Well using tunefs -p I obtain this:

Code:
tunefs: POSIX.1e ACLs: (-a)  disabled
tunefs: NFSv4 ACLs: (-N)  disabled
tunefs: MAC multilabel: (-l)  disabled
tunefs: soft updates: (-n)  enabled
tunefs: soft update journaling: (-j)  enabled
tunefs: gjournal: (-J)  disabled
tunefs: trim: (-t)  disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  4096
tunefs: average file size: (-f)  16384
tunefs: average number of files in a directory: (-s)  64
tunefs: minimum percentage of free space: (-m)  8%
tunefs: space to hold for metadata blocks: (-k)  6400
tunefs: optimization preference: (-o)  time
tunefs: volume label: (-L)  DATOS2

Everything OK. Thanks for a tip @Jeckt
 
Back
Top