Difference between revisions of "Add a new disk using LVM"
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
* 6) <code>[[mkdir]] /path/to/your/new/fs</code> | * 6) <code>[[mkdir]] /path/to/your/new/fs</code> | ||
* 7) <code>[[/etc/fstab]]</code> | * 7) <code>[[/etc/fstab]]</code> | ||
− | + | * 8) <code>[[mount -a]]</code> | |
== See also == | == See also == |
Revision as of 07:27, 3 March 2021
- 1)
rescan-scsi-bus.sh
- 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)
/etc/fstab
- 8)
mount -a
See also
- Block devices:
blkid
(UUID),lshw -class disk
,hwinfo --disk
,udevadm
,rescan-scsi-bus.sh
,LUN
,hdparm
,findfs
, Add a new disk lsblk
,pvscan
lspci
,lsscsi
,smartctl
,fdisk
,parted
,Kpartx
,pvdiplay
,pvs
,udisksctl
,/dev/sd, nvme list
Advertising: