- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can't vgimport
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-2002 04:33 AM
07-01-2002 04:33 AM
# umount /dev/vg01/lvol1
# umount /dev/vg01/lvol2
# umount /dev/vg01/lvol3
# vgchange -a n vg01
volume group "vg01" has been successfully changed.
# vgexport -m vg01.mapfile /dev/vg01
then I saved/ftp vg01.mapfile to my c drive
cold install
and then:
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
#vgimport -m vg01.mapfile /dev/vg01
and I recieved the following message:
vgimport: Unable to read the physical volume.
Please help.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 04:44 AM
07-01-2002 04:44 AM
Re: Can't vgimport
disks. man vgimport has more info.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 04:45 AM
07-01-2002 04:45 AM
Re: Can't vgimport
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 04:45 AM
07-01-2002 04:45 AM
SolutionIt seems that the device name of the harddisk may have got changed after installation. If you know the device files of the harddisks which were present in the old vg01, compare them with the newly created device files of the harddisk.
The steps which you have taken are right and there are no problems in that. May be, during the ftp the map file might have got corrupted.
You can do two things,
1. If you know the device files of the harddisk present in the vg01, then
#vgimport /dev/vg01 /dev/dsk/c1t2d0 /dev/dsk/c1t3d0
Then it will import the vg01 info
Or else
2. You can do
#vgscan -a
This will detect the volume groups which are not in use and then tell you to add the vg01.
After you get this information,you can do
#vgchange -a y /dev/vg01
and then mount the lvols after making the mount points.
#mkdir /data1
#mount /dev/vg01/lvol1 /data1
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 05:16 AM
07-01-2002 05:16 AM
Re: Can't vgimport
/dev/vg01/lvol1 to /dev/vg01/d01.
I first created /dev/vg01/d01 before I vgexport. After I vgimport, /dev/vg01/d01 became /dev/vg01/lvol1.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 05:23 AM
07-01-2002 05:23 AM
Re: Can't vgimport
Yes, you can rename the logical volume:
.../dev/vg01/lvol1 to /dev/vg01/d01
# unmount
# mv /dev/v01/lvol1 /dev/vg01/d01
# mv /dev/vg01/rlvol1 /dev/vgxx/rd01 #???note the raw device???
# mount /dev/vg01/d01
Thats all!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 05:54 AM
07-01-2002 05:54 AM
Re: Can't vgimport
Last question.
What are the absolute files that I need to backup before I do a cold installation of HP-UX 11? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 06:05 AM
07-01-2002 06:05 AM
Re: Can't vgimport
In addition to your LVM mapfiles, here's a list of the principal files I'd backup to use after a cold-installation:
/.profile
/etc/group
/etc/hosts
/etc/inetd.conf
/etc/inittab
/etc/mail/sendmail.cf
/etc/motd
/etc/nsswitch
/etc/ntp.conf
/etc/passwd
/etc/profile
/etc/rc.config.d/netconf
/etc/rc.config.d/netdaemons
/etc/rc.config.d/nfsconf
/etc/resolv.conf
/etc/services
/etc/shells
/etc/shutdown.allow
/var/adm/cron/at.allow
/var/adm/cron/cron.allow
/var/adm/fbackupfiles/config
/var/adm/fbackupfiles/graphs/*
/var/spool/cron/crontabs/*
/sbin/init.d/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 06:19 AM
07-01-2002 06:19 AM
Re: Can't vgimport
You should also take an Ignite backup if you have Ignite UX loaded on your system thro make_tape_recovery
so that you can recover back your vg00 as earlier.
You can also backup the important configuration files of your applications which you are using.
You can take a hardcopy printout of all the important files.
You can run the print_manifest command and then take the printout of the output. It will print all the information about your system
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 07:35 AM
07-01-2002 07:35 AM
Re: Can't vgimport
How do I determine if I have mirrored disks on my system?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 07:44 AM
07-01-2002 07:44 AM
Re: Can't vgimport
vgexport/vgimport will not store any data, it will store information only about the lvols in the volume group.
lvdisplay -v /dev/vg01/lvol1
This will tell you if you have mirror copies for this lvol1
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2002 10:13 AM
07-01-2002 10:13 AM
Re: Can't vgimport
If you already had the mirror copies of your data before an vgexport then that mirror copy of the data will also be present after the vgimport. You can always view this using #lvdisplay -v /dev/vg01/lvol1
Make sure that you have imported all the disks which were present in the vg01 volume group before. If initially there weer 2 disks then you should have imported both the disks.
You can always issue an lvsync comand since the mirror copies of the data will be stale since you did an vgexport. The lvsysnc command will make the data in the mirror copy curren.
#lvsync /dev/vg01/lvol1
You can view this with the lvdisplay command.
Piyush