02-19-2015
Well, the big question is "Is your VM provided volume defined as an LVM device or set up to give fixed partitions?"
If the filesystem is an LVM filesystem and you have got the space into your volume group, then using
lvextend should do the job. If you use the
-r flag then it will alter the filesystem when you resize the logical volume.
If you filesystem is on a fixed slice of disk, then I think you are stuck with it. You would need to do something like this:-
- Define the new disk or slice as an LVM Physical Volume
- Create a volume group using this PV
- Create a logical volume of at least 500Gb in the volume group
- Format the logical volume as a filesystem.
- Mount the filesystem & move the data
- Edit /etc/fstab to point to the new filesystem to be mounted
- Unmount the original filesystem
- Unmount the new filesystem and remount it to the correct location
- Destroy the original filesystem/disk/slice
- Define the original disk as an LVM PV
- Extend the volume group by adding this disk/slice
You are now able to use
extendlv as described above. What do you have defined?
If your server is actually a single filesystem, then we're in more trouble.
Can you share the contents of
/etc/fstab for a starter?
Robin
Last edited by rbatte1; 02-19-2015 at 10:07 AM..
Reason: Removed unecessary blank lines
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Now, i know a ufs file system can be increased using mkfs but hwo do I take space from a file system and add it to another file system? at my job here, that seems to be possible because I see request on it almost every day.
what is the exact command to do this and does the system need to be... (1 Reply)
Discussion started by: TRUEST
1 Replies
2. UNIX for Dummies Questions & Answers
Hello all
Can someone tell me I am running a script and the outputs directory is too small to contain the newly created file as a result of this script. How can I increase the directory size?
Thanks (9 Replies)
Discussion started by: jonest
9 Replies
3. AIX
Hi Everybody,
I have AIX 4.3 and I have a FileSystem with 400GB size, which called /db/run. Because of grow up of the application's data, more storage has been added 200GB. To add this space without affecting the application & the application's requirements, I have to add this 200GB to the existed... (9 Replies)
Discussion started by: aldowsary
9 Replies
4. HP-UX
Hi Experts,
I am not sure whether my question should be in this thread or some other one. I am using HP Tru64 system.
Currently one of my filesystem /others is almost full. I need to know the exact commands to increase this filesystem. Please show me how to check for free partitions and add... (5 Replies)
Discussion started by: kingsto88
5 Replies
5. HP-UX
We increased our server's RAM 8 -> 32 GB RAM. swap memory is currently 10 GB. With which command I can increase this memory? (1 Reply)
Discussion started by: akyuceisik
1 Replies
6. AIX
hi
Im using AIX4.3. Through smit I tried to increase the size of a directory. I changed 10,000 blocks more but finally i got 524288 blocks more. That is
before change : 12582912 blocks
I have tried for change: 12592912 blocks
then i execute smit.
But finally I got: ... (3 Replies)
Discussion started by: sumanbangladesh
3 Replies
7. AIX
Hello,
Does HACMP have bugs ? I have version 5.4 on AIX 6.1 and when I try to increase filesystem space or logical volume partitions which are under HACMP VG it gives me error:
# lsvg
rootvg
pr0oravg
px0oravg
pb0oravg
pr0sapvg
px0sapvg
pb0sapvg
pr1_pr2_vg
pr2_px1_vg
#
#... (11 Replies)
Discussion started by: filosophizer
11 Replies
8. AIX
Hi guys,
I want to increase my ./usr or just one path in my aix6.1 machine.
currently if I
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00f6126500004c00000 0012aef0c9035
VG STATE: active PP SIZE: 128... (2 Replies)
Discussion started by: pilotHans
2 Replies
9. Solaris
Hi All,
I have got a RAID 5 SVM in my Solaris Box. Recently we had performance issues with it. So SUN has told us to increase the interlace size to 128k.
how can we do it so that we have to recreate the RAID 5. ALso guide what are all the pre cautions that we need to take before doing... (1 Reply)
Discussion started by: jegaraman
1 Replies
10. AIX
Hi Friends,
I have a problem while increasing the fileystem. Actually the filesystem is 256 gb
and i have to add another 256 gb.So i got a new lun(hdisk) with 256 gb.
I added to the vg using the extendvg command.
It was successfully added, and when i checked the free pp's in vg it was showing... (4 Replies)
Discussion started by: Mohamed Thamim
4 Replies
LVEXTEND(8) System Manager's Manual LVEXTEND(8)
NAME
lvextend - extend the size of a logical volume
SYNOPSIS
lvextend [--alloc AllocationPolicy] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--noudevsync] [-i|--stripes Stripes [-I|--stripesize
StripeSize]] {-l|--extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}] | -L|--size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]}
[-f|--force] [-n|--nofsck] [-r|--resizefs] [-t|--test] [-v|--verbose] LogicalVolumePath [PhysicalVolumePath[:PE[-PE]]...]
DESCRIPTION
lvextend allows you to extend the size of a logical volume. Extension of snapshot logical volumes (see lvcreate(8) for information to cre-
ate snapshots) is supported as well. But to change the number of copies in a mirrored logical volume use lvconvert(8).
OPTIONS
See lvm for common options.
--noudevsync
Disable udev synchronisation. The process will not wait for notification from udev. It will continue irrespective of any possible
udev processing in the background. You should only use this if udev is not running or has rules that ignore the devices LVM2 cre-
ates.
-l, --extents [+]LogicalExtentsNumber[%{VG|LV|PVS|FREE|ORIGIN}]
Extend or set the logical volume size in units of logical extents. With the + sign the value is added to the actual size of the
logical volume and without it, the value is taken as an absolute one. The number can also be expressed as a percentage of the total
space in the Volume Group with the suffix %VG, relative to the existing size of the Logical Volume with the suffix %LV, of the
remaining free space for the specified PhysicalVolume(s) with the suffix %PVS, as a percentage of the remaining free space in the
Volume Group with the suffix %FREE, or (for a snapshot) as a percentage of the total space in the Origin Logical Volume with the
suffix %ORIGIN. The resulting value is rounded upward.
-L, --size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
Extend or set the logical volume size in units of megabytes. A size suffix of M for megabytes, G for gigabytes, T for terabytes, P
for petabytes or E for exabytes is optional. With the + sign the value is added to the actual size of the logical volume and with-
out it, the value is taken as an absolute one.
-i, --stripes Stripes
Gives the number of stripes for the extension. Not applicable to LVs using the original metadata LVM format, which must use a sin-
gle value throughout.
-I, --stripesize StripeSize
Gives the number of kilobytes for the granularity of the stripes. Not applicable to LVs using the original metadata LVM format,
which must use a single value throughout.
StripeSize must be 2^n (n = 2 to 9)
-f, --force
Proceed with size extension without prompting.
-n, --nofsck
Do not perform fsck before extending filesystem when filesystem requires it. You may need to use --force to proceed with this
option.
-r, --resizefs
Resize underlying filesystem together with the logical volume using fsadm(8).
Examples
"lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3" tries to extend the size of that logical volume by 54MB on physical volume /dev/sdk3. This is
only possible if /dev/sdk3 is a member of volume group vg01 and there are enough free physical extents in it.
"lvextend /dev/vg01/lvol01 /dev/sdk3" tries to extend the size of that logical volume by the amount of free space on physical volume
/dev/sdk3. This is equivalent to specifying "-l +100%PVS" on the command line.
"lvextend -L+16M vg01/lvol01 /dev/sda:8-9 /dev/sdb:8-9"
tries to extend a logical volume "vg01/lvol01" by 16MB using physical extents /dev/sda:8-9 and /dev/sdb:8-9 for allocation of extents.
SEE ALSO
fsadm(8), lvm(8), lvcreate(8), lvconvert(8), lvreduce(8), lvresize(8), lvchange(8)
Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) LVEXTEND(8)