User Tools

Site Tools


computing:zfsreminders

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
computing:zfsreminders [2022/11/13 04:27] oemb1905computing:zfsreminders [2025/02/21 02:42] (current) oemb1905
Line 3: Line 3:
   * **Jonathan Haack**   * **Jonathan Haack**
   * **Haack's Networking**   * **Haack's Networking**
-  * **webmaster@haacksnetworking.org**+  * **webmaster@haacksnetworking.org** 
  
 ------------------------------------------- -------------------------------------------
Line 35: Line 35:
 If you now have more than one drive, add another drive as a mirror as follows: If you now have more than one drive, add another drive as a mirror as follows:
  
-  zpool attach nameofpool /dev/disk/by-id/currentdisk /dev/disk/by-id/newdisk+  zpool attach nameofpool mirror /dev/sdA /dev/sdB
      
 To create an encrypted dataset you generate a key and then specify the location and name of the pool as follows: To create an encrypted dataset you generate a key and then specify the location and name of the pool as follows:
Line 49: Line 49:
 If you need to delete a dataset, do the following: If you need to delete a dataset, do the following:
  
-  zfs destroy -r -n pool/dataset+  zfs destroy -r pool/dataset
      
 To create snapshots, here is a reasonable template: To create snapshots, here is a reasonable template:
Line 83: Line 83:
   zpool status -v   zpool status -v
   zpool iostat -v   zpool iostat -v
-  zpool list+  zpool list -v
      
 Also, to see whether cache volume is necessary, run and look at cache hit/miss ratio: Also, to see whether cache volume is necessary, run and look at cache hit/miss ratio:
Line 92: Line 92:
  
   sudo zfs set keylocation=file:///keys/my.key mypool/mydataset   sudo zfs set keylocation=file:///keys/my.key mypool/mydataset
 +  
 +Send and receive entire pool to new pool
 +
 +  zfs snapshot -r pool1@latestsnap
 +  zfs send -R pool1@latestsnap | zfs receive -F pool2
 +  
 +Arc information
 +  
 +  arcstat
 +  arc_summary -d | less
 +  nano /etc/modprobe.d/zfs.conf
 +  <# 8GB example - 8*(2^30) = below>
 +  <#options zfs zfs_arc_max=8589934592>
 +  <# Set Max ARC size => 2GB == 2147483648 Bytes>
 +  <options zfs zfs_arc_max=2147483648>
 +  <# Set Min ARC size => 1GB == 1073741824>
 +  <options zfs zfs_arc_min=1073741824>
 +  cat /sys/module/zfs/parameters/zfs_arc_min
 +  cat /sys/module/zfs/parameters/zfs_arc_max
 +
 +nmap tests and other security checks
 +
 +  nmap -sV --script ssl-enum-ciphers -p 443 website.com
 +  nikito -h website.com
 +  wpscan --url https://notoriousslips.com --enumerate vp
 +
  
- --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/08/29 07:13//+ --- //[[alerts@haacksnetworking.org|oemb1905]] 2024/12/13 16:33//
computing/zfsreminders.1668313637.txt.gz · Last modified: 2022/11/13 04:27 by oemb1905