User Tools

Site Tools


bsd:notes:zfs_nas_format

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bsd:notes:zfs_nas_format [2024/12/21 02:17] Sean Rhonebsd:notes:zfs_nas_format [2025/01/05 04:27] (current) Sean Rhone
Line 2: Line 2:
  
   * https://docs.freebsd.org/en/books/handbook/zfs/   * https://docs.freebsd.org/en/books/handbook/zfs/
 +
 +  * ''NAS'' main (blank)
 +  * ZFS'd
  
   su -   su -
Line 10: Line 13:
  
 ====== NTFS ====== ====== NTFS ======
 +
 +  * ''NAS2'' spare (wiped)
 +  * Format ''NAS2'' spare to NTFS
 +  * Clone ''NAS'' main (ZFS) -> ''NAS2'' spare (NTFS)
 +  * :!: This formatted a 4TB drive with 2TB + rest split and isn't usable under Windows ((Windows shows unpartitioned volumes; Linux sees 4TB 1 partition fine))
  
   su -   su -
  
-  pkg install 'fusefs-ntfs'+  pkg install fusefs-ntfs rsync
  
   kldload 'fusefs'   kldload 'fusefs'
Line 26: Line 34:
  
   NTFS_USE_UBLIO='0' mkntfs -Q -I -v '/dev/ada2'   NTFS_USE_UBLIO='0' mkntfs -Q -I -v '/dev/ada2'
 +
 +  ntfsfix '/dev/ada2'
  
   mkdir -p '/mnt/NAS2' && ntfs-3g -o 'rw,big_writes,windows_names' '/dev/ada2' '/mnt/NAS2'   mkdir -p '/mnt/NAS2' && ntfs-3g -o 'rw,big_writes,windows_names' '/dev/ada2' '/mnt/NAS2'
 +
 +  rsync --verbose --recursive --update --progress '/NAS/' '/mnt/NAS2/'
  
   cp -R -v '/NAS/' '/mnt/NAS2/'   cp -R -v '/NAS/' '/mnt/NAS2/'
Line 33: Line 45:
 ====== Clone Mount/Rsync ====== ====== Clone Mount/Rsync ======
  
-  * ext4+  * ''NAS2'' spare ([[linux:notes:disk_gpt_format#ext4|GPT ext4 pre-formatted]]) 
 +  * Clone ''NAS2'' spare (ext4) -> ''NAS'' main (ZFS)
  
   su -   su -
Line 41: Line 54:
   mkdir -p '/mnt/NAS2' && mount -t 'ext2fs' -o 'rw' '/dev/ada2p1' '/mnt/NAS2'   mkdir -p '/mnt/NAS2' && mount -t 'ext2fs' -o 'rw' '/dev/ada2p1' '/mnt/NAS2'
  
-  rsync --verbose --recursive --update --ignore-existing --progress '/mnt/NAS2/' '/NAS/'+  rsync --verbose --recursive --update --progress '/mnt/NAS2/' '/NAS/'
  
/srv/www/wiki/data/attic/bsd/notes/zfs_nas_format.1734765437.txt.gz · Last modified: by Sean Rhone