User Tools

Site Tools


bsd:notes:rsync_nas

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:rsync_nas [2025/10/25 07:17] – [Format] Sean Rhonebsd:notes:rsync_nas [2025/10/26 02:31] (current) – [Mount ext4] Sean Rhone
Line 16: Line 16:
   * ''NAS1'' = 10TB Main   * ''NAS1'' = 10TB Main
   * ''ext4''   * ''ext4''
-  * No partition table ([[linux:notes:rsync_nas#format]])+  * No partition table ([[linux:notes:rsync_nas#format|mkfs.ext4 notes]])
  
   su -   su -
Line 75: Line 75:
 ugen0.5: <USB2.0 Hub VIA Labs, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA) ugen0.5: <USB2.0 Hub VIA Labs, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
 ugen0.6: <USB 3.1 Device PM ASMedia Technology Inc.> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (0mA)</code> ugen0.6: <USB 3.1 Device PM ASMedia Technology Inc.> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (0mA)</code>
 +
 +====== Wipe Drive ======
 +
 +  su -
 +
 +  geom disk list
 +
 +  dd if='/dev/zero' of='/dev/da0' count='8096'
  
 ====== ZFS NAS ====== ====== ZFS NAS ======
Line 92: Line 100:
  
   zpool export 'NAS'   zpool export 'NAS'
- 
-====== UFS2 NAS ====== 
- 
-  * 10TB Main 
- 
-===== Format ===== 
- 
-  su - 
- 
-  geom disk list 
- 
-  dd if='/dev/zero' of='/dev/da0' count='8096' 
- 
-  newfs -L 'NAS' -O '2' -n -o 'time' '/dev/da0' 
  
 ====== Disconnect Enclosure ====== ====== Disconnect Enclosure ======
Line 127: Line 121:
   * :!: ''USB 3.1 ASMedia (5.0Gbps)'' needs listed for >USB2 speeds ((caps around 37MB/s at USB2))   * :!: ''USB 3.1 ASMedia (5.0Gbps)'' needs listed for >USB2 speeds ((caps around 37MB/s at USB2))
  
-  usbconfig+  usbconfig | grep '<USB 3.1 Device PM ASMedia Technology Inc.>' 
 + 
 +  usbconfig | grep 'SUPER (5.0Gbps)' 
 + 
 +  usbconfig | grep '<USB 3.1 Device PM ASMedia Technology Inc.> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps)'
  
   diskinfo -t 'da0'   diskinfo -t 'da0'
 +
 +  iostat -c6
  
 ===== NAS1 ===== ===== NAS1 =====
  
   * ''NAS1'' = 10TB Main   * ''NAS1'' = 10TB Main
- 
-==== ZFS ==== 
  
   su -   su -
Line 142: Line 140:
  
   chown -R 'espionage724':'espionage724' '/NAS'   chown -R 'espionage724':'espionage724' '/NAS'
- 
-==== UFS2 ==== 
- 
-  su - 
- 
-  geom disk list 
- 
-  mkdir -p '/mnt/NAS1' && mount -o 'autoro,noatime' -t 'ufs' -v '/dev/da0' '/mnt/NAS1' 
- 
-  chown -R 'espionage724':'espionage724' '/mnt/NAS1' 
  
 ===== NAS2 ===== ===== NAS2 =====
Line 170: Line 158:
   mkdir -p '/mnt/NAS2' && ntfs-3g -o 'rw,big_writes,uid=1001,gid=1001' '/dev/da1p2' '/mnt/NAS2'   mkdir -p '/mnt/NAS2' && ntfs-3g -o 'rw,big_writes,uid=1001,gid=1001' '/dev/da1p2' '/mnt/NAS2'
  
-===== 4TB Restore =====+====== 4TB Restore ======
  
   * 4TB HDD restore to 10TB NAS drive   * 4TB HDD restore to 10TB NAS drive
-  * ZFS 
   * Exclude ''Videos'', ''Games'', ''Music''   * Exclude ''Videos'', ''Games'', ''Music''
-  * 2025/10/25: ''212G'' 
  
 <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' --exclude 'Videos' --exclude 'Games' --exclude 'Music' '/mnt/NAS2/' '/NAS'</code> <code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' --exclude 'Videos' --exclude 'Games' --exclude 'Music' '/mnt/NAS2/' '/NAS'</code>
  
-  * Games+===== Games =====
  
-<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Games/' '/mnt/NAS1/Games'</code>+****
  
-  * Music (:!: ''&&'' with ''Videos'' overnight)+<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Games/' '/NAS/Games'</code>
  
-<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Music/' '/mnt/NAS1/Music'</code>+===== Music =====
  
-  * Videos (some)+  * :!: ''&&'' with ''Videos'' overnight
  
-<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Videos/' '/mnt/NAS1/Videos'</code>+<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Music/' '/NAS/Music'</code>
  
-===== 2TB USB Restore =====+===== Videos ===== 
 + 
 +  * :!: Only some (rest below) 
 + 
 +<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/NAS2/Videos/' '/NAS/Videos'</code> 
 + 
 +====== 2TB USB Restore ======
  
   * Videos 2 (WD ext)   * Videos 2 (WD ext)
  
-<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/run/media/espionage724/688EDD408EDD0808/Dragon Ball DBOX' '/run/media/espionage724/NAS/Videos/Anime'</code>+===== Mount =====
  
-<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/run/media/espionage724/688EDD408EDD0808/Dragon Ball GT' '/run/media/espionage724/NAS/Videos/Anime'</code>+  su -
  
-===== Maintenance =====+  geom disk list
  
-==== Repair ====+  gpart list 'da1'
  
-  sync && udisksctl unmount --block-device '/dev/sda'+  kldload 'fusefs'
  
-  sudo e2fsck --'discard,optimize_extents,inode_count_fullmap,check_encoding,unshare_blocks-f -v -y '/dev/sda'+  mkdir -p '/mnt/USB2' && ntfs-3g -'ro,big_writes,uid=1001,gid=1001' '/dev/da1s1' '/mnt/USB2'
  
-==== Defrag ====+===== rsync =====
  
-  * :!: First-time seemingly takes longer than the whole 5TB+ restore+<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/USB2/Dragon Ball GT' '/NAS/Videos/Anime'</code>
  
-  udisksctl mount --block-device '/dev/sda'+<code>rsync --recursive --update --ignore-existing --verbose --debug='ALL' '/mnt/USB2/Dragon Ball DBOX' '/NAS/Videos/Anime'</code> 
 + 
 +====== Maintenance ====== 
 + 
 +===== ZFS Scrub ===== 
 + 
 +  su - 
 + 
 +  zpool import 'NAS' 
 + 
 +  zpool scrub 'NAS' 
 + 
 +  zpool status 'NAS' 
 + 
 +  zpool export 'NAS'
  
-  sudo e4defrag -v '/dev/sda' && sync && udisksctl unmount --block-device '/dev/sda'+  exit
  
/srv/www/wiki/data/attic/bsd/notes/rsync_nas.1761391056.txt.gz · Last modified: by Sean Rhone