20:12:45 #startmeeting 20:12:45 Meeting started Sat Dec 5 20:12:45 2009 UTC. The chair is pcalarco. Information about MeetBot at http://wiki.debian.org/MeetBot. 20:12:45 Useful Commands: #action #agreed #halp #info #idea #link #topic. 20:13:12 thanks pcalarco! 20:13:39 physical volumes comprised of disks, logicial volumes comprised of mount points defined on individual system 20:14:40 with physical volumes aggregated into volume groups, you can do interesting and useful things like swap out a bad physical volume with the logicial volumes still available 20:15:06 what can we do with LVM? 20:15:19 * resizing file systens 20:15:37 df -h to find out how much disk is free 20:16:32 through graphical LVM tool, click on properties of logical volume, and can edit storage assignment for that volume 20:16:52 question: where does it get the empty space from? 20:17:25 answer: not all of the physical volume space has been assigned, and it is pulling them from there 20:17:42 it is easier to leave some space not allocated for the future 20:18:19 if you want to shrink a filesystem, it can't be in use 20:18:48 vgs -- tells information about volume groups 20:19:30 shows amount oif volumes sized, and how much of this is free 20:19:50 pvs -- display partitions 20:20:11 lvs -- display logical volume groups 20:20:32 lvextend -- extend a logical volume group 20:21:23 lvextend --size 20:23:06 resize2fs 20:23:54 this can take some time, depending on how much use the volume has currently 20:24:18 to shrink a file system, you need to unmount it first 20:25:00 system-config-lvm -- start lvm graphical client from command line 20:26:20 to edit a logical volume, you will get a warning if the logical volume is mounted 20:27:58 through eSATA, USB, firewire, one an now easily attached uninitialized additional physical volumes 20:28:21 initialize and assign through LVM GUI 20:30:02 once the new storage is attached and assigned, you can migrate the data from the disk you want to take out, and assign this to the new partition 20:30:36 pvcreate 20:31:14 vgextend 20:31:28 vgextend 20:31:49 pvmove 20:32:14 vgreduce 20:32:41 Fedora has, by default, Smart Drive system turned on 20:33:30 Fedora will let you know if a drive is going to fail, at which point you could rush out to get a new drive and replace it as described above 20:34:52 lvcreate --name --size 20:35:52 mkfs -t ext3 20:35:56 mount 20:37:24 #meetingtopic Other uses of LVM 20:38:11 How about backup of web server, for example? 20:38:56 LVM allows you to create a backup of a logical volume as a snapshot copy 20:39:15 does not use any additional storage, except for a bit for the metadata 20:40:06 when data is written to the original filesystem, the snapshot will write out only updates to the snapshot volume 20:40:41 snapshot original designed for using for backups, but there are many uses beyond this 20:40:58 #topic 20:41:11 #topic Creating a Snapshot 20:41:44 #meetingtopic Storage Management with LVM 20:43:42 lvcreate -s --name --size 20:44:10 this is very fast, much faster than you could copy the data normally 20:45:39 you could automate this to keep track of users' created files over a time period 20:46:45 could also use this to create new volumes for new virtual machines 20:47:18 creat auxiliary VMs with much smaller storage reqs 20:48:08 question: what about if the changes overflows the amount of space assigned in the snapshot volume 20:48:54 answer: if you want to really play it safe, you could create snapshot volume same size as original volume, but rarely necessary 20:49:27 in general, the GUI also has some sanity checks that the command line does not have, so preferable to use GUI 20:50:37 by default, the Fedora install fully allocates all available space; suggest not to do this 20:51:36 LVM can also be used to help with upgrades 20:52:27 leave around older existing logical volumes, and install into new logical volumes 20:53:48 you can then use these original volumes to it is also possible to build LVM on top of RAID volumes 20:53:53 #endmeeting