Operating System - HP-UX
1833768 Members
2201 Online
110063 Solutions
New Discussion

Rebuilding replaced disks HP-UX 10.01

 
SOLVED
Go to solution
Michael D. Zorn
Regular Advisor

Rebuilding replaced disks HP-UX 10.01

I have an HP-UX 10.01 K200 server with two external disks, C3553N (I think they're 8GB). The disks are starting to fail - every time I have to recover from a power out (like holiday shutdown) it takes longer to get the system put back together.

I'm going to replace the disks with new ones (different ones), and need to find out what all I have to do to rebuild.

I see the reference manual pages for vgcfgbackup/restore, but the details are sketchy.

I also found some threads here on a search for "vgcfgrestore", which seem to fill out a lot of those details (though many of them seem to be for later HP-UX's (I don't have vgcfgrestore -R, for example).

If I get the man pages, vgcfgbackup writes a file to /etc/lvmconf/vg00.conf (and the other group I have). The vg00.conf there now is dated Jan 1996.

Do I need to run vgcfgbackup again, if the vgXXX.conf files are already there? If I do, should I save the current ones?

The new disks will have the same hardware address as the old.

Are these the steps:
1. Back up all the FS.
2. Run vgcfgbackup for the two vol groups.
3. shutdown to power off.
4. Pull the old disks.
5. Install the new ones
6. power on and boot.
6.5 (anything here?)
7. Run vgcfgrestore ......
....What options? I have
.......-n /dev/vg00 /dev/rdsk/c0t6d0
8. frecover the FS.


The vgcfgrestore man page says to make the VG unavailable (vgchange -a n ...), but how can it become available if it's blank?

And does it need to be formatted (or something) once it's put in and connected? (Step 6.5?)

(I know, 10.01 is a bit old - once I get it put back together I'll see if I can talk management into going to 11 point something.)
8 REPLIES 8
Steven E. Protter
Exalted Contributor
Solution

Re: Rebuilding replaced disks HP-UX 10.01

My 10.x is weak but here we go.

Every time you put a new drive in a system you have to prepare it with the pvcreate command.

You may after that point be able to use the commands you are trying.

If the disk is a hotswap you may need to run insf -C to get the thing recognized and claimed on an ioscan.

The disk may get a new instance number which might necessitate you extending the volume group to the new disk.

If the new disk comes up as /dev/dsk/c5t8d0 then the command is:

vgextend /dev/vg01 /dev/dsk/c5t8d0

You may have to try a vgreduce on the old dead drive to clean up the /etc/lvmtab table, which you check with the command strings /etc/lvmtab

Just in case you need to rebuild from scratch:

cd /etc
mv lvmtab lvmtab.old
vgscan -a

# Now you need try and reactivate the volume group.

Again, they don't let me keep 10.x machines around to play with so I have no way of verifying this.

Hopefully Bill Hassell will come along, see this post and give you exactly what you need.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sridhar Bhaskarla
Honored Contributor

Re: Rebuilding replaced disks HP-UX 10.01

Michael,

Post your 'strings /etc/lvmtab' output followed by 'lvlnboot -v'. Unless we know how these disks are configured into your VG, it will be difficult to determine the appropriate solution.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ivajlo Yanakiev
Respected Contributor

Re: Rebuilding replaced disks HP-UX 10.01

Use make_tape_recovery for Backup your system include all VG !!!!. Replace all old disk and boot from tape and restore


Ivajlo Yanakiev
Respected Contributor

Re: Rebuilding replaced disks HP-UX 10.01

sorry make_tape_recovery is new one
Use make_recovery /ignite must be instaled/

Michael D. Zorn
Regular Advisor

Re: Rebuilding replaced disks HP-UX 10.01

Steve: Thanks for the info. It's not a hotswap.

Do I run 'vgscan' on the new, empty, disk? Do I run 'ioscan' first?

vg00 is /dev/dsk/c0t6d0 and vgfam is c9t0d0. 'ioscan' shows (for disks):

10/8.0 target tgt 7
10/8.0.0 disk sdisk 3 HP C2490WD
10/8.1 target tgt 8
10/8.1.0 disk sdisk 4 HP C2490WD
10/8.3 target tgt 9
10/8.3.0 disk sdisk 5 HP C2490WD
10/8.4 target tgt 10
10/8.4.0 disk sdisk 6 HP C2490WD
10/8.5 target tgt 11
10/8.5.0 disk sdisk 7 HP C2490WD
10/8.6 target tgt 12
10/8.6.0 disk sdisk 8 HP C2490WD
10/8.14 target tgt 13
10/8.14.0 disk sdisk 9 HP C2490WD
10/8.15 target tgt 14
10/8.15.0 disk sdisk 10 HP C2490WD
10/0.6 target tgt 0
10/0.6.0 disk sdisk 0 Seagate ST31200W

The two drives seem to be distributed over the 10/8 addresses - how do I tell which is which (is 10/8.15.0 the left or right one?)



Sridhar: Here's the 'vmtab' and 'lvlnboot' output:

# strings /etc/lvmtab
/dev/vg00
06uu
/dev/dsk/c0t6d0
/dev/vgfam
0G0P
/dev/dsk/c9t0d0
/dev/dsk/c9t1d0
/dev/dsk/c9t3d0
/dev/dsk/c9t4d0
/dev/dsk/c9t5d0
/dev/dsk/c9t6d0
/dev/dsk/c9t14d0
/dev/dsk/c9t15d0

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (10/0.6.0) -- Boot Disk
Root: lvol1 on: /dev/dsk/c0t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0

Ivajlo: I don't have an ignite disk.
Ivajlo Yanakiev
Respected Contributor

Re: Rebuilding replaced disks HP-UX 10.01

Iginte is free software you can download it form software.hp.com
Michael D. Zorn
Regular Advisor

Re: Rebuilding replaced disks HP-UX 10.01

Ivajlo: I went to the HP software site - it looks like ignite is only for 11 and up.

Becke
Super Advisor

Re: Rebuilding replaced disks HP-UX 10.01


Hi Michael,

Below is the site to get the ignite-UX for HP version 10.01 os...Use version A if you are going to install on HP os 10.01..

ftp://software.hp.com/dist/swdepot/ignite11_10.01.tar