- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgimport error "not a directory"
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
Discussions
Discussions
Forums
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
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-25-2005 05:10 AM
тАО05-25-2005 05:10 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:14 AM
тАО05-25-2005 05:14 AM
Solutiontry
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:16 AM
тАО05-25-2005 05:16 AM
Re: vgimport error "not a directory"
vgimport -m /disco36pacifico vgdatos /dev/dsk/c2t0d0
That should do it.
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:17 AM
тАО05-25-2005 05:17 AM
Re: vgimport error "not a directory"
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:18 AM
тАО05-25-2005 05:18 AM
Re: vgimport error "not a directory"
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:22 AM
тАО05-25-2005 05:22 AM
Re: vgimport error "not a directory"
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:22 AM
тАО05-25-2005 05:22 AM
Re: vgimport error "not a directory"
[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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:24 AM
тАО05-25-2005 05:24 AM
Re: vgimport error "not a directory"
[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>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:29 AM
тАО05-25-2005 05:29 AM
Re: vgimport error "not a directory"
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2005 05:34 AM
тАО05-25-2005 05:34 AM
Re: vgimport error "not a directory"
[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..