Upload
amir-aziz
View
3
Download
0
Embed Size (px)
DESCRIPTION
A simple guide for Linux LVM
Citation preview
A Beginner's Guide To LVM
A Beginner's Guide To LVM 1 Our First LVM SetupLet's find out about our hard disks:fdisk -lThe output looks like this:server1:~#fdisk-l
Disk/dev/sda:21.4GB,21474836480bytes255heads,63sectors/track,2610cylindersUnits=cylindersof16065*512=8225280bytes
DeviceBootStartEndBlocksIdSystem/dev/sda1*118144553+83Linux/dev/sda21924501953504083Linux/dev/sda424512610128520082Linuxswap/Solaris
Disk/dev/sdb:85.8GB,85899345920bytes255heads,63sectors/track,10443cylindersUnits=cylindersof16065*512=8225280bytes
Disk/dev/sdbdoesn'tcontainavalidpartitiontable
Disk/dev/sdc:85.8GB,85899345920bytes255heads,63sectors/track,10443cylindersUnits=cylindersof16065*512=8225280bytes
Disk/dev/sdcdoesn'tcontainavalidpartitiontable
Disk/dev/sdd:85.8GB,85899345920bytes255heads,63sectors/track,10443cylindersUnits=cylindersof16065*512=8225280bytes
Disk/dev/sdddoesn'tcontainavalidpartitiontable
Disk/dev/sde:85.8GB,85899345920bytes255heads,63sectors/track,10443cylindersUnits=cylindersof16065*512=8225280bytes
Disk/dev/sdedoesn'tcontainavalidpartitiontable
Disk/dev/sdf:85.8GB,85899345920bytes255heads,63sectors/track,10443cylindersUnits=cylindersof16065*512=8225280bytes
Disk/dev/sdfdoesn'tcontainavalidpartitiontableThere are no partitions yet on /dev/sdb - /dev/sdf. We will create the partitions /dev/sdb1, /dev/sdc1, /dev/sdd1, and /dev/sde1 and leave /dev/sdf untouched for now. We act as if our hard disks had only 25GB of space instead of 80GB for now, therefore we assign 25GB to /dev/sdb1, /dev/sdc1, /dev/sdd1, and /dev/sde1:fdisk /dev/sdbserver1:~#fdisk/dev/sdb
Thenumberofcylindersforthisdiskissetto10443.Thereisnothingwrongwiththat,butthisislargerthan1024,andcouldincertainsetupscauseproblemswith:1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)2)bootingandpartitioningsoftwarefromotherOSs(e.g.,DOSFDISK,OS/2FDISK)
Command(mforhelp):