- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Can't import volume.
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
07-01-2003 09:02 AM
07-01-2003 09:02 AM
So here is what I am trying to do.
/dev/dsk/c2t9d3
mkdir /dev/vg22
mknod /dev/vg22/group c 64 0x220000
vgimport -m vg22.mapfile /dev/vg22 /dev/dsk/c2t9d2 /dev/dsk/c2t9d3 /dev/dsk/c2t9d4 /dev/dsk/c2t9d5
/dev/dsk/c2t9d6 /dev/dsk/c2t9d7
/dev/dsk/c2t11d0 /dev/dsk/c2t11d1
/dev/dsk/c2t11d2 /dev/dsk/c2t11d3
/dev/dsk/c2t11d4 /dev/dsk/c2t11d5
/dev/dsk/c2t11d6 /dev/dsk/c2t11d7
And I am getting the following
vgimport: Cannot open the control file "/dev/vg22/group":
No such device
but...
# ls -al /dev/vg22/group
crw-rw-rw- 1 root sys 64 0x220000 Jul 1 13:03 /dev/vg22/group
#
Any suggestions..
Jeremy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:06 AM
07-01-2003 09:06 AM
Re: Can't import volume.
# vgimport -v -m vg22.mapfile /dev/vg22 /dev/dsk/c2t9d2 /dev/dsk/c2t9d3 /dev/dsk/c2t9d4 /dev/dsk/c2t9d5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:07 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:08 AM
07-01-2003 09:08 AM
Re: Can't import volume.
Same thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:08 AM
07-01-2003 09:08 AM
Re: Can't import volume.
It's the 0x220000. Too big. Back it off to 0x100000 or something.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:17 AM
07-01-2003 09:17 AM
Re: Can't import volume.
# vgexport -p -v -s -m /tmp/vg22s.map vg22
# vgexport -p -v -m /tmp/vg22.map -f /tmp/vg22.disks
# ll /dev/vg*/group > /tmp/group.info
# cp /etc/fstab /tmp/fstab.old
Restore vg22.s.map, vg22.map, group.info, fstab.old and vg22.disks to /tmp.
# mkdir /dev/vg22
# mknod /dev/vg22/group -c 64 0x220000
Edit /tmp/vg22.disks and change the devices files. Only the controller numbers (cxx) will change.
# ioscan -fnC disk > /tmp/disk.out
Look at disk.out and see how the controller numbers got changed. So, modify vg22.disks accordingly. Once it is done import the vg.
# vgimport -v -m /tmp/vg22.map -f /tmp/vg22.disks vg22
If you are not sure about the disks, then you can import it with -s option.
# vgimport -v -s -m /tmp/vg22.s.map vg22.
Scan the disks and import vg22.
# vgchange -a y vg22
Paste the entries corresponding to vg22 from fstab.old into /etc/fstab
# mount -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:24 AM
07-01-2003 09:24 AM
Re: Can't import volume.
From man vgcreate:
"The minor number for the group file should be unique among all
the volume groups on the system. It has the format 0xNN0000,
where NN runs from 00 to ff. The maximum value of NN is
controlled by the kernel tunable parameter maxvgs."
Check kernel paramater maxvgs. 22 is too big.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:24 AM
07-01-2003 09:24 AM
Re: Can't import volume.
So now I get a whole new error:-)
Beginning the import process on Volume Group "/dev/vg22".
vgimport: The Physical Volumes specified on the command line
do not belong to the same Volume Group.
#
Here is my vg22.conf and vg22.mapfile.
# strings vg22.conf
CONFIG01
/dev/vg22
/dev/rdsk/c2t9d2
/dev/rdsk/c2t9d3
/dev/rdsk/c2t9d4
/dev/rdsk/c2t9d5
/dev/rdsk/c2t9d6
/dev/rdsk/c2t9d7
/dev/rdsk/c2t11d0
/dev/rdsk/c2t11d1
/dev/rdsk/c2t11d2
/dev/rdsk/c2t11d3
/dev/rdsk/c2t11d4
/dev/rdsk/c2t11d5
/dev/rdsk/c2t11d6
/dev/rdsk/c2t11d7
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
LVMREC01U
VGDA0001
VGSA0001llr
mapfile:
# strings vg22.mapfile
1 lvol1
2 lvol2
3 lvol3
4 lvol4
5 lvol5
6 lvol6
7 lvol7
8 lvol8
9 lvol9
10 lvol10
11 lvol11
12 lvol12
13 lvol13
14 lvol14
15 lvol15
16 lvol16
17 lvol17
18 lvol18
19 lvol19
20 lvol20
21 lvol21
22 lvol22
23 lvol23
24 lvol24
25 lvol25
26 lvol26
27 lvol27
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:55 AM
07-01-2003 09:55 AM
Re: Can't import volume.
What syntax did you use? Where did this conf file come from? Are you still specifying the physical volumes on the vgimport command line? Have you verified that these are the correct paths to the physical volumes in this VG?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:57 AM
07-01-2003 09:57 AM
Re: Can't import volume.
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 09:58 AM
07-01-2003 09:58 AM
Re: Can't import volume.
It is very likely that the device files (pv_paths) changed as a consequence of the cold-installation. One way to deduce the new pv_paths is do do a 'vgscan'. THe results will show the various device files grouped (clustered) into volume groups:
# vgscan -a -p -v
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 04:40 PM
07-01-2003 04:40 PM
Re: Can't import volume.
SAM will scan all the unassigned disks and automatically group them together using the unique serial numbers written to the disks when they were first added to a volume group. The new window shows the physical path so you select it and down at the bottom of the window, you'll see a place to name the new volume group. Just type in vg22 and select OK. The import will not see alternate or redundant paths to the volume group (and warns you) but this can be fixed later.
SAM will assign default lvol names (lvol1 lvol2 lvol3...) but you can rename them if desired. You'll find the volume group ready to use and lvols ready to mount.
Bill Hassell, sysadmin