Difference between revisions of "Add a new disk using LVM"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 12: Line 12:
 
* <code>echo 1 > [[/sys/block/]]sda/device/[[rescan]]</code>
 
* <code>echo 1 > [[/sys/block/]]sda/device/[[rescan]]</code>
 
* <code>[[pvresize]]</code>
 
* <code>[[pvresize]]</code>
 +
* [[Add a swap disk]]
  
 
== See also ==
 
== See also ==

Revision as of 14:12, 24 August 2023

1) rescan-scsi-bus.sh -a
2) pvcreate: pvcreate /dev/sdXXXX
3) vgcreate: vgcreate VG_NAME_1 /dev/sdXXXX
4) lvcreate: lvcreate -l 100%FREE -n LV_NAME_1 VG_NAME_1
5) mkfs.ext4 mkfs.ext4 /dev/VG_NAME_1/LV_NAME_1
6) mkdir /path/to/your/new/fs
7) Edit /etc/fstab
8) mount -a

Related terms

See also

Advertising: