User Tools

Site Tools


linux:storage

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
linux:storage [2019-04-30 14:18] – first draft of LVM gabriellinux:storage [2019-08-10 19:04] (current) – title capitalization gabriel
Line 1: Line 1:
-====== Linux Storage ======+====== Linux storage ======
  
 This page contains my personal notes on Linux filesystems, partitioning, backups, performance tuning, and related concepts.  **Warning:** //these notes are specific to my own non-critical systems and may not be applicable in general use cases.// This page contains my personal notes on Linux filesystems, partitioning, backups, performance tuning, and related concepts.  **Warning:** //these notes are specific to my own non-critical systems and may not be applicable in general use cases.//
 +
 +> **Update:** Due to a a number of stability issues I've returned to using [[https://neon.kde.org/|KDE neon]] on my work laptop.  Nod to the KDE devs for maintaining a stable rolling release distro.  The general principles still apply to any modern distro.
  
 ===== Partitioning for Ubuntu 19.04 workstations ===== ===== Partitioning for Ubuntu 19.04 workstations =====
Line 24: Line 26:
 mkpart efi fat32 1MiB 257MiB # align the first block mkpart efi fat32 1MiB 257MiB # align the first block
 mkpart boot ext4 257MiB 769MiB mkpart boot ext4 257MiB 769MiB
-mkpart pv0 ext4 769MiB 92% # finish the LVM pv at 92% capacity+mkpart lvm-pv0 ext4 769MiB 92% # finish the LVM pv at 92% capacity
 </file> </file>
  
Line 32: Line 34:
 (parted) print                                                             (parted) print                                                            
 Model: PC401 NVMe SK hynix 256GB (nvme) Model: PC401 NVMe SK hynix 256GB (nvme)
-Disk /dev/nvme0n1: 244198MiB+Disk /dev/nvme0n1: 256GB
 Sector size (logical/physical): 512B/512B Sector size (logical/physical): 512B/512B
 Partition Table: gpt Partition Table: gpt
 Disk Flags:  Disk Flags: 
  
-Number  Start    End        Size       File system  Name  Flags +Number  Start   End    Size   File system  Name     Flags 
-      1.00MiB  513MiB     512MiB     fat32        efi +      1049kB  269MB  268MB  ext4         efi      msftdata 
-      513MiB   1025MiB    512MiB     ext4         boot +      269MB   806MB  537MB               boot 
-      1025MiB  224662MiB  223637MiB  ext4         pv0+      806MB   236GB  235GB               lvm-pv0  lvm
 </file> </file>
  
Line 57: Line 59:
 Partition type (type L to list all types): 31 Partition type (type L to list all types): 31
  
-Changed type of partition 'Linux LVM' to 'Linux LVM'.+Changed type of partition 'Linux filesystem' to 'Linux LVM'.
  
 Command (m for help): p Command (m for help): p
Line 66: Line 68:
 I/O size (minimum/optimal): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: gpt Disklabel type: gpt
-Disk identifier: 7393485F-ADF5-46CE-B51A-ECD6083D4AB7+Disk identifier: 14779AE7-C2BB-4F6A-9F6E-A927FAF7AAFB
  
 Device           Start       End   Sectors   Size Type Device           Start       End   Sectors   Size Type
-/dev/nvme0n1p1    2048   1050623   1048576   512M Microsoft basic data +/dev/nvme0n1p1    2048    526335    524288   256M Microsoft basic data 
-/dev/nvme0n1p2 1050624   2099199   1048576   512M Linux filesystem +/dev/nvme0n1p2  526336   1574911   1048576   512M Linux filesystem 
-/dev/nvme0n1p3 2099200 460107775 458008576 218.4G Linux LVM+/dev/nvme0n1p3 1574912 460107775 458532864 218.7G Linux LVM
  
 Command (m for help): w Command (m for help): w
Line 93: Line 95:
 lvs lvs
   LV    VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert   LV    VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
-  root  vg0 -wi-a----- 202.39g                                                    +  root  vg0 -wi-a----- 202.64g                                                    
   swap0 vg0 -wi-a-----  16.00g   swap0 vg0 -wi-a-----  16.00g
 </file> </file>
  
linux/storage.1556648303.txt.gz · Last modified: 2019-04-30 14:18 by gabriel