- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgreduce
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2008 08:46 PM
тАО11-07-2008 08:46 PM
vgreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2008 11:01 PM
тАО11-07-2008 11:01 PM
Re: vgreduce
Use man page for more details
Regards
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2008 05:09 AM
тАО11-08-2008 05:09 AM
Re: vgreduce
what error do you get.?
below are the Generic procedure to remove the vg
vgdisplay ├в v
If all logical volumes are gone from the volume group, remove the volume group
vgreduce
vgremove
rmsf /dev/
strings /etc/lvmtab ├в Make sure disks and volume group are gone
or
vgreduce -l /dev/vg01
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-08-2008 12:29 PM
тАО11-08-2008 12:29 PM
Re: vgreduce
See what man page says,
force reduction of missing physical volume(s) in a
given volume group. This option does not require
a physical volume (PV) to be supplied on the
command line. vgreduce obtains the name of each
physical volume (PV) belonging to the volume group
from the file /etc/lvmtab. It then reads the LVM
structures from each PV and compares these with
that held by the kernel to work out which PVs are
missing. PVs which are missing will be candidates
for removal. If all the physical extents on the
missing PV are free then it will be removed from
the volume group. Otherwise vgreduce will report
the physical to logical extent mapping. For
missing PVs, which have extents in use, you must
free up all the extents by using lvreduce(1M) or
lvremove(1M) and re-run vgreduce with the -f
option. This option is most commonly used when
the vgdisplay(1M) command shows "Cur PV" higher
than "Act PV" and all of the PVs belonging to the
volume group are attached. This option only works
on PVs and not on links.
Thanks
Sen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2009 01:46 AM
тАО01-24-2009 01:46 AM
Re: vgreduce
vgreduce is the command to use for removing of missing PVs from a VG.
Also see man pages!!
Rgards
vjta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2009 02:47 AM
тАО01-24-2009 02:47 AM
Re: vgreduce
sen_ux gave a nice explanation of what vgreduce -f does.
#vgreduce -f /dev/
PVs that are missing shall get removed , u might require to do an lvreduce -m 0 /dev/
#vgreduce -l /dev/vg02 /dev/dsk/c2t5d0
this will remove the missing path PV Links or extrs Alternate links from /etc/lvmatb or /etc/lvmtab_p as LVM supports total 8 paths for a PV ( 1 Prmary and 7 Alternate in LVM V1.0 VGs)
PV links will be removed only if the paths are sensed as missing.
REgards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 03:59 AM
тАО01-26-2009 03:59 AM
Re: vgreduce
Apart from removing the missing PVs(#vgreduce -f /dev/vgXX) and the missing PV Links or paths(#vgreduce -l /dev/vg00
Also this can be used to remove the Existing PV Links that is Alternate Paths to the PVs if wished.
for more can refer to the Manual page of the vgreduce(1M) coammand.
Please do not forget to assign points if the posts made to the thread have been helpful
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 10:36 PM
тАО01-28-2009 10:36 PM
Re: vgreduce
#vgreduce -f "vg name"
#mv /etc/lvmtab /etc/lvmtab.bkp
#vgscan -v
check the lvmtab if a new path is discovered The old missing path is replaced by new path
check the vg status with
vgdisplay -v "vg name"
if you have any error on the new path activate the pv path with the command
#pvchange -a y /dev/dsk/cxtxdx