amerikanjunkie
various one
Registered: Aug 2000
Location:
Posts: 1731 |
no mdstat = no RAID enabled.
lvdisplay = display status of your logical volumes. You have 2.
/dev/VolGroup00 = your physical volume (the actual raw space). More than one disk may make up a Volume Group. It is only the amount of physcial data that may be logically divided.
LogVol00 and LogVol01 are the logical volumes or storage pools in the physical volume.
*** NOTE: Essentially, a logivcal volume if you havnet already figured it out is a storage pool of space that can grow or shrink on command, may span over several disks which you can add or remove as needed on the fly, without fucking up or with partitions.
Ok, you have two volume groups (as previously mentioned), which are part of one physical storage pool VolGroup00. This is the standard default setup of Fedora or Cent, etc. The 512 MB volume (LogVol01) is your swap space, and LogVol00 is your os, and storage space.
Say I wanted to give your swap space 1 gig. I would first need to get that physical space available. I would do this by taking it away from the storage pool (logvol00):
#lvreduce -L 512M VolGroup00/LogVol00
lvreduce reduces a logical volumegroup size, -L specifices I want to be stupid and enter the number in terms an idiot could understand (thus the: 512M), and then of course the physical volume, and the logical volume group.
Now that this done, you now have 512M Physcial of physical storage available to add to your swap. This doesnt mean you can just go: lvextend -L 512M VolGroup00/LogVol01. This will not do anything. Because there is alread 512M there, you have to specify that you are making that volume 1024M, thus:
#lvextend -L 1024M VolGroup00/LogVol01
Type lvdisplay and WALLA, you have extended your swap space to be one gig in size.
My fingers are tired, if you need to know how to add raw space of a new disk to a physical volume, ask, and ill explain in about a week.
Report this post to a moderator |
IP: Logged
|