- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Steps to remove a volume-group manually
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
03-15-2001 12:25 AM
03-15-2001 12:25 AM
Steps to remove a volume-group manually
I had a defect external raid. I took it from the system without exporting the volume
group.
Now the raid is ok again, and I want to add
it again to the system from scratch.
If I try to create the vg01 again, I see
this error message
vgcreate /dev/vg01 /dev/dsk/c0t2d0
Increased the number of physical extents per physical volume to 24465.
vgcreate: Volume group "/dev/vg01" could not be created:
A volume group is already using this major and minor number.
Please check the minor number of the "group" device file.
Now my question. Where is the info located
that a volume group uses this major and
minor number ? Can I delete this info
regards
L. Wahl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2001 12:34 AM
03-15-2001 12:34 AM
Re: Steps to remove a volume-group manually
1. strings /etc/lvmtab
Note: Check /dev/vg*/group and verify that there are no
duplicate major or minor numbers.
2. Display all the groups to verify that there are no duplicate
minor numbers:
ll /dev/*/group
3. Verify that /dev/vg does not contain any duplicate major or
minor numbers:
ll /dev/vg*
4. mkdir /dev/vg9g
5. mknod /dev/vg9g/group c 64 0x020000
6. vgcreate /dev/vg9g /dev/dsk/c2t3d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2001 01:28 AM
03-15-2001 01:28 AM
Re: Steps to remove a volume-group manually
I would add after Alex, you may once verified that there is no more refs in lvmtab, vgXXgroup etc... still have at vgcreate a message saying your disk is already affected to a volume group, if it is the case you will have to follow Alex's for the check and recreate the vg but I would after the check, if you have changed your dik config (added or changed size or...) remove the old devices.
cd /dev/dsk chose the disks and remove them:
rmsf -a -D /dev/dsk c4t4d0 c4t4d1 c4t4d2 c5t4d0 c5t4d1 c5t4d2
cd ../rdsk
rmsf -a -D /dev/rdsk c4t4d0 c4t4d1 c4t4d2 c5t4d0 c5t4d1 c5t4d2
do an ioscan:
#ioscan
then
#insf -e
check your disks are the as claimed
#ioscan -fnC disk
And this is the important one if the disk have already been used in LVM on the system, and will give you the mentioned above message force the pvcreate:
#pvcreate -f /dev/rdsk/c6t0d2 ...
Then you can mkdir the group, mknod and finally vgcreate this time normally without any trouble
Now with Alex's note you have all the how to
Good luck
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2001 01:59 AM
03-15-2001 01:59 AM
Re: Steps to remove a volume-group manually
other static information in
/etc/lvmconf/
on the volume group.
This info is there after the vgcfgbackup
command executes (after every vg change)
and is usefull for rescuing/recovering
volume group structures when a disk fails.
To best move a volume group, umount all
filesystems on it.
Type mount to see which,
Then vgchange -a n vg0X
to disactivate the vg
then vgexport vg0X
I find that vgexport always works even
when vgremove doesn't!
There is a pvremove command recently introduced
to clear the pvras from the disks that'll
still remain there after getting rid of
the vgra using vgremove.. however a dd of
your kernel over the disk device file does the
same!
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 02:45 AM
04-02-2001 02:45 AM
Re: Steps to remove a volume-group manually
A litle late but tried to resolve my own problem that was alike your's. But I wasn't able to succeed.
What solved the case was the following;
-Used a new major number for the group file (previos 0x020000, recreated as 0x220000)
This because the major and minor number are stored in the kernel in memory. So as well a reboot might have resolved the case, but that was out of the question on my system.
Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2001 05:36 AM
04-02-2001 05:36 AM
Re: Steps to remove a volume-group manually
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2001 07:18 AM
04-03-2001 07:18 AM
Re: Steps to remove a volume-group manually
regards
L. Wahl