These are absolutely definitely not a complete set of notes, but merely a set of notes to remind myself of things I do or may want to do, cover or mention as part of the presentation - most notably things I might want to have handy or might possibly otherwise miss that the prepared web pages may not fully and rather/quite immediately remind me to cover. vshortp clear (login) 62x22 Huge :se tabstop=4 shiftwidth=4 autoindent startx -- :3 -xf86config XF86Config-4 -layout 'IBM_ThinkPad_T40p_TYPE_2373-G1U_LCD_640x480' & xset s off #xscreensaver -no-splash -timeout 0 -cycle 1 -no-lock-mode xclock -digital -update 1 -rv -geometry +0-0 & xclock -update 1 -rv -geometry +0-0 & mozilla -geometry 640x513#-6-36 xterm -geometry 63x23 & #-6-23 Huge xtermtitle demo cd ~/tmp/BALUG script typescript.demo vshortp clear xterm -geometry 63x23#-6-23 Huge xtermtitle demo\# cd ~michael/tmp/BALUG script typescript.demo\# exec sudo su - vshortp clear >>/dev/null 2>&1 kdf & //Size|Full %|Usage|Mount point ^ xzoom -geometry 640x494 & #-6-36 Title Page Welcome. Evaluation Sheets make sure they're distributed mention them (mini-bio? Hello my name is Michael Paoli I've worked with UNIX as far back as 1980 I've been administering UNIX Systems since 1987 personal systems since 1989, have never had an operating installed on hard drives other than XENIX, UNIX or LINUX (and I'm up to 7th hard drive now) except until about 2 years ago when buying the laptop I wanted included an operating system I wasn't very interested in (and that OS typically runs less than 20 minutes a month on my laptop) First used Logical Volume Management software <~=1995 been using and administering LINUX since 1998 have been using LVM on LINUX for about 2 years. ) ( Preface Notes This presentation was not designed to be a comprehensive tutorial or training on LVM. ) (questions?) LVM - without LVM - by Partitions/Cylinders/Slices/... (not shown to scale) can't change start of partition while it's in use need contiguous space to grow partition difficult to manage/plan/anticipate hazardous to change partitions on in-use disk can lump all filesystems together, but that has drawbacks manageability security scalability (questions?) What Is Logical Volume Manager (LVM)? "Physical Volumes" - storage devices, may be LUNs, disks, partitions, on LINUX, also loopback and metadevices (questions?) Other Volume Managers LINUX LVM versions HP-UX rather similar to LINUX, except: free, as in buy this proprietary hardware, and we'll throw in some free as in beer ... mirroring - optional non-free additional software pvmove - can't specify source/target PEs other minor differences (LINUX has some lower level commands that HP-UX doesn't, e.g. pvdata) AIX - rather like HP-UX LVM, but to distinguish themselves most (or all?) commands renamed, e.g. vgcreate --> createvg Veritas Veritas Volume Manager spiffy very capable software, nice GUI; command window feature not free as in beer, not free as in freedom available for various platforms, including LINUX Sun Volume Manager OEM version of Veritas Volume Manager different support/packaging, some limitations, otherwise essentially same software Tru64 UNIX - Logical Storage Manager (LSM) mostly just like Veritas Volume Manager except: commands renamed: s/vxvol/volume;s/vx/vol/ some GUI stuff renamed/relocated some other tweaks/enhancements different color scheme in GUI some extentions not in Veritas Volume Manager (theoretically) an integrated part of the operating system Solaris Volume Manager free as in beer, with Solaris >=9 extention of Solstaice DiskSuite Solstice DiskSuite free as in free beer with the purchase of ... Filesystem Oriented Solaris 10 ZFS --> storage pools --> storage polcies --> ZFS filesystems Tru64 UNIX ADvFS spans devices ... Other Volume Managers - not a complete list :-) (questions?) LVM Basics ... not a complete list of commands (questions?) Overview create PVs create VGs create LVs use LVs as filesystems or for other storage manage LVs, etc. (questions?) (Demo "slide") (questions?) Demonstration # sfdisk -uS -l /dev/hda | grep -v 'hda[1-6] ' # pvcreate /dev/hda1[89] /dev/hda20 # vgcreate VG1 /dev/hda18 //may want to use various non-default options with vgcreate # vgdisplay -v VG1 | less # lvcreate --size 128M --name LV1 VG1 # mkreiserfs /dev/VG1/LV1 # (umask 022 && mkdir /var/tmp/1) // kdf # mount -t reiserfs /dev/VG1/LV1 /var/tmp/1 // kdf # chown michael /var/tmp/1 $ df -k /var/tmp/1 $ cd /var/tmp/1 $ ls -alb $ cp /var/tmp/cdrom/cdrom/Linuxcare_bootable_toolbox_V2.0.raw Linuxcare_bootable_toolbox_V2.0.raw $ touch -r /var/tmp/cdrom/cdrom/Linuxcare_bootable_toolbox_V2.0.raw Linuxcare_bootable_toolbox_V2.0.raw $ ls -albs $ md5sum < Linuxcare_bootable_toolbox_V2.0.raw > Linuxcare_bootable_toolbox_V2.0.raw.md5sum # lvdisplay -v /dev/VG1/LV1 | less # vgextend VG1 /dev/hda19 # vgdisplay -v VG1 | less # pvmove --verbose /dev/hda18 # lvdisplay -v /dev/VG1/LV1 | less $ pwd $ ls -alb $ cat *.md5sum $ md5sum < Linuxcare_bootable_toolbox_V2.0.raw $ cp /var/local/pub/mirrored/cdimage.debian.org/pub/cdimage-testing/sarge_d-i/i386/rc1/sarge-i386-netinst.iso sarge-i386-netinst.iso $ df -k /var/tmp/1 //kdf $ rm sarge-i386-netinst.iso # lvextend -L +64M /dev/VG1/LV1 # lvdisplay -v /dev/VG1/LV1 | less # mount -o remount,resize=`expr 192 '*' 256` /dev/VG1/LV1 //kdf $ df -k /var/tmp/1 $ cp /var/local/pub/mirrored/cdimage.debian.org/pub/cdimage-testing/sarge_d-i/i386/rc1/sarge-i386-netinst.iso sarge-i386-netinst.iso $ touch -r /var/local/pub/mirrored/cdimage.debian.org/pub/cdimage-testing/sarge_d-i/i386/rc1/sarge-i386-netinst.iso sarge-i386-netinst.iso $ df -k /var/tmp/1 // grow, umount, reduce, remount, export, import, ... Questions? Evaluation Sheets collect them