Operating System - HP-UX
1837157 Members
2884 Online
110112 Solutions
New Discussion

Replacement HD - what actions required

 
Kevin Bingham
Regular Advisor

Replacement HD - what actions required

Hi,
We run an L1000 with hp-ux 11.11 and are having a hard disk replaced under warranty. We do not use Mirrorring and have no tape device. The failing HD is related to vg01 and I have backed up "most" of what I can using a combination of "tar cvf xxx.tar xxx" and FTP to another box. This box is used only for porting work, but I would like to limit the work required to get everything restored to a minimum... we are getting the replacement HD to fit ourselves.

Here's what I would like to do
1) install new HD in a spare hot-plug bay
2) create a new VG (vg02) and lvol1, lvol2 to match existing ones
3) change the mount point of vg01/lvol1 and vg01/lvol2 from xxx to xxx.o and yyy to yyy.o respectively
4) create mount point xxx and yyy for vg02/lvol1 and vg02/lvol2 respectively and add to fstab
5) cp -pR /xxx.o /xxx (and same for yyy)
6) then remove vg01, failing HD etc
7) remove vg01 from fstab

So, that's my plan... now, firstly any tips on fine tuning that process. Secondly, as I am a novice with System Admin on hp-ux, could anyone give me detailed command examples on how I would do all of the above (including any missing steps)


Thanks in advance for detailed, clear responses...

Regards
Kevin
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: Replacement HD - what actions required

Instead of cp - I would use vxdump/vxrestore:

vxdump -0 -f - -s 1000000 -b 16 /xxx.0 | (cd /xxx ; vxrestore rf -)

So no tape device - do you backup over the network to another server?

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Kevin Bingham
Regular Advisor

Re: Replacement HD - what actions required

Thanks for the reply, we backup the important stuff to another box every night.

Could you give me more details on your proposal for getting the data transfered? Would this need a lot of swap/tmp space to run or will it do it in "real time".

Space is at a premium, so that might cause problems...
Steven E. Protter
Exalted Contributor

Re: Replacement HD - what actions required

back up data

export the volume group

replace the drive
import the volume group

restore the data

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
Kevin Bingham
Regular Advisor

Re: Replacement HD - what actions required

Hi SEP,

Thanks for the reply. While this might be the way to go, it leaves me with more questions than the answers I was looking for...

e.g. how does one export a vg, and, are you referring to the backups I already have?

As I said... detailed answers for a novice System Admin would be greatly appreciated.

Regards
Kevin