LVM resize sanity check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux