Operating System - HP-UX
1753546 Members
5462 Online
108795 Solutions
New Discussion юеВ

Re: how to remove a physical disk

 
taouw
Frequent Advisor

how to remove a physical disk

Can anyone help me to remove a disk, mounted in /data2, without mirroring.
3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: how to remove a physical disk

Just remove?

Umount the file system, remove the entry from fstab, delete LV and VG.

Consider to use SAM for this.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sajjad Sahir
Honored Contributor

Re: how to remove a physical disk

1)please Backup all data
2) Umount the filesystem
umount /data2
3) remove the Logical volume
lvremove /dev/vg01/lvname
u should be sure that the disk is not in use:
pvdisplay /dev/dsk/c#t#d#
Look at line starting with Allocated PE the number at the end
of the line should be 0. If it is not the disk is still in use.
2) Remove the disk
vgreduce /dev/vg01 /dev/dsk/c1t6d0
If you are using single pv in VG then u can export it to remove from vg.But it should be deactivate first.
#vgchange -a n vgname
#vgexport vgname

thanks and regards

Sajjad Sahir
Suraj K Sankari
Honored Contributor

Re: how to remove a physical disk

Hi,
Read the attached file When_Good_Disks_Go_Bad.pdf

Suraj