Operating System - HP-UX
1834650 Members
2373 Online
110069 Solutions
New Discussion

installing a new /users disk

 
SOLVED
Go to solution
wayne johnson_1
Occasional Contributor

installing a new /users disk

Hi:
We have an HP C110/9000 UNIX box running HPUX 10.2E. We would like to replace our current /users (HD) with a larger one. My question:

Is replacing a hard drive on a UNIX machine as simple as doing it on a PC?

I plan to back up the current /users disk on a tape, install the new disk, and then copy the data back to the new disk from the tape. Is it really that simple?
Thanks
6 REPLIES 6
Michael Tully
Honored Contributor

Re: installing a new /users disk

No it is not that simple. You need to first
make sure that the drive that /users resides
on is not shared with anything else.

Run 'bdf' it will tell you what volume group
that /users belong to.

e.g. for volume group vg00

/dev/vg00/lvol3 143360 92519 47713 66% /
/dev/vg00/lvol1 83733 30224 45135 40% /stand
/dev/vg00/lvol8 2097152 1349655 705228 66% /var
/dev/vg00/lvol7 909312 553946 333171 62% /usr
/dev/vg00/lvol6 512000 4402 476465 1% /tmp
/dev/vg00/lvol5 1024000 655382 345588 65% /opt
/dev/vg00/lvol4 524288 382571 132881 74% /home

From this the middle portion 'vg00' is the volume group.

Run 'vgdisplay -v /dev/vg00' will tell you what
is in that volume group. You need to work this out before going any further.

Michael


Anyone for a Mutiny ?
S.K. Chan
Honored Contributor

Re: installing a new /users disk

It is that simple if and ONLY if you do not use LVM on your disk and there is only one disk mounted as /users. Otherwise it would be like what Michael has mentioned. Why don't you provide these info so that we can help you better ..
# bdf
# vgdisplay -v
John Carr_2
Honored Contributor

Re: installing a new /users disk

Hi

it can be fairly simple if you have only one h/d and a tape drive.

check to see if you have ignite installed

ls /opt/ignite/bin

if not install from applications CD.

backup system using
/opt/ignite/bin/make_recovery -A

install new disk

boot system, interrupt boot process and make system boot from recovery tape.

system should now be identical to when old disk was removed.
cheers
John.
wayne johnson_1
Occasional Contributor

Re: installing a new /users disk

Thanks for the quick replies. Here is the output you requested:

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/dsk/c0t6d0 1538713 1259210 125631 91% /
/dev/dsk/c0t5d0 4103198 2401348 1291530 65% /users

# vgdisplay -v
#

wayne
wayne johnson_1
Occasional Contributor

Re: installing a new /users disk

Also, the / (root) disk is a separate HD from the /users disk (HD).


Wayne
Michael Tully
Honored Contributor
Solution

Re: installing a new /users disk

Hi Wayne,

Having a non-LVM configuration is somewhat
unusual these days.

Anyway... back to your question:

This should be simple:

Yes do create you backup, you could use
'fbackup' for example:

# fbackup -i /users -f /dev/rmt/0m
(assuming /dev/rmt/0m is your tape drive)
Verify your tape contents:
# frecover -I /tmp/index.out
(view the output with vi)

unmount /users or shutdown the system cleanly.
Install new disk
Start the machine, once up make sure that you
can talk to the disk:

# ioscan -fn (see the new disk)
# diskinfo /dev/rdsk/c0t5d0 (assuming that is the device)
(I would make sure that the disk has a different SCSI
id to others, make it 4, so that your device should
be /dev/dsk/c0t4d0)

# sam
--> Disks and Filesystems
--> From the actions menu
--> choose mount and follow the instructions.

It should be that simple.

Recover from your backup tape
# frecover -x -f /dev/rmt/0m

HTH
~Michael~
Anyone for a Mutiny ?