1751687 Members
4422 Online
108781 Solutions
New Discussion юеВ

DiskArray

 
SOLVED
Go to solution
shaikh_mahaboob
Frequent Advisor

DiskArray

HI

I have small proble while creating Volumegroup VG01 the error is VG01 unable to create Already exist in lvmtab file. how to remove this .

Thanks
Shaikh
Exchange
10 REPLIES 10
Vincent Farrugia
Honored Contributor
Solution

Re: DiskArray

Hello,

Try recreating /etc/lvmtab... vg01 is still recorded there for some reason.

1. Backup /etc/lvmtab
mv /etc/lvmtab /etc/lvmtab.old
2. Recreate it
vgscan -v

HTH,
Vince
Tape Drives RULE!!!
shaikh_mahaboob
Frequent Advisor

Re: DiskArray

Hi

Thanks for u r help

Thanks
shaikh




Exchange
shaikh_mahaboob
Frequent Advisor

Re: DiskArray

HI
I got this message when i runn the vgscan -v command, please let me now what will i do.



Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c0t0d0
/dev/dsk/c0t0d1
/dev/dsk/c0t0d2
/dev/dsk/c0t0d3
/dev/dsk/c0t0d4
/dev/dsk/c0t0d5
/dev/dsk/c0t0d6
/dev/dsk/c0t0d7


/dev/vg00
/dev/dsk/c0t5d0
/dev/dsk/c0t8d0


Scan of Physical Volumes Complete.
*** LVMTAB has been created successfully.
*** If PV links are configured in the system.
*** Do the following to resync information on disk.
*** #1. vgchange -a y
*** #2. lvlnboot -R



Thanks
Shaikh
Exchange
Joaquin Gil de Vergara
Respected Contributor

Re: DiskArray

run

# vgimport vgtest /dev/dsk/c0t0d0 /dev/dsk/c0t0d1 /dev/dsk/c0t0d2 /dev/dsk/c0t0d3 /dev/dsk/c0t0d4 /dev/dsk/c0t0d5 /dev/dsk/c0t0d6 /dev/dsk/c0t0d7

this import the disk in a VG

Teach is the best way to learn
shaikh_mahaboob
Frequent Advisor

Re: DiskArray

Hi

This command is asking Options Please tell me which option i need to use



# vgimport
Usage: vgimport
[-p]
[-v]
[-s]
[-m MapFile]
VolumeGroupName PhysicalVolumePath...
More arguments required.

Thanks
Shaikh
Exchange
Joaquin Gil de Vergara
Respected Contributor

Re: DiskArray

probably you separate the parameters with an enter

you must put

# vgimport

if the command line is very long use the backslass (\) character before the enter character

after import the vg you must to activate it

# vgchange -a y vgtest
Teach is the best way to learn
shaikh_mahaboob
Frequent Advisor

Re: DiskArray

Hi

Do i need to run this command.

Thanks
Shaih
Exchange
Joaquin Gil de Vergara
Respected Contributor

Re: DiskArray

this redo the VG structure that previously you delete

the disks

/dev/dsk/c0t0d0
/dev/dsk/c0t0d1
/dev/dsk/c0t0d2
/dev/dsk/c0t0d3
/dev/dsk/c0t0d4
/dev/dsk/c0t0d5
/dev/dsk/c0t0d6
/dev/dsk/c0t0d7

belong to 8 LUNs defined in a disk array (dx is LUN number!). When you run the vgscan command, HP-UX notes that you have 8 disks belonging to an vg but the vg is not defined. To restore it you must to create vg control archive (/dev/vgtest/group) charactyer type, major number 64 and a exclusive minor number. Then you can import it and activate it... vg is now ready to use and mount their lvs

if you want to remove it you must first to eliminate all lvs with the lvremove command. Then you must to exclude disks from vg (vgreduce vgtest ). When only one disk belongs to vg you can remove it.... (vgremove vgtest)

note that this procedure delete vg data.... vgexport only delete info related to this vg

hope that this help you
Teach is the best way to learn
Vincent Farrugia
Honored Contributor

Re: DiskArray

Hello,

Actually, I think that the error you got means nothing. lvmtab was created successfully. It just means that there are some disks which do not have any VGs attached to. Do you have a disk system (like a HASS array or an SC10) which you are yet to configure (maybe putting them in vg01?)

HTH,
Vince
Tape Drives RULE!!!