Operating System - HP-UX
1838053 Members
5684 Online
110124 Solutions
New Discussion

question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?

 
小马哥_1
Contributor

question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?

question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?

You can use mediainit or you can use dd:

dd if=/dev/random of=/dev/rdsk/cXtXdX bs=1024k


Pete

Pete
J. Bravo
Respected Contributor

Re: question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?

Hi!

pvremove /dev/rdsk/cxtxdx

Regards;

J. Bravo.
Robert-Jan Goossens
Honored Contributor

Re: question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?

Hi,

You mean erase all data from a disk?

# dd if=/dev/zero of=/dev/rdsk/cxtydz bs=1024k

Regards,
Robert-Jan
Jaime Bolanos Rojas.
Honored Contributor

Re: question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?

Sir/lady!

Go with the dd command explained above or the mediainit command:

http://docs.hp.com/en/B2355-90689/mediainit.1.html

Regards,

Jaime.
Work hard when the need comes out.
Vijay Dsouza
Frequent Advisor

Re: question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?

Hi,
use the command below

mediainit -f /dev/rdsk/cxtxdx

Note : This task would take time depending on the size of the disk.


Cheers

Vijay
Victor BERRIDGE
Honored Contributor

Re: question:how can HPUX format a disk,delete info of LVM(PVRA/VGRA)?

Mind you a pvcreate -f does also a nice job...


All the best
Victor