- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: "vgreduce" command
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
Forums
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
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
тАО10-22-2001 01:26 PM
тАО10-22-2001 01:26 PM
"vgreduce" command
Basically we have 2 disks that were mirrored with MirrorUX (vgextend + lvextend). To break mirror, lvreduce but cnan not use Vgreduce.
Can any one please provide more help on "vgreduce" command.
Thanks,
Nimesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 01:31 PM
тАО10-22-2001 01:31 PM
Re: "vgreduce" command
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 01:31 PM
тАО10-22-2001 01:31 PM
Re: "vgreduce" command
What steps have you taken thus far, and what error(s) are you seeing?
# lvreduce -m 0 /dev/vgXX/lvolY /dev/dsk/cXtYdZ
...will remove mirrored extents on the disk of the logical volume specified.
# vgreduce /dev/vgXX /dev/dsk/cXtYdZ will eliminate the physical disk specified from the volume group.
Regards!
...JRf...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 01:34 PM
тАО10-22-2001 01:34 PM
Re: "vgreduce" command
"lvreduce" is used to decrease the number of mirrors of a LVOL.
"vgreduce" is used to remove unused disks from a Volume Group.
so after "lvreduce -m 0 /dev/vg01/lvol1" etc, you should check if the disk is unused: "vgdisplay -v /dev/vg01" (or with pvdisplay).
"vgreduce /dev/vg01" will remove unused disk from your VG. "vgreduce /de/vg01 /dev/dsk/cxtxdx" will remove the specified disk.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 01:36 PM
тАО10-22-2001 01:36 PM
Re: "vgreduce" command
Hi,
First use lvreduce break mirror then use vgreduce
lvreduce -m 0 /dev/vg00/lvoln /dev/dsk/cXtYdZ
vgreduce /dev/vg00 /dev/dsk/cXtYdZ
Use vgdisplay -v /dev/vgnn and lvdisplay -v /dev/vgnn/lvolnn for details of the disks and other important informations
Good Luck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-22-2001 08:49 PM
тАО10-22-2001 08:49 PM
Re: "vgreduce" command
Firstly you must make sure that there are no
logical volumes in that group any more that
are on that disk.
# pvdisplay -v /dev/dsk/cXtXdX
If there are you need to remove them using
the lvreduce command prior to using vgreduce.
To remove all mirrors out of your volume group
you could do this.
# for i in /dev/vgxx/lv*
> do
> echo $i
> lvreduce -m 0 $i
> done
Check again that there no logical volumes on
the disk by running the pvdisplay command again,
the run you vgreduce
# vgreduce /dev/vgxx /dev/dsk/cxtxdx
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2001 12:03 AM
тАО10-23-2001 12:03 AM
Re: "vgreduce" command
strings /etc/lvmtab
to find pv to vg grouping
pvdisplay /dev/dsk/cXtYd0
to ensure no Allocated PE for that PV. (you can use a -v if you like to find out which is occupied)
Later,
Bill