^^No its not the case i want to reduce the size of harddisk (I mean virtual harddisk for e.g vmdk file in vmware ,img file in Oracle VM).
I m using Oracle VM 2.2.
There is one more issue now.
I somehow managed to reduce the size of virtual disk from 200 to 150 but i dont see any changes.
Code:
# fdisk -l
Disk /dev/xvda: 13.3 GB, 13316728320 bytes
255 heads, 63 sectors/track, 1619 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 12 96358+ 83 Linux
/dev/xvda2 13 1357 10803712+ 83 Linux
/dev/xvda3 1358 1619 2104515 82 Linux swap / Solaris
Disk /dev/xvdb: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvdb1 1 26108 209712478+ 5 Extended
/dev/xvdb5 1 26108 209712447 8e Linux LVM
Disk /dev/xvdb is changed from 161.0 GB from 200GB.
but still vgdisplay is showing 200GB????
Code:
# vgdisplay
--- Volume group ---
VG Name vg00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 6
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 200.00 GB
PE Size 4.00 MB
Total PE 51199
Alloc PE / Size 25600 / 100.00 GB
Free PE / Size 25599 / 100.00 GB
VG UUID NL5ws1-uaxQ-Wmtm-75GZ-WnQX-S7Vd-XeHJuS
---------- Post updated at 04:20 AM ---------- Previous update was at 04:14 AM ----------
Code:
# pvscan
PV /dev/xvdb5 VG vg00 lvm2 [200.00 GB / 100.00 GB free]
Total: 1 [200.00 GB] / in use: 1 [200.00 GB] / in no VG: 0 [0 ]
If you notice the above output /dev/xvdb5 is showing 200gb but actually it is 150 gb only
Hi,
I have the following problem.
I just have a new machine with mirroring. The logical volume for /opt is dimensionned to 75 GB which is to much. I want a volume of 10 GB. How can I reduce the size ?
I tried to reduce the size of the slice from 75 GB to 10 GB, but the size of the logical volume... (6 Replies)
Hello,
Can somebody please help.
I'm able to view volume groups by using the command "lsvg", how can I view what space is available to that particular volume group
Many Thanks (3 Replies)
Hi Friends-
We know that the Max PP size in a Normal VG and Big VG is 1 GB and in case of scalable VG it is 128 G.
My Questions:
1) What is the min PP size allowed for Normal VG, Big VG and Scalable VG?
2) Why is the max PP Size in Normal and Big VG is 1 G and 128 G in... (1 Reply)
We want to deactivate a VG but failed, because one of the LVs created there is busy. When we are trying to unmount the LV, it is telling "not mounted" and if I execute mount command it will be informing us "already mounted". dmsetup info is indicating "Open Count = 1".
Please help me, how we... (5 Replies)
Hi I have hp-ux 10.20
I have have my operating system VG of 7 GB in a 36Gb disk. So I have like 29GB of unused disk space. There is any way to increase my VG size, or to add another VG in the same disk so I can use all the disk space?
Another question, what is the maximun size that a VG can ... (10 Replies)
Would some help me on this below
I am trying to extend file system on AIX and however unable to extend the file system.
0516-306 extendvg: Unable to find physical volume 20 in the Device
Configuration Database.
0516-321 extendvg: Physical volume u01-lv is not configured.
0516-792... (15 Replies)
Dear Expret,
Help me about my issue,
I trying add new disk to volume Group but error:
step add new disk to volume group.
1. ~Change a Volume Group
Add a Physical Volume to a Volume Group
Remove a Physical Volume from a Volume Group
Reorganize a Volume Group... (6 Replies)
hello, i am running an AIX6.1 machine and i am trying to restore a volume group that i backed up using mkvgdata command from another server. although i checked file .data and i make sure that PP size for this volume group is 128, when i run restvg command to restore it, it fails because it... (2 Replies)
Hello guys,
I would like to ask you kindly if you don't know some quick and safe method how to shrink ext4 filesystem and reduce the size of a Logical Volume in Linux, please?
Thank you very much. (2 Replies)
Discussion started by: los_bandidos
2 Replies
LEARN ABOUT SUNOS
vgreduce
VGREDUCE(8) System Manager's Manual VGREDUCE(8)NAME
vgreduce - reduce a volume group
SYNOPSIS
vgreduce [-a|--all] [-A|--autobackup y|n] [-d|--debug] [-h|-?|--help] [--removemissing] [-t|--test] [-v|--verbose] VolumeGroupName [Physi-
calVolumePath...]
DESCRIPTION
vgreduce allows you to remove one or more unused physical volumes from a volume group.
OPTIONS
See lvm for common options.
-a, --all
Removes all empty physical volumes if none are given on command line.
--removemissing
Removes all missing physical volumes from the volume group, if there are no logical volumes allocated on those. This resumes normal
operation of the volume group (new logical volumes may again be created, changed and so on).
If this is not possible (there are logical volumes referencing the missing physical volumes) and you cannot or do not want to remove
them manually, you can run this option with --force to have vgreduce remove any partial LVs.
Any logical volumes and dependent snapshots that were partly on the missing disks get removed completely. This includes those parts
that lie on disks that are still present.
If your logical volumes spanned several disks including the ones that are lost, you might want to try to salvage data first by acti-
vating your logical volumes with --partial as described in lvm (8).
SEE ALSO lvm(8), vgextend(8)Sistina Software UK LVM TOOLS 2.02.95(2) (2012-03-06) VGREDUCE(8)