On Wed, 2008-10-22 at 09:09 -0700, Craig White wrote: > On Wed, 2008-10-22 at 11:42 -0400, brian wrote: > > I have a /tmp volume that I'd like to increase. I've been having a look > > at the LVM HOWTO [1] and various other pages online and think I've got > > it figured out. Those being famous last words, I thought I'd check here > > first. > > > > # parted /dev/sda print > > Model: ATA Maxtor 6Y080L0 (scsi) > > Disk /dev/sda: 82.0GB > > Sector size (logical/physical): 512B/512B > > Partition Table: msdos > > > > Number Start End Size Type File system Flags > > 1 32.3kB 107MB 107MB primary ext3 boot > > 2 107MB 82.0GB 81.8GB primary lvm > > > > # df -h > > Filesystem Size Used Avail Use% Mounted on > > /dev/mapper/VolGroup00-LogVol00 > > 19G 4.5G 14G 26% / > > /dev/mapper/VolGroup00-LogVol02 > > 24G 8.5G 14G 38% /home > > /dev/sda1 99M 19M 76M 20% /boot > > tmpfs 744M 0 744M 0% /dev/shm > > /dev/mapper/VolGroup00-LogVol05 > > 4.8G 540M 4.0G 12% /usr/local > > /dev/mapper/VolGroup00-LogVol04 > > 19G 6.3G 12G 35% /var > > /dev/mapper/VolGroup00-LogVol03 > > 961M 18M 894M 2% /tmp > > /dev/mapper/VolGroup00-LogVol06 > > 3.8G 194M 3.4G 6% /opt > > > > > > I'd like to reduce /var first to free up some space, then give that to > > /tmp using: > > > > # umount /var > > # e2fsck -f /dev/VolGroup00/LogVol04 > > # resize2fs /dev/VolGroup00/LogVol04 13G > > # lvreduce -L-6G /dev/VolGroup00/LogVol04 > > # mount /var > > # umount /tmp > > # e2fsck -f /dev/VolGroup00/LogVol03 > > # lvextend -L+6G /dev/VolGroup00/LogVol03 > > # resize2fs /dev/VolGroup00/LogVol03 > > # mount /tmp > > > > Does that ring any alarm bells? > > > > [1] http://www.tldp.org/HOWTO/LVM-HOWTO/ > ---- > I don't know about alarm bells but I would think that you would have to 'lvmove' LogVol04 to make contiguous space for LogVol03 > > frequent usage of things like lvdisplay can give you some good clues on > where things are That was supposed to be the point of LVM. No moving necessary. They are both on the Volume Group, space doesn't have to be contiguous, etc, etc.... I would suggest that when reducing you should use the "same numbers" for both resize2fs and lvreduce. Don't use an absolute number for one and a relative number for the other. As an alternative, that might be easier, why not install "system-config-lvm"? It presents a graphical view of shrinking and enlarging..... --Rob -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines