Differences between version 5 and predecessor to the previous major change of LVMNotes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 5 | Last edited on Friday, August 22, 2003 2:07:36 pm | by CraigBox | Revert |
Older page: | version 4 | Last edited on Friday, July 25, 2003 3:00:46 pm | by PerryLorier | Revert |
@@ -13,17 +13,23 @@
Make sure LVM is compiled into your kernel, and you have the LVM tools installed (Debian: apt-get install lvm10).
!Create a PV[1] partition on your drive
-# fdisk /dev/sda
+
# fdisk /dev/sda
Set the type of this partition (which, in my case, is primary partition 4 and eats the rest of my disc) to 8e - Linux LVM.
!Prepare the partition
+
+First, run vgscan:
+ # vgscan
+ vgscan -- reading all physical volumes (this may take a while...)
+ vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
+ vgscan -- WARNING: This program does not do a VGDA backup of your volume group
This creates a volume group descriptor area (VGDA) at the start of the disks.
-# pvcreate /dev/sda4
-pvcreate -- physical volume "/dev/sda4" successfully created
+
# pvcreate /dev/sda4
+ pvcreate -- physical volume "/dev/sda4" successfully created
!Create a volume group (VG)[2]
This volume group can contain multiple discs, but in this case it only uses one.