1748089 Members
4802 Online
108758 Solutions
New Discussion юеВ

Re: Adding a new disk

 
navin
Super Advisor

Adding a new disk

Hi I'm returning user.For a long time i have not worked on HP stuffs.Could you guys please help me , i have hp box having 4 disks , i want to craete 2 disk groups with 2 disks and logical volumes. please help.If i use sam "it is throwing an error message "no files found in /dev directory" .Please help .Greatly appreciate your help.
Learning ...
5 REPLIES 5
sassou
Frequent Advisor

Re: Adding a new disk

Helo Navin
Use ioscan -fnuC disk to notice the device files of the disk
And use pvcreate and vgcreate and then lvcreate
See the manual for those command
KUZO
Ian Vaughan
Honored Contributor

Re: Adding a new disk

Can you see the disks on your system with an ioscan ?
$ ioscan -fnC disk
Have you inherited this system from someone else?
Hope that helps - please click "Thumbs up" for Kudos if it does
## ---------------------------------------------------------------------------##
Which is the only cheese that is made backwards?
Edam!
Tweets: @2techie4me
Jeff Schussele
Honored Contributor

Re: Adding a new disk

Hi Navin,

You need to "prepare" the system to add new volume groups. If you want to add the following VGs vg01 & vg02 - do;

ll /dev/vg*
NOTE the minor number of the group file(s) - do not reuse it - then
mkdir /dev/vg01 /dev/vg02
mknod /dev/vg01/group c 64 0x020000
mknod /dev/vg02/group c 64 0x030000
then create the VGs
vgcreate vg01 /dev/dsk/cXtYdZ
vgcreate vg02 /dev/dsk/cXtYdZ

Of course use the appropriate disk devices for these commands & they may need to be initialized beforehand with
pvcreate /dev/rdsk/cXtYdZ #NOTE the need to use the raw device file
and if they've ever been used in a VG before you may need to use -f in that command BUT be forewarned that this is a VERY destructive command so be SURE they are not now in use by another VG

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Rashid Hamid
Regular Advisor

Re: Adding a new disk

Hi Navin

You can find the hardisk using
#ioscan fnC disk

After you find the disk then you have to make the disk available to configure
#pvcreate -f /dev/rdsk/c#t#d#

create vg01 directory
#mkdir /dev/vg01
#mknod /dev/vg01/group c 64 0x010000

Create VG
#vgcreate /dev/vg01 /dev/dsk/c#t#d#

Create logical volume
#lvreate -L -n lvol1 vg01

I'm Parit Madirono/Parit Betak Boyz
Elmar P. Kolkman
Honored Contributor

Re: Adding a new disk

And if the disks were not all connected when installing the system, you might need to run 'insf' to create the device files (this is if ioscan -fnC disk only reports the hardware paths, not the device files).

Welcome back to the wonderful world of HP-UX... ;-)
Every problem has at least one solution. Only some solutions are harder to find.