Normalize punctuation and create/remove tmp dir

Mostly fix before console text by using ":" without space.
Create/remove /mnt/new_qube_storage
This commit is contained in:
zetigu 2021-04-02 09:00:36 -04:00 committed by GitHub
parent 32e728d8a9
commit 75d18931d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ You want to store a subset of your AppVMs on the HDD.
Qubes 4.0 is more flexible than earlier versions about placing different VMs on different disks.
For example, you can keep templates on one disk and AppVMs on another, without messy symlinks.
You can query qvm-pool to list available storage drivers.
You can query qvm-pool to list available storage drivers:
``` shell_session
qvm-pool --help-drivers
@ -121,8 +121,7 @@ Reboot the computer so the new luks device appears at /dev/mapper/luks-b209... a
##### For LVM
First create the physical volume
First create the physical volume:
```shell_session
sudo pvcreate /dev/mapper/luks-b20975aa-8318-433d-8508-6c23982c6cde
```
@ -139,41 +138,43 @@ And then use "poolhd0" as the <thin_pool_name> (LVM thin pool name):
sudo lvcreate -T -n poolhd0 -l +100%FREE qubes
```
Finally we will tell Qubes to add a new pool on the just created thin pool
Finally we will tell Qubes to add a new pool on the just created thin pool:
```shell_session
qvm-pool --add poolhd0_qubes lvm_thin -o volume_group=qubes,thin_pool=poolhd0,revisions_to_keep=2
```
#### For Btrfs
First create the physical volume
First create the physical volume:
```shell_session
# <label> Btrfs Label
sudo mkfs.btrfs -L <label> /dev/mapper/luks-b20975aa-8318-433d-8508-6c23982c6cde
```
Then mount the new Btrfs to a temporary path
Then mount the new Btrfs to a temporary path:
```shell_session
sudo mkdir -p /mnt/new_qube_storage
sudo mount /dev/mapper/luks-b20975aa-8318-433d-8508-6c23982c6cde /mnt/new_qube_storage
```
Create a subvolume to hold the data.
Create a subvolume to hold the data:
```
sudo btrfs subvolume create /mnt/new_qube_storage/qubes
```
Unmount the temporary Btrfs filesystem
Unmount the temporary Btrfs filesystem:
```shell_session
sudo umount /mnt/new_qube_storage
rmdir /mnt/new_qube_storage
```
Mount the subvolume with compression enabled if desired
Mount the subvolume with compression enabled if desired:
```shell_session
# <compression> zlib|lzo|zstd
# <subvol> btrfs subvolume "qubes" in this example
sudo mount /dev/mapper/luks-b20975aa-8318-433d-8508-6c23982c6cde /var/lib/qubes_newpool -o compress=<compression>,subvol=qubes
```
Finally we will tell Qubes to add a new pool on the just created Btrfs subvolume
Finally we will tell Qubes to add a new pool on the just created Btrfs subvolume:
```shell_session
qvm-pool --add poolhd0_qubes file-reflink -o dir_path=/var/lib/qubes_newpool,revisions_to_keep=2