Difference between revisions of "User:Orschiro"

From ArchWiki
Jump to: navigation, search
m (Resize the actual file system)
(Short LVM resize guide)
Line 20: Line 20:
 
==Activate the volume group==
 
==Activate the volume group==
 
  # vgchange -ay
 
  # vgchange -ay
==Resize the LVM volume==
 
# lvextend -L 1300M /dev/VolGroup00/Home
 
# lvextend -l +100%FREE VolGroup00/Home
 
  
==Resize the actual file system==
+
==Shrink a LVM volume==
 +
# e2fsck -f /dev/VolGroup00/Home
 +
# resize2fs /dev/VolGroup/Home 180G # Resize to 180G
 +
# lvreduce -L 182G /dev/VolGroup00/Home # Reduce the LVM volume to a bit more than the actual file system size
 +
# resize2fs /dev/VolGroup00/Home # Resize to the remaining size of the LVM volume
 +
 
 +
==Resize a LVM volume==
 +
# lvextend -L 1300M /dev/VolGroup00/Home # Resize by 1300M
 +
# lvextend -l +100%FREE VolGroup00/Home # Resize by the remaining space
 
  # e2fsck -f /dev/VolGroup00/Home
 
  # e2fsck -f /dev/VolGroup00/Home
 
  # resize2fs /dev/VolGroup00/Home
 
  # resize2fs /dev/VolGroup00/Home

Revision as of 19:26, 6 August 2013

Template:Article summary start Template:Article summary text Template:Article summary end

Desktop Cheat Sheet Wallpaper

For quick reference I am using a wallpaper which contains a list of commands for daily use. That allows me to quickly minimise all windows and view the command that I was looking for. The wallpaper is working progress and can be downloaded here.

Packages

I am actively working on the following packages:

For all other packages that I am maintaining, see the AUR.

Short LVM resize guide

I happened to resize my LVM configuration quite often but never can remember the actual steps. The targeted partitions have to be umounted.

Activate the volume group

# vgchange -ay

Shrink a LVM volume

# e2fsck -f /dev/VolGroup00/Home
# resize2fs /dev/VolGroup/Home 180G # Resize to 180G
# lvreduce -L 182G /dev/VolGroup00/Home # Reduce the LVM volume to a bit more than the actual file system size
# resize2fs /dev/VolGroup00/Home # Resize to the remaining size of the LVM volume

Resize a LVM volume

# lvextend -L 1300M /dev/VolGroup00/Home # Resize by 1300M
# lvextend -l +100%FREE VolGroup00/Home # Resize by the remaining space
# e2fsck -f /dev/VolGroup00/Home
# resize2fs /dev/VolGroup00/Home