Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Steps to replace a hard-drive

Status
Not open for further replies.

rcbatlinux

Technical User
Mar 30, 2001
80
US
What is the recommended steps to replace a hard-drive?

I did this but had a problem.

1) Through smit backed up vg01 which is the volume group on this hard-drive.

2) IBM replaced hard-drive.

3) Went into smit and restored the tape but it put it in the rootvg which ran out of space.

4) Tried the remake volume group command
in smit. That didn't work. I noticed the file system was on the list but did
not have all of its information in it. Tried to recreate the file system and
could not. At one point it said I had to varyonvg. Then I tried to varyon
thru smit by activating and by using the command varyonvg vg01 and would not
let me.I can't remember when exactly it told me this but something about
"not having a good descriptor of the pv" hdisk2 was there but not all of its
information.

What is missing here?

rcbatlinux


 
In disk removal this is what I would do, I assume that vg01 is just located on one disk?? that is what my steps are based on:

If the disk is goosed - ensure the following:

1) All filesystems are unmounted and that the volume group is varied off.

df -k

varyoffvg vg01

2) Ensure that the volume group definition is exported from the system:

exportvg vg01

N.B. Check that is /etc/filesystems there are no filesystem definitions remaining.

Ensure that hdisk1 is no longer part of a VG

lspv

3) Remove the old disk from the ODM:

rmdev -dl hdisk1

4) Shutdown the server and replace the disk.

5) Restore the volume group via restvg - specify the disk name.....(I have no idea why it restored to rootvg unless you specified the wrong disk).

6) Job done.

I assume that you followed the correct steps to ensure correct removal of both the VG and PV from the system?

Post any other updates you may have

Cheers PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top