Last active
          July 28, 2023 21:37 
        
      - 
      
 - 
        
Save aspyct/9b604979f6717c8ac6d5cc1cffb759e0 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
aspyct revised this gist
Jul 28, 2023 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,10 @@ # Create a ZFS pool (i.e. choose disks that are part of the storage) # In this case, it's a two-disk mirror # Make sure to use /dev/disk/by-id/* for a stable pool sudo zpool create <pool_name> mirror /dev/disk/by-id/<disk1> /dev/disk/by-id/<disk2> sudo zfs create <pool_name>/<dataset_name> # Check status sudo zpool status  - 
        
aspyct revised this gist
Sep 8, 2022 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,3 +7,5 @@ sudo zfs set mountpoint=/path/to/directory poolname/volumename # Rename a volume sudo zfs rename poolname/volumename poolname/newvolumename # Destroy a volume sudo zfs destroy poolname/volumename  - 
        
aspyct created this gist
Sep 8, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ # Check status sudo zpool status # Change the mountpoint of a volume sudo zfs set mountpoint=/path/to/directory poolname/volumename # Rename a volume sudo zfs rename poolname/volumename poolname/newvolumename