Operating System - HP-UX
1752842 Members
3683 Online
108789 Solutions
New Discussion юеВ

vgimport error "not a directory"

 
SOLVED
Go to solution
GerGon
Regular Advisor

vgimport error "not a directory"

Hi gurus...

I try to do a vgimport but there is a problem
1fst a do a mkdir /dev/vgdatos
2nd mknod /dev/vgdatos/group c 64 0x010000
3th
[root@caribe]/dev/vgdatos> vgimport -v -m /disco36pacifico /dev/dsk/c2t0d0
Beginning the import process on Volume Group "/dev/dsk/c2t0d0".
vgimport: Cannot open the control file "/dev/dsk/c2t0d0/group":
Not a directory
[root@caribe]/dev/vgdatos> cd ..
[root@caribe]/dev> find ./ -name group -print
./vg00/group
./vgdatos/group
[root@caribe]/dev> ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Oct 10 2002 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x010000 May 25 10:52 /dev/vgdatos/group


What I skip or What can I do?
29 REPLIES 29
melvyn burnard
Honored Contributor
Solution

Re: vgimport error "not a directory"

you have left out the vgname from the command
try
vgimport -v -m /disco36pacifico vgdatos /dev/dsk/c2t0d0

from the man page

/usr/sbin/vgimport [-m mapfile] [-p] [-v] [-f infile] vg_name dev_path
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
erics_1
Honored Contributor

Re: vgimport error "not a directory"

try...

vgimport -m /disco36pacifico vgdatos /dev/dsk/c2t0d0

That should do it.

Regards,
Eric
Devender Khatana
Honored Contributor

Re: vgimport error "not a directory"

Hi,

Yes as Melvyn suggested you have not specified vgname in command and it is taking disk device file as vgname which does not exit.

HTH,
Devender
Impossible itself mentions "I m possible"
GerGon
Regular Advisor

Re: vgimport error "not a directory"

Thanks to all...

It alreday executed, there are some wear follow the command:
[root@caribe]/dev> vgimport -v -m /disco36pacifico vgdatos /dev/dsk/c2t0d0
Beginning the import process on Volume Group "vgdatos".
vgimport: Warning: Volume Group belongs to different CPU ID.
Can not determine if Volume Group is in use on another system. Continuing.
vgimport: Warning: Volume Group contains "0" PVs, "1" specified. Continuing.
vgimport: Quorum not present, or some physical volume(s) are missing.
Logical Volume is not defined on any physical volume.
"/dev/vgdatos/lvdatos" is missing Physical Volumes.
Logical Volume is not defined on any physical volume.
"/dev/vgdatos/lvcoolbk" is missing Physical Volumes.
Volume group "/dev/vgdatos" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
Devender Khatana
Honored Contributor

Re: vgimport error "not a directory"

Hi,

It means the VG was spanning across more that one disk which you are mentioning in vgimport. Is it a shared VG ?

Try giving all disks as argument. Also as it has allready been created try to activate with
#vgchange -a y -q n /dev/vgdatos
#vgdisplay -v /dev/vgdatos to see the config imported for verification.

HTH,
Devender
Impossible itself mentions "I m possible"
GerGon
Regular Advisor

Re: vgimport error "not a directory"

I jut try to activete but:
[root@caribe]/dev> vgchange -a y /dev/vgdatos
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t0d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vgdatos":
Quorum not present, or some physical volume(s) are missing.

[root@caribe]/dev> ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 1 0/0/1/1.2.0 sdisk CLAIMED DEVICE SEAGATE ST318404LC
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 4 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 36.4GATLAS10K3_36_SCA
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/0/2/0.2.0 sdisk CLAIMED DEVICE FUJITSU MAJ3182MC
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 0 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
GerGon
Regular Advisor

Re: vgimport error "not a directory"

Khatana, it does not work
[root@caribe]/dev> vgchange -a y -q n /dev/vgdatos
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c2t0d0":
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c2t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vgdatos":
Quorum not present, or some physical volume(s) are missing.

[root@caribe]/dev> vgdisplay -v /dev/vgdatos
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vgdatos".
[root@caribe]/dev>
Devender Khatana
Honored Contributor

Re: vgimport error "not a directory"

Hi,
Try to run diskinfo on this disk. If it is OK it will display some information of disk size.

#diskinfo -v /dev/rdsk/c2t0d0

Output from my server.

server1:/dev/dsk>>diskinfo -v /dev/rdsk/c0t6d0
SCSI describe of /dev/rdsk/c0t6d0:
vendor: HP 73.4G
product id: ST373307LC
type: direct access
size: 71687369 Kbytes
bytes per sector: 512
rev level: HPC5
blocks per disk: 143374738
ISO version: 0
ECMA version: 0
ANSI version: 3
removable media: no
response format: 2
(Additional inquiry bytes: (32)48 (33)5a (34)39 (35)36 (36)38 (37)44 (38)37 (39)20 (40)20 (41)20 (42)20 (43)20 (44)20 (45)20 (46)20 (47)20 (48)20 (49)20 (50)20 (51)f (52)0 (53)0 (54)60 (55)a (56)dc (57)b (58)59 (59)3 (60)1 (61)3 (62)22 (63)0 (64)0 (65)0 (66)0 (67)0 (68)0 (69)0 (70)0 (71)0 (72)0 (73)0 (74)0 (75)0 (76)0 (77)0 (78)0 (79)0 (80)0 (81)0 (82)0 (83)0 (84)0 (85)0 (86)0 (87)0 (88)0 (89)0 (90)0 (91)0 (92)43 (93)6f (94)70 (95)79 (96)72 (97)69 (98)67 (99)68 (100)74 (101)20 (102)28 (103)63 (104)29 (105)20 (106)32 (107)30 (108)30 (109)33 (110)20 (111)53 (112)65 (113)61 (114)67 (115)61 (116)74 (117)65 (118)20 (119)41 (120)6c (121)6c (122)20 (123)8 (124)8b (125)b9 (126)92 (127)0 (128)0 (129)2 (130)0 (131)77 (132)fd (133)e0 (134)38 (135)77 (136)ff (137)6 (138)14 )


HTH,
Devender
Impossible itself mentions "I m possible"
GerGon
Regular Advisor

Re: vgimport error "not a directory"

This is the out from command

[root@caribe]/dev> diskinfo -v /dev/rdsk/c2t0d0
SCSI describe of /dev/rdsk/c2t0d0:
vendor: HP 36.4G
product id: ATLAS10K3_36_SCA
type: direct access
size: 35566480 Kbytes
bytes per sector: 512
rev level: HP05
blocks per disk: 71132960
ISO version: 0
ECMA version: 0
ANSI version: 2
removable media: no
response format: 2
(Additional inquiry bytes: (32)55 (33)4d (34)48 (35)46 (36)58 (37)37 (38)34 (39)20 (40)20 ........... etc..etc..etc..