- 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
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-06-2004 12:51 AM
тАО10-06-2004 12:51 AM
Vgimport problem
I have recently had to do a cold O/S install, on a server that had a major problem, and I'm at the stage where I want to import several of the disks.
My problem is, that when I do a -
vgimport -v vg06 /dev/dsk/c4t0d0 /dev/dsk/c4t1d0 /dev/dsk/c4t8d0
This works, except I don't have all the data that should be on these disks. I've got loads of
Anybody got any ideas as to why ?
Regards,
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 12:54 AM
тАО10-06-2004 12:54 AM
Re: Vgimport problem
First question would have to be "are you sure you included all the physical volumes in your vgimport command?" Have you looked at the logical volume layout within vg06? Does it look normal? How are you determining that not all the data is there?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 12:55 AM
тАО10-06-2004 12:55 AM
Re: Vgimport problem
do you have the map file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 12:58 AM
тАО10-06-2004 12:58 AM
Re: Vgimport problem
vgimport -s -v -m /tmp/vg06.map /dev/vg06
You will have to recreate vg06 first -
vgexport vg06
mkdir /dev/vg06
mknod /dev/vg06/group c 64 0x060000
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 12:58 AM
тАО10-06-2004 12:58 AM
Re: Vgimport problem
I would try using the -s option of vgimport and let it scan for the physical volumes it needs (I think you may have to have a mapfile): vgimport -s -m /tmp/vg06.map /dev/vg06
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 12:59 AM
тАО10-06-2004 12:59 AM
Re: Vgimport problem
There isn't any mapfile as this was from a cold OS install.
But according to the vgdisplaay it all looks ok, except the the LV names are different to what there were originally.
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 01:03 AM
тАО10-06-2004 01:03 AM
Re: Vgimport problem
I suspect that you have not associated all the LVOL's with a filesystem. A good map file would have helped especially if you had
LVOL's other than the standard lvol1, lvol2 ... . If you have an old /etc/fstab on backup, now would be a good time to restore it to another location so that you can see which filesystem, mountpoint, lvols tuples existed prior to the crash. I also suspect that you will need to fsck each filesystem before mounting. As long as all the disks are good, you really shouldn't have lost anything -- though you may have temporily misplaced it. It's always a good idea to run mirrored disks (or RAID) so that the loss of a disk is not a problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 11:01 AM
тАО10-06-2004 11:01 AM
Re: Vgimport problem
I'm afraid it will be a case of mounting each lvol temporarily and working out which one was mounted where. Then either change fstab to use the standard (lvol) names, or rename the lvols back to what they used to be.
I have a script (runs under cron once per day) that writes this information to a hidden file on the filesystem to make the job much easier (I've included it below - use if you wish). That way, whenever I encountered a problem, I could easily tell what was mounted where by temporarily mounting the lvol and checking the contents of the file.
Col.
#!/bin/ksh
###################################################
# Quick re-hash of the lvolinfo command to remove #
# any gzip .lvolinfo files which may exist. #
###################################################
# Modifications #
# ------------- #
# Init Date Comments #
# ----------------------------------------------- #
# CMT 12/03/01 Added ro exclusion. #
###################################################
HOST=$(hostname)
/sbin/mount -l |grep -v " ro "| awk '{print $1 " " $3}' | while read mount lvol
do
if [ -f "$mount/.lvolinfo.gz" ]
then
rm "$mount/.lvolinfo.gz"
fi
echo $HOST $mount $lvol > $mount/.lvolinfo
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 05:22 PM
тАО10-06-2004 05:22 PM
Re: Vgimport problem
One of the uses of the mapfile is to get your lvol names back. I would run a "vgscan -p", copy and paste the output somwhere this will show you which physical devices belong together.
For the lvol names the best is the test mounts / uses. It is garuanteed to be more "fun" though if you have raw volumes on it.
Regards
Gerhard