Operating System - HP-UX
1753602 Members
6389 Online
108797 Solutions
New Discussion юеВ

how to completely remove a drive

 
SOLVED
Go to solution
Steven Chen_1
Super Advisor

how to completely remove a drive

Hi,

By completely removing a drive, I'd do the followings:

umount /dev/vg07/lvol1
vgchange -a n /dev/vg07
vgexport /dev/vg07

Please tell me if I have done enough to get it clean, so that I don't have problem on the next reboot and add a new drive.

All help is appreciated.

Steven
Steve
4 REPLIES 4
saju_2
Respected Contributor
Solution

Re: how to completely remove a drive

HI steven

With the above command the information about the Volume group vgo7 is removed from the server.ie Now the server now doesn't know that there was a VG with vg07 existed in the server. But i am not sure whether this is what u require. "Adding a new drive, removing a drive" --are u refering to disk? What exactly u require on the next reboot..

Regards
CS

generic_1
Respected Contributor

Re: how to completely remove a drive

umount
lvremove
vgreduce disks in vg
vgremove
delete fstab entry
rmsf the device files
Note the way hpux assigns channels this will not reclaim them.
generic_1
Respected Contributor

Re: how to completely remove a drive

Depending on the type of drive and enclosure you might not even have to reboot. What problem are you having with your current drive?
S.Arunkumar
Trusted Contributor

Re: how to completely remove a drive

Hi Steven

If you want to do a drive replacement with existing LVM structure then

#umount all the parttions in /dev/vg07
#vgchange -a n /dev/vg07
#vgcfgbackup /dev/vg07
#vgexport /dev/vg07
Replace the new disk
#vgcfgrestore
#vgchange -a y /dev/vg07
#mount the filesystems

You need to restore the data from the backup

Regards
S.Arunkumar