HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem to vgsacn and vgdisplay
Operating System - HP-UX
1829914
Members
1660
Online
109993
Solutions
Forums
Categories
Company
Local Language
back
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
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-05-2005 02:53 PM
10-05-2005 02:53 PM
When I use the vgdisplay command to view the information about LV, it always display the error
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01"
There are 2 logical volumes in my system before but recently one of them is removed, so that I run vgscan command to re-creation of the /etc/lvmtab file and possibly the associated volume group device files. But the case is still exist.
Also I use the set_parms hostname command to change host name. But now I don't know why everytime when the system is reboot, the hostname will restore the previous one. Then I try to use the same command to change it manually, but it shows the correct one.
Do anyone know what happens in my 2 case?
Thanks you for your help
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01"
There are 2 logical volumes in my system before but recently one of them is removed, so that I run vgscan command to re-creation of the /etc/lvmtab file and possibly the associated volume group device files. But the case is still exist.
Also I use the set_parms hostname command to change host name. But now I don't know why everytime when the system is reboot, the hostname will restore the previous one. Then I try to use the same command to change it manually, but it shows the correct one.
Do anyone know what happens in my 2 case?
Thanks you for your help
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 03:02 PM
10-05-2005 03:02 PM
Solution
Hi,
The 2 logical volumes you are mentioning are infact physical volumes you are talking about.
The reason for the error is that your VG has one missing disk which is not allowing it to get activated.
Try this
#vgchange -a y -q n /dev/vg01
No vgdisplay and vgscan will work but will give missing volume error during vgscan.
Once VG is activated and you are sure that everything is fine and you are able to mount file systems, remove the information related to second disk from the VG to avoid this on next reboot.
For this find out missing disk from "strings /etc/lvmtab". It should be current lvmtab or its copy.
#vgreduce /dev/vg01 /dev/dsk/cxtydz
(Where /dev/dsk/cxtydz was the disk removed from the VG)
If this does not work as the disk is currently missing then try
#vgreduce -f /dev/vg01
Now again try vgscan.
HTH,
Devender
The 2 logical volumes you are mentioning are infact physical volumes you are talking about.
The reason for the error is that your VG has one missing disk which is not allowing it to get activated.
Try this
#vgchange -a y -q n /dev/vg01
No vgdisplay and vgscan will work but will give missing volume error during vgscan.
Once VG is activated and you are sure that everything is fine and you are able to mount file systems, remove the information related to second disk from the VG to avoid this on next reboot.
For this find out missing disk from "strings /etc/lvmtab". It should be current lvmtab or its copy.
#vgreduce /dev/vg01 /dev/dsk/cxtydz
(Where /dev/dsk/cxtydz was the disk removed from the VG)
If this does not work as the disk is currently missing then try
#vgreduce -f /dev/vg01
Now again try vgscan.
HTH,
Devender
Impossible itself mentions "I m possible"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 04:01 PM
10-05-2005 04:01 PM
Re: Problem to vgsacn and vgdisplay
Check your setup parameter in /etc/lvmrc file, it should look like follow:
AUTO_VG_ACTIVATE=1, if not like this it means
your automatic volume group activation is disabled.
AUTO_VG_ACTIVATE=1, if not like this it means
your automatic volume group activation is disabled.
Kamal Mirdad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2005 03:01 AM
10-07-2005 03:01 AM
Re: Problem to vgsacn and vgdisplay
make sure the hostname is changed in file "/etc/rc.config.d/netconf"
Check the following lines
HOSTNAME="xxxxxxxx"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
Also the hostname is changed in /etc/hosts file too. If both files have the correct hostname and reboot the server the problem should be resolved. This is what i do all the time and is 100% success.
Check the following lines
HOSTNAME="xxxxxxxx"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
Also the hostname is changed in /etc/hosts file too. If both files have the correct hostname and reboot the server the problem should be resolved. This is what i do all the time and is 100% success.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP