- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: remove volume group
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
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
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
05-23-2002 10:50 PM
05-23-2002 10:50 PM
remove volume group
i had external hard disk on my system and volume group vg01 was created on that
.
now that disk crashed, i add another disk in place of that, and i want to
include that disk in vg01
but this is not happening message comes that vg01 already exist.
when i try to remove vg01 , message comes "Volume group not
activated"
when i try to remove logical volume , it gives error as " volume group not found
. couldn't query physical volume "/dev/dsk/c5t4d0 "
how can i remove previous logical volume and further volume group
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 10:57 PM
05-23-2002 10:57 PM
Re: remove volume group
hi
so u want to remove vg01.
If your r creating vg01 (fresh ) on the new disk first u remove the vg01
# vgexport /dev/vg01 will remove the entry in /etc/lvmtab
then create new vg ( vg01 ) on new disk
CTK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 10:59 PM
05-23-2002 10:59 PM
Re: remove volume group
If there was only one disk in the vg01 volumegroup you can safely use the following command to remove the volumegroup.
# vgexport /dev/vg01
Later start afresh for creating the new volumegroup.
-Sukant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 11:01 PM
05-23-2002 11:01 PM
Re: remove volume group
Have a read of the attached
Regards
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 11:02 PM
05-23-2002 11:02 PM
Re: remove volume group
vgexport /dev/dsk/vgxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 11:04 PM
05-23-2002 11:04 PM
Re: remove volume group
If I understand what you say, you changed the disk without removing the vg01 ?
So you can't activate the vg01 neither remove it, the only way is to export it :
# vgexport vg01
Then you will have to create it on the new disk
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2002 11:10 PM
05-23-2002 11:10 PM
Re: remove volume group
# /usr/sbin/vgexport /dev/vg01
When creating you new volume group assuming it is /dev/vg01 you will need to do a force create on the disk(s) as such because doing a 'vgexport' does not wipe the disk.
# /usr/sbin/pvcreate -f /dev/rdsk/cxtydz
HTH
~Michael~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2002 05:57 AM
05-24-2002 05:57 AM
Re: remove volume group
You need to export the volume group from the system first
vgexport /dev/vg01
After that you can
pvcreate /dev/rdsk/c*t*d* on the new disk
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate /dev/vg01 /dev/dsk/c*t*d*
Then you can create logical volumes using lvcreate
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2002 12:41 AM
05-31-2002 12:41 AM
Re: remove volume group
If the disk not accessible, you can???t export the volumegroup with vgexport. Please, try the following.
mv /etc/lvmtab /etc/lvmtab.backup
vgscan
vgscan rebuilt the /etc/lvmtab. After this the old devicefile should not include the lvmtab. You can control this with strings ???/etc/lvmtab???. You can try the option ??????a??? of the vgscan command.
But read the manpage first and make a backup of the lvmtab.
Bye