- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: error creating vg in SAM
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
12-07-2000 10:31 AM
12-07-2000 10:31 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 10:35 AM
12-07-2000 10:35 AM
Re: error creating vg in SAM
1) mv /etc/lvmtab /etc/lvmtab.old
2) vgscan -v
That will create a new lvmtab file based on the info current of the system.
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 10:53 AM
12-07-2000 10:53 AM
Re: error creating vg in SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 10:58 AM
12-07-2000 10:58 AM
Re: error creating vg in SAM
2. The /etc/lvmpvg file is created and updated using the vgcreate, vgextend, and vgreduce commands. See lvm(4) manpage for more information.
So it seems as if you have to recreate the volume groups and not only the lvols in the volumegroup.
What is the exact error message?
Hope that helps a bit further
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:01 AM
12-07-2000 11:01 AM
Re: error creating vg in SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:12 AM
12-07-2000 11:12 AM
Re: error creating vg in SAM
What does ioscan -fnC disk list?
Check if you can recreate the disks device file with the mksf command. Check the manpage for that, but I would probably go and use mksf -H
Do you have a backup of the system. You might be faster restoring the lvm structure from there.
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:44 AM
12-07-2000 11:44 AM
Re: error creating vg in SAM
I think Steffi has the right idea with considering a restore. You might also consider having a serious talk with the vendor who deleted the volume groups.
Also, SAM isn't the best tool to use for LVM, particularly after things go south.
If you know the original configuration, you might try building the /dev/vg05/groups file and trying to do a vgimport to bring it back that way.
If /etc/lvmpvg is getting in your way, you can also try to move that file away temporarily. It should only be used when you are building mirrored disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:51 AM
12-07-2000 11:51 AM
Re: error creating vg in SAM
disk 20 1/4/0/0.8.0.4.0.0.5 sdisk CLAIMED DEVICE HP A5277A /dev/dsk/c6t0d5 /dev/rdsk/c6t0d5 /dev/rdsk/disk_query
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:56 AM
12-07-2000 11:56 AM
SolutionCheck for the following:
In /etc/lvmcomf/vg[05-10].conf you have the VG config files.
With the following command you can check which disk belongs to each Volume Group:
# strings /etc/lvmconf/vg05.conf
The disk that you see does it exists in /dev/dsk or /dev/rdsk.
When you perform the following on the disk:
dd if=/dev/rdsk/c?t?d? of=/dev/null bs=64k count=5000
What is the message?
If error it could be that the device isn't oke.
Run the insf command Steffie Suggested.
If no Errors:
Check if you can restore the VG via vgcfgrestore.
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 11:59 AM
12-07-2000 11:59 AM
Re: error creating vg in SAM
It looks like SAM is adding the /dev/dsk/disk_query device file into the lvmtab file, which corrupts the newly created vg. Then any attempts to create another vg fail with device already included in the lvmtab file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 12:32 PM
12-07-2000 12:32 PM
Re: error creating vg in SAM
# strings /etc/lvmconf/vg05.conf
CONFIG01
/dev/vg05
/dev/rdsk/c6t0d5
/dev/rdsk/c3t0d5
LVMREC01&
LVMREC01&
~VGDA0001
VGSA0001:.
the dd if=/dev/rdsk/c?t?d? of=/dev/null bs=64k count=5000 did not return any errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 12:43 PM
12-07-2000 12:43 PM
Re: error creating vg in SAM
Did you try to restore the VG, with vgcfgrestore.
If your VG conf file is correct and the dd on the disk doesn't give a error message, you should be able to restore the VG.
This means that all the data should be on the disk.
Check man vgcfgrestore.
Don't use SAM to recover this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 02:26 PM
12-07-2000 02:26 PM
Re: error creating vg in SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 02:39 PM
12-07-2000 02:39 PM
Re: error creating vg in SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 02:50 PM
12-07-2000 02:50 PM
Re: error creating vg in SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2000 04:05 PM
12-07-2000 04:05 PM
Re: error creating vg in SAM
I'm coming back to one of my initial responses and that is going back to your backup and restore the data from there.
Steffi Jones
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2000 01:02 AM
12-08-2000 01:02 AM
Re: error creating vg in SAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2000 01:20 AM
12-08-2000 01:20 AM
Re: error creating vg in SAM
What is the status now.
Have you tried to re-create the VG in /dev with mknod.
mkdir /dev/vg05
mknod /dev/vg05/group c 64 0x050000
vgcfgrestore -n /dev/vg05 -f /etc/lvmconf/vg05.conf
-o /dev/rdsk/c6t0d5 /dev/rdsk/c3t0d5
With "pvcreate -f"(man pvcreate) you can totally wipe the disks.