[olug] April Meeting ideas?
Jay Swackhamer
Jay at reboottheuser.com
Wed Mar 26 23:18:29 UTC 2003
I am running Raid0(striped) on Promise ATA-Raid controllers, and have
experience with LVM under Linux/HPUX, and while I cannot give a presentation
, I can provide some information to whomever might need additional
examples....
I have the following setup on my machine at home
2 - 100gig Western Digital ATA-100 7200 RPM drives
Raid0 (striped) with ata-raid on the Promise controller for 200gig total,
Partitioned:
Disk /dev/ataraid/d0: 255 heads, 63 sectors, 24322 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/ataraid/d0p1 * 1 2550 20482843+ c Win95 FAT32 (LBA)
/dev/ataraid/d0p2 * 2551 2557 56227+ 83 Linux
/dev/ataraid/d0p3 2558 3705 9221310 83 Linux
/dev/ataraid/d0p4 3706 24322 165606052+ 5 Extended
/dev/ataraid/d0p5 3706 17729 112647748+ 8e Linux LVM
/dev/ataraid/d0p6 17730 24322 52958241 8e Linux LVM
(the two LVM disks are because I had 50 gig for windows temporarily)
I setup the ~160gig LVM section so that I can increase partitions as
the usage grows, instead of trying to guess upfront.
[root at athlon root]# vg_bdf
VG Name Megabytes Used_Mbytes Avail_Mbytes
_______ ____________ ___________ ____________
vg01 161712 157504 4208
Total Disk: 161712 Used: 157504 Free: 4208
[root at athlon backup]# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/ataraid/d0p3 9076396 8200836 414496 96% /
/dev/ataraid/d0p2 54447 44082 7554 86% /boot
none 516488 0 516488 0% /dev/shm
/dev/vg01/opt 2015824 1185176 728248 62% /opt
/dev/vg01/video 60479228 46018080 11389148 81% /opt/video
/dev/vg01/games 6553520 5936128 284592 96% /opt/games
/dev/vg01/backup 10078136 3173648 6494888 33% /opt/backup
/dev/vg01/temp 22174236 12609384 8438452 60% /opt/temp
/dev/vg01/movies 40316280 32911376 5356904 87% /opt/movies
/dev/vg01/wine 5043712 3382360 1405148 71% /opt/wine_c
/dev/vg01/source 5545592 3419028 1844964 65% /opt/source
/dev/vg01/music 4031680 2366136 1460744 62% /opt/music
/dev/vg01/images 1511856 1232588 202468 86% /opt/images
/dev/ataraid/d0p1 20472816 12967280 7505536 64% /opt/windows_c
The LVM commands under linux are similar to the HP lvm commands.
lvm (8) - Linux Logical Volume Manager
lvmchange (8) - change attributes of the logical volume manager
lvmcreate_initrd (8) - create an initial ramdisk to boot with root on
a logical volume
lvmdiskscan (8) - scan for all disks / multiple devices /
partitions available
lvmsadc (8) - LVM system activity data collector
lvmsar (8) - LVM system activity reporter
pvcreate (8) - initialize a disk or partition for use by LVM
vgscan (8) - scan all disks for volume groups and build
/etc/lvmtab and /etc/lvmtab.d/* which are the database for all other lvm
commands
vgcfgbackup (8) - backup volume group descriptor area
vgcfgrestore (8) - restore volume group descriptor area
vgchange (8) - change attributes of a volume group
vgck (8) - check volume group descriptor area
vgcreate (8) - create a volume group
vgdisplay (8) - display attributes of volume groups
vgexport (8) - make volume groups unknown to the system
vgextend (8) - add physical volumes to a volume group
vgimport (8) - make volume groups known to the system
vgmerge (8) - merge two volume groups
vgmknodes (8) - create volume group directory and special files
vgreduce (8) - reduce a volume group
vgremove (8) - remove a volume group
vgrename (8) - rename a volume group
vgscan (8) - scan all disks for volume groups and build
/etc/lvmtab and /etc/lvmtab.d/* which are the database for all other lvm
commands
vgsplit (8) - split a volume groups
So basically you get a group of disks in a machine
run 'pvcreate' on each disk/partition to create the physical volumes
then
vgcreate - to create a 'Volume group' including the disks that you want/need
to group together
Then once the volume group is created you can user 'lvcreate' to create
the 'logical volumes' which are partitions that you can specify which disk
or disks they are on, the size, and can later resize and extend the
filesystem without moving data.
--
Jay Swackhamer
Reboot The User
15791 West Dodge Road, STE 135
Omaha, NE 68118
(402) 933-6449
http://www.RebootTheUser.com
More information about the OLUG
mailing list