1846608 Members
1908 Online
110256 Solutions
New Discussion

Re: Adding Disk

 
eykyn17
Advisor

Adding Disk

Hi,

I have a HPC3600 Worstation running on HPUX11.11 then it has only 1 disk installed at slot 6.

Right now I added another disk and placed it to the slot5 then the systme recognized the disk, but this disk has a data on it. My question is:
1.How would I destroy the data I mean just like format the drive to make it usable?
what command should i use?
2.How to add this to a volume group
5 REPLIES 5
Peter Godron
Honored Contributor

Re: Adding Disk

Hi,
use SAM, it will do all the work for you.
When you add the disk to a volume group SAM will recognise that the disk has been used before and ask if you want to use this disk.
If you say yes, SAM will issue the mkfs in the background, which will ready the disk for re-use.
wip
Frequent Advisor

Re: Adding Disk

Hi,

You can use "pvcreate" command to re-create LVM structure on the disk

use command vgexntend to extend this disk to an existing vg

use vgcreate command to make this disk part of a new vg

lets us know if you need more help

hth
Wip
Naveen R
Occasional Advisor

Re: Adding Disk

Hi,

First you can destroy the data using mediainit command and create a PV on that disk.You can use the following procedure to add the disk in a VG

mediainit /dev/rdsk/cXtYdZ

pvcreate -f /dev/rdsk/cXtXdX

vgextend /dev/vgXX /dev/dsk/cXtXdX
Rajeev  Shukla
Honored Contributor

Re: Adding Disk

After the system has recognised the disk you need to do
1. pvcreate /dev/rdsk/c?t?d? (disk device file which you can get from ioscan -fnCdisk command
If you want to add this disk to existing volume group as vg00
2.vgextend /dev/dsk/c?t?d? /dev/vg00
of if you want to create a new volume group say vg01
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000 (check for a free minor number)
vgcreate /dev/vg01 /dev/dsk/c?t?d?
eykyn17
Advisor

Re: Adding Disk

thanks for all your inputs