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/22 00:28] Sean Rhonebsd:notes:zfs_nas_format [2025/08/29 01:22] (current) Sean Rhone
Line 1: Line 1:
 ====== ZFS ====== ====== ZFS ======
  
 +  * [[bsd:server:freebsd_14.3|FreeBSD 14.3]]
   * https://docs.freebsd.org/en/books/handbook/zfs/   * https://docs.freebsd.org/en/books/handbook/zfs/
- 
-  * ''NAS'' main (blank) 
-  * ZFS'd 
  
   su -   su -
  
-  zpool create 'NAS' '/dev/ada1'+  geom disk list 
 + 
 +  gpart list 
 + 
 +  zpool create 'NAS' '/dev/da0'
  
   zpool status 'NAS'   zpool status 'NAS'
 +
 +  zpool import 'NAS'
 +
 +===== NTFS Restore =====
 +
 +  su -
 +
 +  geom disk list
 +
 +  gpart list 'da1'
 +
 +  pkg install 'fusefs-ntfs'
 +
 +  kldload 'fusefs'
 +
 +  mkdir -p '/mnt/NAS2' && ntfs-3g -o 'ro' '/dev/da1p2' '/mnt/NAS2'
 +
 +  cp -R -L -p '/mnt/NAS2/'* '/NAS'
 +
 +  sync && umount '/mnt/NAS2'
 +
 +==== vsftpd ====
 +
 +  * [[servers:bsd:vsftpd]]
 +
 +  chown -R 'espionage724':'espionage724' '/NAS' && sync
 +
 +  chmod -R '774' '/NAS' && sync
  
 ====== NTFS ====== ====== NTFS ======
Line 16: Line 46:
   * ''NAS2'' spare (wiped)   * ''NAS2'' spare (wiped)
   * Format ''NAS2'' spare to NTFS   * Format ''NAS2'' spare to NTFS
-  * Clone ''NAS'' main (ZFS) to ''NAS2'' spare (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 -
Line 41: Line 72:
  
   cp -R -v '/NAS/' '/mnt/NAS2/'   cp -R -v '/NAS/' '/mnt/NAS2/'
 +
 +===== Other Backup =====
 +
 +  * TODO: misc
 +
 +  su -
 +
 +  kldload 'fusefs'
 +
 +  gpart list
 +
 +  mkdir -p '/mnt/NAS' && ntfs-3g -o 'rw,big_writes,windows_names' '/dev/da0p2' '/mnt/NAS'
 +
 +  gio open '/mnt/NAS'
 +
 +  sync && umount '/mnt/NAS'
 +
 +  pkill 'thunar'
 +
 +==== OS dd ====
 +
 +  * TODO: misc
 +
 +  su -
 +
 +  geom disk list
 +
 +  gpart destroy -F 'da0' && dd if='/dev/zero' of='/dev/da0' count='8096'
 +
 +  dmesg | grep 'ugen'
 +
 +  sync && usbconfig -d '/dev/ugen0.4' power_off
  
 ====== Clone Mount/Rsync ====== ====== Clone Mount/Rsync ======
  
   * ''NAS2'' spare ([[linux:notes:disk_gpt_format#ext4|GPT ext4 pre-formatted]])   * ''NAS2'' spare ([[linux:notes:disk_gpt_format#ext4|GPT ext4 pre-formatted]])
-  * Clone ''NAS2'' spare (ext4) to ''NAS'' main (ZFS)+  * Clone ''NAS2'' spare (ext4) -> ''NAS'' main (ZFS)
  
   su -   su -
/usr/local/www/wiki/data/attic/bsd/notes/zfs_nas_format.1734845332.txt.gz · Last modified: by Sean Rhone