The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
x 86 svccfg import error oscarl SUN Solaris 1 02-22-2008 09:01 AM
exceptions in import madmat Shell Programming and Scripting 1 07-12-2007 12:38 PM
import omran UNIX for Dummies Questions & Answers 1 01-26-2003 09:10 PM
import omran Shell Programming and Scripting 2 12-17-2002 10:47 AM
Serius ERROR on HPUX 1020 sunbird UNIX for Dummies Questions & Answers 7 01-23-2002 08:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2002
Registered User
 

Join Date: Feb 2002
Posts: 16
Stumble this Post!
import disk in HP-UX 1020

Hi,
is it possible to import a disk into a system, and to mount it without overwriting all data on this disk?
thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 02-13-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,449
Stumble this Post!
It depends on how the disk was written. If it's a LVM disk created on another HP-UX system, yes, you can use vgimport to do this.
Reply With Quote
  #3 (permalink)  
Old 02-13-2002
Registered User
 

Join Date: Feb 2002
Posts: 16
Stumble this Post!
Pb with the disk to import

Thank you for the reply,
In fact, the disk I want to import has an inittab probleme. Then, I can't boot on it. I would like to mount this disk in another server (HP-UX 1020) to repair it.
I think I can only use vgimport if I made a map file in the disk to import.
Reply With Quote
  #4 (permalink)  
Old 02-13-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,449
Stumble this Post!
Re: Pb with the disk to import

Quote:
Originally posted by Olivier
I think I can only use vgimport if I made a map file in the disk to import.
That's not true. If you gave the volume group screwy names like /dev/vg00/lvol_this and /dev/vg00/lvol_that then you will need that map file to preserve the names. Without a map file, LVM will just use /dev/vg00/lvol0 and /dev/vg00/lvol1. Even if you used the default names, without a map file, LVM may get them mixed up and, for example, switch lvol0 and lvol1. But the mixup in logical volume names is the only problem with importing without the map file.

But anyway, I think that you should be able to boot straight into single user mode even with a screwed up inittab. Interrupt the boot process, boot from the primary path, choose to interact with ISL, and then type "hpux -is".
Reply With Quote
  #5 (permalink)  
Old 02-13-2002
Registered User
 

Join Date: Feb 2002
Posts: 16
Stumble this Post!
I've only tryed it

Thanks,

I've only tried hpux -is but at the boot I have the message :
"It was impossible for the kernel to find a process".
I have it since I've changed the inittab.

Ok, I'll try the vgimport.
Reply With Quote
  #6 (permalink)  
Old 02-13-2002
Registered User
 

Join Date: Feb 2002
Posts: 16
Stumble this Post!
Commands for import

Ok,
My server has 2 vg : vg00 and vg02.

I think I have to strike:
# for create dir:
mkdir /dev/vgdata

# I found this command but I don't know what that mean and #what it is use for:
mknod /dev/vgdata/group c 64 Ox02000

# the import command:
vgimport -v /dev/vgdata /dev/dsk/c0t10d0

# activate the volume group
vgchange -a y /dev/vgdata

Can you tell me if there is a mistake?
Reply With Quote
  #7 (permalink)  
Old 02-13-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,449
Stumble this Post!
Every volume group must have a unique group file. You need to look at all (well, both) of your pre-existing group files and make sure that the minor number is different. I would expect that vg02 may already have a group with 0x020000, if so, you must pick 0x030000 or 0x010000 or whatever. And notce that the minor number has zeros, you show a leading capital O. And there are 4 trailing zeroes, not three as you show.

Do a "ls -l /dev/vg*/group" after your mknod to be sure that you have it right.

I would then use the preview option first:
vgimport -p -v ...
This won't change anything but will detect almost any errors. If that looks good, then do the real vgimport.

Then vgchange looks good.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0