- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: vgimport problem
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-07-2003 02:09 AM
07-07-2003 02:09 AM
vgimport problem
I have a Autoraid 12h in K100, and want to import from RP5430. I have 5 VG, I do this:
# umount /disco10
# umount /disco20
# vgchange -a n /dev/vg01
# vgchange -a n /dev/vg02
# vgexport -s -v -m /tmp/vg01.map /dev/vg01
# vgexport -s -v -m /tmp/vg02.map /dev/vg02
# grep vg01 /etc/fstab > /tmp/vg01.fstab
# grep vg02 /etc/fstab > /tmp/vg02.fstab
With Ftp put *.map and *.fstab to the other machine
# mkdir /dev/vg01
# mkdir /dev/vg02
# mknod /dev/vg01/group c 64 0x010000
# mknod /dev/vg02/group c 64 0x020000
# vgimport -s -v -m /tmp/vg01.map /dev/vg01
# vgimport -s -v -m /tmp/vg02.map /dev/vg02
# vgchange -a y /dev/vg01
# vgchange -a y /dev/vg02
# touch /tmp/fsmap
# cat /tmp/vg0*.fstab >> /tmp/fsmap
# cat /tmp/fsmap >> /etc/fstab
I had mount points,
When I mount, it tells me:
mount: /dev/vg04/lvol1: No such file or directory
mount: /dev/vg03/lvol1: No such file or directory
mount: /dev/vg02/lvol1: No such file or directory
Whats happens?
Thanks
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:12 AM
07-07-2003 02:12 AM
Re: vgimport problem
it looks correct.
Can you please post the incriminated
/etc/fstab ?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:14 AM
07-07-2003 02:14 AM
Re: vgimport problem
In your procedure you do on the RP "cat /tmp/vg0*" are you sure that you don't have any vg0X file in /tmp ?? Or more simple, are you sure that you don't have any vg0X already in your /etc/fstab file ?
Cheers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:19 AM
07-07-2003 02:19 AM
Re: vgimport problem
Perhaps correct those vg03/4 errors first, as they may contains the mount point directories for vg01/2?
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:21 AM
07-07-2003 02:21 AM
Re: vgimport problem
mount: /dev/vg04/lvol1: No such file or directory
mount: /dev/vg03/lvol1: No such file or directory
mount: /dev/vg02/lvol1: No such file or directory
which shows its trying to mount vg02, vg03, vg04 (all lvol1) - whereas you imported vg01 and vg02 - so why are you trying to mount vg03 and vg04 ??
Edit your /etc/fstab file manually and fix it to how you want it to look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:22 AM
07-07-2003 02:22 AM
Re: vgimport problem
I'd check that /tmp/fstab was empty prior to your "cat /tmp/vg0*.fstab" >> /tmp/fsmap" and also that there are no other vg0*.fstab files in /tmp.
You will have to compare to info in /etc/fstab and ensure the volume details are correct in there by comparing with what you have on the system. This is all assuming the volume group imports worked without errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:25 AM
07-07-2003 02:25 AM
Re: vgimport problem
I want to export/import 5 vg (vg01, vg02, vg03, vg04 and vg05) but only write this vg01 and vg02.
The fstab file:
# more fstab
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg01/lvolswap ... swap pri=0 0 0
/dev/vg00/lvol9 /oracle vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lvol10 /brs vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg01/lvol2 /baksistema vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg01/lvol3 /admin vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg01/lvol1 /disco10 hfs rw,suid 0 2
/dev/vg02/lvol1 /disco20 hfs rw,suid 0 2
/dev/vg03/lvol1 /disco30 hfs rw,suid 0 2
/dev/vg04/lvol1 /disco40 hfs rw,suid 0 2
/dev/vg05/lvol1 /disco50 hfs rw,suid 0
2
Thanks
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:30 AM
07-07-2003 02:30 AM
Re: vgimport problem
1. fstyp -v /dev/vg02/lvol1
You are mounting as hfs file system. Lets check that this is the filesystem format.
2. ll -d /dis*
Are the directories present?
3. vgdisplay -v /dev/vg01
You are mounting /dev/vg01/lvswap as swap, did the lv names come across correctly?
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:38 AM
07-07-2003 02:38 AM
Re: vgimport problem
If so can you ls /dev/vg0*/ and can you see lvol1 for each vg ? this proves they imported correctly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:40 AM
07-07-2003 02:40 AM
Re: vgimport problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:45 AM
07-07-2003 02:45 AM
Re: vgimport problem
in addition to Ian's answer:
note this:
/dev/vg01/lvolswap ... swap pri=0 0 0
/dev/vg00/lvol9 /oracle vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg00/lvol10 /brs vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
and this:
/dev/vg01/lvol2 /baksistema vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg01/lvol3 /admin vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
AND THIS !!!
/dev/vg01/lvol1 /disco10 hfs rw,suid 0 2
extract from your fstab...
looks like you have to clean it up and check what you have imported.
vg01 must be pre-existent, or you will have not used it for swap.
Now you imported it... and the swap ?
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:48 AM
07-07-2003 02:48 AM
Re: vgimport problem
reading also your other post, it looks like three is a bit of mess.
I suggest you to export all of your vg, clean your fstab and start again.
Check also the minor number
ll /dev/vg*/group
to see if there are any inconsistences.
Try importing them one by one, and building the fstab accordingly.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:49 AM
07-07-2003 02:49 AM
Re: vgimport problem
Something is wrong:
# ls /dev/vg0*
/dev/vg00:
group lvol2 lvol5 lvol8 rlvol10 rlvol4 rlvol7
lvol1 lvol3 lvol6 lvol9 rlvol2 rlvol5 rlvol8
lvol10 lvol4 lvol7 rlvol1 rlvol3 rlvol6 rlvol9
/dev/vg01:
group lvol3 lvol6 lvolswap rlvol3 rlvol6 rlvolswap
lvol1 lvol4 lvol7 rlvol1 rlvol4 rlvol7
lvol2 lvol5 lvol8 rlvol2 rlvol5 rlvol8
/dev/vg02:
group
/dev/vg03:
group
/dev/vg04:
group
/dev/vg05:
group
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:49 AM
07-07-2003 02:49 AM
Re: vgimport problem
Also, /dev/vg01 shows 9 lvols in the output you produced, yet there are only 4 lvols specified in the /etc/fstab. Is this right?
Share and Enjoy! Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:57 AM
07-07-2003 02:57 AM
Re: vgimport problem
It looks like vg01 is a copy of vg00 from the other server!
It could be the /dev/dsk/cxxxx entries are different on this server than on the original server. You must map out carefully all the disk devices for each vg and be sure you are trying to import the correct ones on the new server. Do a full ioscan first when the disks are ready on the new server so you can id all the new /dev/dsk entries you will need to use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 02:58 AM
07-07-2003 02:58 AM
Re: vgimport problem
I don??t know how I am at this situation. How I clean all the modifications?
If I modified lvmtab, I need to execute vgscan and it creates lvmtab with all the disks. I must delete all entries in /dev/vg02....?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:01 AM
07-07-2003 04:01 AM
Re: vgimport problem
vgexport all of your vg
vi /etc/fstab and remove EVERY reference to vg that is not vg00
strip off the swap on vg01
reboot (because you had a vg01 with a swap in it)
and then import the vg one by one.
your method looked right...
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:03 AM
07-07-2003 04:03 AM
Re: vgimport problem
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:22 AM
07-07-2003 04:22 AM
Re: vgimport problem
The problem is that the lvols is not created.
If I listed /dev/vg02 for example, only is group.
if I do lvcreate /dev/vg02, appeard lvol2.
???
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:25 AM
07-07-2003 04:25 AM
Re: vgimport problem
so vg01 is O.K. ?
Please confirm this.
Now, as a second question:
- delete /dev/vg02/group
- delete /dev/vg02
re-create them and try a
vgimport
with the -v and -p
option, to use "preview" and "verbose", to see if they cget created, or if your export was wrong.
Can you please post the content of
vg02.map ?
Maybe the problem is here :)
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:33 AM
07-07-2003 04:33 AM
Re: vgimport problem
# more vg02.map
VGID 05eb7a3c399a89b
1 lvol1
vg02.map: END
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:36 AM
07-07-2003 04:36 AM
Re: vgimport problem
vg02.map looks O.K.
Does the import works, after re-creating dir and special file ?
Do you get any error ?
BTW, are source and dest the same O.S. ? It should not matter, but...
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:43 AM
07-07-2003 04:43 AM
Re: vgimport problem
/dev
# cd vg02
sh: vg02: not found.
# vgimport -s -v -m /tmp/vg02.map /dev/vg02
Beginning the import process on Volume Group "/dev/vg02".
vgimport: Volume group "/dev/vg02" already exists in the "/etc/lvmtab" file.
#
#
and nothing is created. How I clean lvmtab?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2003 04:48 AM
07-07-2003 04:48 AM
Re: vgimport problem
/dev
# cd vg02
sh: vg02: not found.
# vgimport -s -v -m /tmp/vg02.map /dev/vg02
Beginning the import process on Volume Group "/dev/vg02".
vgimport: Volume group "/dev/vg02" already exists in the "/etc/lvmtab" file.
#
#
and nothing is created. How I clean lvmtab?
Thanks "
Hi,
to clean lvmtab:
- cp -p /etc/lvmtab /etc/lvmtab.ORIG
- vgscan -p
preview to see what will be done
- vgscan
to operate
if this does not clean lvmtab, then
- rm /etc/lvmtab
we made a copy before
- vgscan
HTH,
Massimo