Operating System - HP-UX
1834781 Members
2889 Online
110070 Solutions
New Discussion

New disks and volume groups

 
SOLVED
Go to solution
enrico.nic
Regular Advisor

New disks and volume groups

Hi all,

After having tried to add a few new disks to an HP9000 D380, I am trying to configure 3 old, functioning disks in an external HP box.
The problem comes out creating the new volume groups: I have 2 "old" disks on this machine, namely /dev/vg00 and /dev/vg01.
The /etc/lvmtab file has this devices:

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t5d0
/dev/vg01
/dev/dsk/c0t9d0
/dev/vg02
/dev/dsk/c1t3d0

If I try to create /dev/vg02, the system answers with "existing device".
If I try to remove /dev/vg02, I obtain
# vgremove /dev/vg02
vgremove: Volume group not activated.
If I try to activate /dev/vg02, I obtain an error since the device doesn't exhist anymore.
At last, I tried to create /dev/vg03, obtaining a new error:
vgcreate: Minor number of /dev/vg03/group is not unique.
/dev/vg04/group has the same minor number.

Can anybody please give me a suggestion on how to delete safely a volume group ?

Please help

Thank you

Enrico

7 REPLIES 7
melvyn burnard
Honored Contributor
Solution

Re: New disks and volume groups

try using vgexport vg02
Do not export vg00 though ;-]
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Robert-Jan Goossens_1
Honored Contributor

Re: New disks and volume groups

Hi Enrico,

# vgexport /dev/vg02

will remove the volume group.

Best regards,
Robert-Jan
Leif Halvarsson_2
Honored Contributor

Re: New disks and volume groups

Hi,
Try the vgexport command.
Sudeesh
Respected Contributor

Re: New disks and volume groups

Use vgexport to remove vg02 entry from lvmtab.

Do a ll /dev/vg*/group to see all the used minor number.

crw-r----- 1 root sys 64 0x000000 Jul 4 11:09 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x010000 Jul 5 06:50 /dev/vg01/group
crw-rw-rw- 1 root sys 64 0x020000 Jul 6 11:13 /dev/vg02/group

Sixth column show the minor number.


Sudeesh
The most predictable thing in life is its unpredictability
Jino.P.V
Frequent Advisor

Re: New disks and volume groups

Hi Enrico,

You can use vgexport to remove a volumegroup when the disk is not present. Other command like vgremove will not work as the physical disk is not there.

If you have reduced the VG from those disk which you have removed, you should have removed the vg directory from the /dev directory

Eg: #rm -ir /dev/vg01
So please check is there any VG directory present in /dev directory other than VG00.

hope this may help


Jino
Mahesh Kumar Malik
Honored Contributor

Re: New disks and volume groups

Hi Enrico

Use vgexport to remove the desired volume group

Regards
Mahesh
enrico.nic
Regular Advisor

Re: New disks and volume groups

Thank you for all the answers

Problem solved, after removing the /dev/vg02 group all of the VG creations have been done.

Enrico