Jump to content

I just love lvm2


Recommended Posts

I've installing quite a bit of software into /usr lately and just noticed i was running out of space.

 

justin@neo justin $ df -h

Filesystem Size Used Avail Use% Mounted on

/dev/hda3 2.1G 213M 1.8G 11% /

/dev/vg/usr 10G 9.6G 467M 96% /usr

/dev/vg/home 35G 27G 8.8G 76% /home

/dev/vg/opt 5.0G 2.2G 2.9G 43% /opt

/dev/vg/var 5.0G 304M 4.7G 6% /var

/dev/vg/tmp 2.0G 356K 2.0G 1% /tmp

none 378M 0 378M 0% /dev/shm

/dev/sda2 14G 5.3G 8.7G 39% /mnt/ipod

 

 

:oops:

 

Never fear, lvm2 w/ xfs to the rescue.

# lvextend -L15G /dev/vg/usr

# xfs_growfs /usr

 

justin@neo justin $ df -h

Filesystem Size Used Avail Use% Mounted on

/dev/hda3 2.1G 213M 1.8G 11% /

/dev/vg/usr 15G 9.6G 5.5G 64% /usr

/dev/vg/home 35G 27G 8.8G 76% /home

/dev/vg/opt 5.0G 2.2G 2.9G 43% /opt

/dev/vg/var 5.0G 304M 4.7G 6% /var

/dev/vg/tmp 2.0G 336K 2.0G 1% /tmp

none 378M 0 378M 0% /dev/shm

/dev/sda2 14G 5.3G 8.7G 39% /mnt/ipod

 

 

All while she was mounted and emergeing stuff! ;)

 

 

 

No point to this post other than lvm is just good stuff.

 

 

B)

 

 

Edit: moved from Everything Linux by spinynorman

Link to comment
Share on other sites

I have a 200 gb drive, 100 of it is slated for lvm and the rest just sits there and i can pull it into lvm or use it for regular partions or other distros.

 

One of my other systems has 4 36gb scis drives and I currently have two of them under lvm and the others aren't used, but I can bring them into my volume group if i want to add dir or expand the ones i have.

Edited by cybrjackle
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...