"Updates"
This commit is contained in:
+10
-5
@@ -56,30 +56,35 @@ PARTUUID=550961db-02 / ext4 defaults,noatime 0 1
|
|||||||
/mnt/data/backup /srv/nfs4/backup none bind,nofail 0 0
|
/mnt/data/backup /srv/nfs4/backup none bind,nofail 0 0
|
||||||
```
|
```
|
||||||
|
|
||||||
#### sandy (sda / nvme0n1)
|
#### sandy (nvme0n1 / sda )
|
||||||
```
|
```
|
||||||
# <file system> <mount point> <type> <options> <dump> <fsck>
|
# <file system> <mount point> <type> <options> <dump> <fsck>
|
||||||
UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1
|
UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1
|
||||||
# nvme
|
# nvme
|
||||||
UUID=e2e3a295-9731-4aa2-996f-c72c2b81f40f /mnt/ssd ext4 defaults 0 0
|
UUID=e2e3a295-9731-4aa2-996f-c72c2b81f40f /mnt/ssd ext4 defaults 0 0
|
||||||
|
# hdd
|
||||||
|
UUID=755c7782-171b-4dab-8b06-31c02557141f /mnt/hdd ext4 defaults 0 0
|
||||||
```
|
```
|
||||||
|
|
||||||
#### gary (nvme0n1 / sda)
|
#### gary (nvme0n1)
|
||||||
```
|
```
|
||||||
# <file system> <mount point> <type> <options> <dump> <fsck>
|
# <file system> <mount point> <type> <options> <dump> <fsck>
|
||||||
UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1
|
UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1
|
||||||
# nvme
|
# nvme
|
||||||
UUID=124046b7-f656-4691-933b-4673e5abbb17 /mnt/ssd ext4 defaults 0 0
|
UUID=124046b7-f656-4691-933b-4673e5abbb17 /mnt/ssd ext4 defaults 0 0
|
||||||
# hdd
|
|
||||||
UUID=deebbc34-ca9b-4752-abfc-89f7ed24bcf1 /mnt/hdd ext4 defaults 0 0
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### sheldon (nvme0n1)
|
#### sheldon (nvme0n1 / sda / sdb)
|
||||||
```
|
```
|
||||||
# <file system> <mount point> <type> <options> <dump> <fsck>
|
# <file system> <mount point> <type> <options> <dump> <fsck>
|
||||||
UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1
|
UUID=1cf633ab-4f5f-42da-b347-31282732a446 / ext4 defaults,x-systemd.growfs 0 1
|
||||||
# nvme
|
# nvme
|
||||||
UUID=fd0d6603-c6f1-43fe-a993-39f79b4e3eb8 /mnt/ssd ext4 defaults 0 0
|
UUID=fd0d6603-c6f1-43fe-a993-39f79b4e3eb8 /mnt/ssd ext4 defaults 0 0
|
||||||
|
# hdds (LVM
|
||||||
|
# sda a47b05b1-3bc6-45ba-bfb4-e0aca4761fe5
|
||||||
|
# sdb 8a54c53d-427f-4085-9922-76c9ecaf30fa
|
||||||
|
# lvm /dev/mapper/hdds-hdd
|
||||||
|
UUID=951bfd08-c684-4203-9dd3-d041f3b4606e /mnt/hdd ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
|
||||||
```
|
```
|
||||||
|
|
||||||
#### pearl (nvme0n1)
|
#### pearl (nvme0n1)
|
||||||
|
|||||||
+14
-12
@@ -4,8 +4,10 @@
|
|||||||
|
|
||||||
<div class="table-wrapper" id="bkmrk-name-maj%3Amin-rm-size"><table><tbody><tr><th colspan="1" rowspan="1">NAME</th><th colspan="1" rowspan="1">MAJ:MIN</th><th colspan="1" rowspan="1">RM</th><th colspan="1" rowspan="1">SIZE</th><th colspan="1" rowspan="1">RO</th><th colspan="1" rowspan="1">TYPE</th><th colspan="1" rowspan="1">MOUNTPOINTS</th></tr><tr><td colspan="1" rowspan="1">sdb</td><td colspan="1" rowspan="1">8:16</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">3.6T</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">disk</td><td colspan="1" rowspan="1"> </td></tr><tr><td colspan="1" rowspan="1">└─ hdds-datas</td><td colspan="1" rowspan="1">253:0</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">7.3T</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">lvm</td><td colspan="1" rowspan="1">/export/media</td></tr><tr><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1">/srv/dev-disk-by-uuid-a67ae390-f36c-4b7c-98a0-4a3b5601c107</td></tr><tr><td colspan="1" rowspan="1">sdc</td><td colspan="1" rowspan="1">8:32</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">3.6T</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">disk</td><td colspan="1" rowspan="1"> </td></tr><tr><td colspan="1" rowspan="1">└─ hdds-datas</td><td colspan="1" rowspan="1">253:0</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">7.3T</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">lvm</td><td colspan="1" rowspan="1">/export/media</td></tr><tr><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1">/srv/dev-disk-by-uuid-a67ae390-f36c-4b7c-98a0-4a3b5601c107</td></tr></tbody></table>
|
<div class="table-wrapper" id="bkmrk-name-maj%3Amin-rm-size"><table><tbody><tr><th colspan="1" rowspan="1">NAME</th><th colspan="1" rowspan="1">MAJ:MIN</th><th colspan="1" rowspan="1">RM</th><th colspan="1" rowspan="1">SIZE</th><th colspan="1" rowspan="1">RO</th><th colspan="1" rowspan="1">TYPE</th><th colspan="1" rowspan="1">MOUNTPOINTS</th></tr><tr><td colspan="1" rowspan="1">sdb</td><td colspan="1" rowspan="1">8:16</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">3.6T</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">disk</td><td colspan="1" rowspan="1"> </td></tr><tr><td colspan="1" rowspan="1">└─ hdds-datas</td><td colspan="1" rowspan="1">253:0</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">7.3T</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">lvm</td><td colspan="1" rowspan="1">/export/media</td></tr><tr><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1">/srv/dev-disk-by-uuid-a67ae390-f36c-4b7c-98a0-4a3b5601c107</td></tr><tr><td colspan="1" rowspan="1">sdc</td><td colspan="1" rowspan="1">8:32</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">3.6T</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">disk</td><td colspan="1" rowspan="1"> </td></tr><tr><td colspan="1" rowspan="1">└─ hdds-datas</td><td colspan="1" rowspan="1">253:0</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">7.3T</td><td colspan="1" rowspan="1">0</td><td colspan="1" rowspan="1">lvm</td><td colspan="1" rowspan="1">/export/media</td></tr><tr><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1"> </td><td colspan="1" rowspan="1">/srv/dev-disk-by-uuid-a67ae390-f36c-4b7c-98a0-4a3b5601c107</td></tr></tbody></table>
|
||||||
|
|
||||||
</div>```bash
|
</div>
|
||||||
apt install -y lvm2
|
|
||||||
|
```bash
|
||||||
|
sudo apt install -y lvm2
|
||||||
```
|
```
|
||||||
|
|
||||||
### Disks
|
### Disks
|
||||||
@@ -40,20 +42,20 @@ I/O size (minimum/optimal): 4096 bytes / 4096 bytes
|
|||||||
#### Physical Volumes (partitions)
|
#### Physical Volumes (partitions)
|
||||||
|
|
||||||
```
|
```
|
||||||
pvcreate /dev/sdb
|
pvcreate /dev/sdX
|
||||||
pvcreate /dev/sdc
|
pvcreate /dev/sdY
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Volume Group
|
#### Volume Group
|
||||||
|
|
||||||
```
|
```
|
||||||
vgcreate hdds /dev/sdb /dev/sdc
|
vgcreate hdds /dev/sdX /dev/sdY
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Logical Volume(s)
|
#### Logical Volume(s)
|
||||||
|
|
||||||
```
|
```
|
||||||
lvcreate --extents 100%FREE -n datas hdds
|
lvcreate --extents 100%FREE -n <volume_name> hdds
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -62,7 +64,7 @@ pvdisplay
|
|||||||
|
|
||||||
```
|
```
|
||||||
--- Physical volume ---
|
--- Physical volume ---
|
||||||
PV Name /dev/sdb
|
PV Name /dev/sdX
|
||||||
VG Name hdds
|
VG Name hdds
|
||||||
PV Size <3.64 TiB / not usable <3.84 MiB
|
PV Size <3.64 TiB / not usable <3.84 MiB
|
||||||
Allocatable yes (but full)
|
Allocatable yes (but full)
|
||||||
@@ -73,7 +75,7 @@ Allocated PE 953861
|
|||||||
PV UUID zHiPKx-t2BO-15r3-xPfQ-DPlB-7K40-YxIdM1
|
PV UUID zHiPKx-t2BO-15r3-xPfQ-DPlB-7K40-YxIdM1
|
||||||
|
|
||||||
--- Physical volume ---
|
--- Physical volume ---
|
||||||
PV Name /dev/sdc
|
PV Name /dev/sdY
|
||||||
VG Name hdds
|
VG Name hdds
|
||||||
PV Size <3.64 TiB / not usable <3.84 MiB
|
PV Size <3.64 TiB / not usable <3.84 MiB
|
||||||
Allocatable yes (but full)
|
Allocatable yes (but full)
|
||||||
@@ -117,7 +119,7 @@ lvdisplay
|
|||||||
|
|
||||||
```
|
```
|
||||||
--- Logical volume ---
|
--- Logical volume ---
|
||||||
LV Path /dev/hdds/datas
|
LV Path /dev/hdds/<volume_name>
|
||||||
LV Name data
|
LV Name data
|
||||||
VG Name hdds
|
VG Name hdds
|
||||||
LV UUID qgdjwr-9Aau-p4mj-rksl-IeBB-SjD1-z6hede
|
LV UUID qgdjwr-9Aau-p4mj-rksl-IeBB-SjD1-z6hede
|
||||||
@@ -136,7 +138,7 @@ Block device 254:0
|
|||||||
|
|
||||||
#### Format LV
|
#### Format LV
|
||||||
```bash
|
```bash
|
||||||
sudo mkfs.ext4 /dev/hdds/datas
|
sudo mkfs.ext4 /dev/hdds/<volume_name>
|
||||||
```
|
```
|
||||||
|
|
||||||
### NFS
|
### NFS
|
||||||
@@ -175,7 +177,7 @@ sudo systemctl restart nfs-server
|
|||||||
##### Get LVM's UUID
|
##### Get LVM's UUID
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo blkid -s UUID -o value /dev/mapper/hdds-datas
|
sudo blkid -s UUID -o value /dev/mapper/hdds-<volume_name>
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Mount LVM
|
##### Mount LVM
|
||||||
@@ -187,7 +189,7 @@ sudo vim /etc/fstab
|
|||||||
```
|
```
|
||||||
UUID=0c390345-ca52-45fd-9097-6e931d651a8f / ext4 defaults,x-systemd.growfs 0 1
|
UUID=0c390345-ca52-45fd-9097-6e931d651a8f / ext4 defaults,x-systemd.growfs 0 1
|
||||||
# LVM
|
# LVM
|
||||||
/dev/hdds/datas /mnt/data ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
|
UUID=... /mnt/data ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
|
||||||
# NFS exports
|
# NFS exports
|
||||||
/mnt/data/cloud /srv/nfs4/cloud none bind,nofail 0 0
|
/mnt/data/cloud /srv/nfs4/cloud none bind,nofail 0 0
|
||||||
/mnt/data/media /srv/nfs4/media none bind,nofail 0 0
|
/mnt/data/media /srv/nfs4/media none bind,nofail 0 0
|
||||||
|
|||||||
Reference in New Issue
Block a user