- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How become I the "old" vg02 back in the new sy...
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
тАО10-05-2007 12:13 AM
тАО10-05-2007 12:13 AM
I set up a new system, after it was destroyed.
On the тАЮOldтАЬ system, there was also a volumegroup vg02 with 2 lvol, 1 and 2
I try to get back the configuration with vgscan.
The system lists the Physical Volumes but brings the message:
# rm /etc/lvmtab
# vgscan -av
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument
/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c2t2d0
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c4t0d0
/dev/dsk/c4t1d0
/dev/dsk/c4t2d0
/dev/dsk/c4t3d0
/dev/dsk/c4t4d0
/dev/dsk/c4t5d0
/dev/dsk/c4t6d0
/dev/dsk/c4t7d0
/dev/dsk/c5t0d0
/dev/dsk/c5t2d0
/dev/dsk/c5t4d0
/dev/dsk/c5t6d0
The Volume Group /dev/vg02 was not matched with any Physical Volumes.
Scan of Physical Volumes Complete.
Normally it goes with тАЮvgimport -s -m /tmp/vg02_map /dev/vg02тАЬ
But I donтАЩt have a mapfile.
How can I create a mapfile?
I make the directory /dev/vg02/group with the command mkdir and mknod /dev/vg02/group c 64 0x020000
How can I get the тАЮoldтАЬ vg02 back in the system?
thanks for the assistance
Raymond De Buyzer
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 12:21 AM
тАО10-05-2007 12:21 AM
SolutionHave a look at this doc.
Title: How to vgimport without knowing all disks and no map file
Document ID: emr_na-c01014235-3
Europe
http://www8.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01014235-3
US
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01014235-3
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 12:48 AM
тАО10-05-2007 12:48 AM
Re: How become I the "old" vg02 back in the new system?
thanks for the fast reply.
The systems sayd that the dives is busy.
How can a devices busy, when it isn't mount?
# mknod /dev/vg01/group c 64 0x010000
# vgcreate vg01 /dev/dsk/c4t0d0
Increased the number of physical extents per physical volume to 4341.
vgcreate: Volume group "/dev/vg01" could not be created:
Device busy
Raymond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 01:05 AM
тАО10-05-2007 01:05 AM
Re: How become I the "old" vg02 back in the new system?
normally must be first a pvcreate.
But because the device was already added to a VG,it doesn't go without the "-f" option, which destroy the information on the disk!
man pvcreate
-f ...(thus deleting any file system or volume manager information present)...
Raymond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 01:44 AM
тАО10-05-2007 01:44 AM
Re: How become I the "old" vg02 back in the new system?
Do you remember the disk configuration of your old Volume Group? Are all disk mentioned above part of vg01?
/dev/dsk/c4t0d0
/dev/dsk/c4t1d0
/dev/dsk/c4t2d0
/dev/dsk/c4t3d0
/dev/dsk/c4t4d0
/dev/dsk/c4t5d0
/dev/dsk/c4t6d0
/dev/dsk/c4t7d0
/dev/dsk/c5t0d0
/dev/dsk/c5t2d0
/dev/dsk/c5t4d0
/dev/dsk/c5t6d0
RJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:03 AM
тАО10-05-2007 02:03 AM
Re: How become I the "old" vg02 back in the new system?
Yes, they are all in VG01
I look in SAM, and there I could "import" one VG. Sam lists all these devices.
Raymond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:06 AM
тАО10-05-2007 02:06 AM
Re: How become I the "old" vg02 back in the new system?
Do another check:
vgcfgrestore -n /dev/vg01 -l
If everything is fine, import:
vgimport -v [-p] /dev/vg01 /dev/dsk/... all devices
Use "-p" to preview the action.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:11 AM
тАО10-05-2007 02:11 AM
Re: How become I the "old" vg02 back in the new system?
# vgcfgrestore -n /dev/vg01 -l
vgcfgrestore: Error opening LVM configuration file : /etc/lvmconf/vg01.conf
# more /etc/lvmconf/vg01.conf
/etc/lvmconf/vg01.conf: No such file or directory
It is a new system which I set up yesterday.
So, There couldn't be a file vg01.conf
Raymond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:13 AM
тАО10-05-2007 02:13 AM
Re: How become I the "old" vg02 back in the new system?
create a diskfile and add all devices of vg01
# vi /disk_file
/dev/dsk/c4t0d0
/dev/dsk/c4t1d0
/dev/dsk/c4t2d0
/dev/dsk/c4t3d0
/dev/dsk/c4t4d0
/dev/dsk/c4t5d0
/dev/dsk/c4t6d0
/dev/dsk/c4t7d0
/dev/dsk/c5t0d0
/dev/dsk/c5t2d0
/dev/dsk/c5t4d0
/dev/dsk/c5t6d0
# vgimport -f diskfile /dev/vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-05-2007 02:15 AM
тАО10-05-2007 02:15 AM
Re: How become I the "old" vg02 back in the new system?
Just proceed with the import.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!