- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I able to view all the vg's(activated and ...
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
тАО01-16-2010 02:01 AM
тАО01-16-2010 02:01 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 02:23 AM
тАО01-16-2010 02:23 AM
SolutionThis is a good question because if you're using power path the alternates don't get listed in /etc/lvmtab.
Use SAM. Its very reliable. It tells you which is free or being used and in which vg.
As far as activated vgs or unactivated vgs? I'm not sure if SAM gives you this information and aside from comparing mounted file systems to what's in the /etc/fstab file or /dev/*/group listings or /etc/lvmtab I'm not sure.
What happens when you do a vgdisplay -v which should list all vgs? (* don't specify a vg like vgdisplay vg00 *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 02:30 AM
тАО01-16-2010 02:30 AM
Re: How can I able to view all the vg's(activated and non-activated) in a box??
also you can do is vgdisplay command only it will show you all the VGs with the status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-16-2010 02:36 AM
тАО01-16-2010 02:36 AM
Re: How can I able to view all the vg's(activated and non-activated) in a box??
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 03:48 AM
тАО01-17-2010 03:48 AM
Re: How can I able to view all the vg's(activated and non-activated) in a box??
vgdisplay comand will display all active VGs in the system and the standard error output will say about non active vgs
#vgdisplay |grep "VG Name" > /tmp/vgactive
then
#cat /tmp/vgactive will give you the active vgs name
and the standard error will contains details about non-active vgs
You can use the below simple script for finding the status of vgs and vg version
>/tmp/vgstatus
strings /etc/lvmtab |grep /dev |grep -v /dev/disk |grep -v /dev/dsk |while read vgname
do
vgdisplay $vgname |read dummy
if [ "$?" = "0" ] ; then
echo "$vgname" "Active" >>/tmp/vgstatus
else
echo "$vgname" "Non_Active" >>/tmp/vgstatus
fi
done
OSVER=`uname -r`
if [ "$OSVER" = "B.11.31" ] ; then
strings /etc/lvmtab_p |grep /dev |grep -v /dev/disk |grep -v /dev/dsk |while read vgname
do
vgdisplay $vgname |grep "VG Version" |awk '{print $3}' |read version
if [ "$?" = "0" ] ; then
echo "$vgname" "Active" "$version" >>/tmp/vgstatus
else
echo "$vgname" "Non_Active" "2.x" >>/tmp/vgstatus
fi
done
fi
then cat /tmp/vgstatus
regards
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 01:24 PM
тАО01-17-2010 01:24 PM
Re: How can I able to view all the vg's(activated and non-activated) in a box??
# strings /etc/lvmtab
Command vgidsplay will show each VG status
# vgdisplay |egrep "Name|Status"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 05:58 PM
тАО01-17-2010 05:58 PM
Re: How can I able to view all the vg's(activated and non-activated) in a box??
# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
LV Name /dev/vg00/lvol3
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c1t0d0
PV Status available
Total PE 4340
Free PE 134
Autoswitch On
Proactive Polling On
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 01:04 AM
тАО01-18-2010 01:04 AM
Re: How can I able to view all the vg's(activated and non-activated) in a box??
Appreciate for asking this question as many of us need some pin points to find out the free disk from many/alt path.
I am doing the below tasks to know the same not sure the easiness of this.
1. ioscan -fnC disk
2. pick up the disk you need or you want to check up
3. cross check it on # strings /etc/lvmtab | grep -i c#t#d#
4. vgdisplay -v | grep -i c#t#d#
5.pvdisplay /dev/dsk/c#t#d# <--It shows you the PE that are there in total as wellas used.
6.If you see the disk is not used, it can be usable now for you.
I know it is hard to go on but better way has to get from the GREAT GURUs....waiting :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 01:25 AM
тАО01-18-2010 01:25 AM
Re: How can I able to view all the vg's(activated and non-activated) in a box??
>>Appreciate for asking this question as many of us need some pin points to find out the free disk from many/alt path.
>>I am doing the below tasks to know the same not sure the easiness of this.
If you are picking a disk which is an alternate path for a PV that is being used in one of the VG and that vg is not extended to the alternate path(that you picked) , you will end up being with wrong assumption as the pvdisplay on that alternate path will report that it is not part of any VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 01:31 AM
тАО01-18-2010 01:31 AM
Re: How can I able to view all the vg's(activated and non-activated) in a box??
Please run vgdisplay command thne you will get the information of all activated VGs.
< The vgdisplay command displays information about volume groups. For each vg_name specified, vgdisplay displays information for that volume group only. If no vg_name is specified, vgdisplay displays names and corresponding information for all defined volume groups.>
Regards,
Prasanth Thomas.