import disk in HP-UX 1020

Login or Register for Dates, Times and to Reply

Thread Tools Search this Thread
Operating Systems HP-UX import disk in HP-UX 1020
# 1  
import disk in HP-UX 1020

is it possible to import a disk into a system, and to mount it without overwriting all data on this disk?
# 2  
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.
# 3  
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.
# 4  
Re: Pb with the disk to import

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".
# 5  
I've only tryed it


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.
# 6  
Commands for import

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?
# 7  
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.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #773
Difficulty: Medium
A finite-state machine (FSM) is a specialized computer developed by AT&T.
True or False?

10 More Discussions You Might Find Interesting

1. Solaris

How to clear a removed single-disk pool from being listed by zpool import?

On an OmniOS server, I removed a single-disk pool I was using for testing. Now, when I run zpool import it will show it as FAULTED, since that single disk not available anymore. # zpool import pool: fido id: 7452075738474086658 state: FAULTED status: The pool was last... (11 Replies)
Discussion started by: priyadarshan
11 Replies

2. Slackware

Hp 1020 laser jet Printer doesn't work on slackware 13.1

when i attach HP 1020 leaser jet printer on slackware 13.1 via usb port it detects and display message "Ready to print", in printing window (start->setting->printing) it detects & its properties(Printer->properties) is Description : Hewlett-Packard HP LaserJet 1020 Location : Divya Device... (0 Replies)
Discussion started by: hitlar
0 Replies

3. Shell Programming and Scripting

export / import

I have a calling script which consists of calls to other scripts via the sh command. ie vi sh extra unix commands sh exit In smallscript1, I prompt for a filename, which I handle via :- read f1 export f1 I then need... (5 Replies)
Discussion started by: malts18
5 Replies

4. Shell Programming and Scripting

Problem with awk awk: program limit exceeded: sprintf buffer size=1020

Hi I have many problems with a script. I have a script that formats a text file but always prints the same error when i try to execute it The code is that: { if (NF==17){ print $0 }else{ fields=NF; all=$0; while... (2 Replies)
Discussion started by: fate
2 Replies

5. Shell Programming and Scripting

is it possible import the variable ?

Hi All, I need to hold one variable in another script. I mean, i will be running 1st script say ScriptA which should import one variable from another script say ScriptB. I will be incrementing the variable everyday in ScriptA and want to place it in ScriptB.The next day i should get the... (2 Replies)
Discussion started by: vinayakatj56
2 Replies

6. Solaris

How to import the new service

Hi How to import the new service which i created without root permission. As well how we can set the uid in service. When i import i got the following error, svccfg import /var/svc/manifest/site/newservice.xml svccfg: Could not create temporary service "TEMP/site/newservice"... (6 Replies)
Discussion started by: kalpeer
6 Replies

7. Shell Programming and Scripting

Import variable

Can i import a value of a variable in a different related script. (2 Replies)
Discussion started by: manish.s
2 Replies

8. UNIX for Dummies Questions & Answers


Dear All, If while the databsae was shut down, an import command has been done. Will the import result will return 1? Best Regards, Omran (1 Reply)
Discussion started by: omran
1 Replies

9. Shell Programming and Scripting


i'm importing tables to oracle 7, but sometimes import give me warnings (not failures) how can i rollback the whole imported tables if warnings occured please advise thanx (2 Replies)
Discussion started by: omran
2 Replies

10. UNIX for Dummies Questions & Answers

Serius ERROR on HPUX 1020

-Here's the funny thing - I have an old HPUX1020 D270 also known as "grandfather" Everything was all right until today... The users began to work as usual. Suddenly The server "kicked" out the users, and when trying to login back - The server returned with 2 different error mesgs: one is... (7 Replies)
Discussion started by: sunbird
7 Replies

Featured Tech Videos