Operating System - HP-UX
1830898 Members
3281 Online
110017 Solutions
New Discussion

Add new disk on a volume group after insert new disk on HP disk System 2300

 
SOLVED
Go to solution
dlt_2
New Member

Add new disk on a volume group after insert new disk on HP disk System 2300

T added 3 new discs on HP disk System 2300. I would like to know procedure to add this 3 discs on existant volume group ?

ioscan -fnCdisk :

disk 9 0/3/0/1.0.0.1 sdisk CLAIMED DEVICE I2O RAID5
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1

vgdisplay -v vg03
--- Volume groups ---
VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 32768
VGDA 2
PE Size (Mbytes) 64
Total PE 8749
Alloc PE 8749
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg03/lvol1
LV Status available/syncd
LV Size (Mbytes) 559936
Current LE 8749
Allocated PE 8749
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c6t0d1
PV Status available
Total PE 8749
Free PE 0
Autoswitch On
10 REPLIES 10
melvyn burnard
Honored Contributor

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

use pvcreate to mark them to be used in a volume group, then use vgextend to add them into the volume group

man pvcreate
man vgextend
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Steven E. Protter
Exalted Contributor

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

Shalom,

ioscan to see if you can see them.
insf -C disk
pvcreate -f # each new disk

vgextend vg## for each disk.

Then work with the logical volume management.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Reshma Malusare
Trusted Contributor

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

Hi,
1.first create device files for that device using
insf -c disk
2.then to create physical volume
pvcreate -f /dev/rdsk/c1t2d3

-f --> if disk is previously part of other vg.
3.check it with
vgdisplay -v vgname
4.then
vgextend vgname /dev/dsk/c1t2d3
Torsten.
Acclaimed Contributor
Solution

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

Hi,

look at this:

disk 9 0/3/0/1.0.0.1 sdisk CLAIMED DEVICE I2O RAID5
/dev/dsk/c6t0d1 /dev/rdsk/c6t0d1


This is NOT a plain disk!



Your disk chassis is connected to a RAID4si controller. What you can see in the ioscan is a RAID LUN (#1).

You need to create a new LUN on your new disks! Use SAM (the included RAID Manager tool) "irm" to make 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!   
Torsten.
Acclaimed Contributor

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

Once the new LUN is created, you will get a new device file by running "ioscan" followed by "insf -eCdisk", let's say

/dev/dsk/c6t0d2

for LUN2.
Now you should proceed with
pvcreate
and
vgextend.

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!   
Indrajit_1
Valued Contributor

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

Hi;

Please follow the following instruction:

#diskinfo /dev/rdsk/cxtxdx

if all the disks are present, then..

#insf -C disk (optional)

#strins /etc/lvmtab (check if the disk is not used in any VG)
#vgdisplay -v |grep -i disks (cross verify)
if the disks are not present, then..

#pvcreate -f /dev/rdsk/cxtxdx
#vgextend vg03 /dev/dsk/cxtxdx (all the disks)

(please u -g PVG01 with vgextend command if u need to support distribuation policy)

#vgextend vg03 /dev/dsk/cxtxdx (with alternet disk info)
#vgdisplay -v vg03 (check if all the disk are present in the VG)

Please change the PV timeout to 3 min

#pvchange -t 180 /dev/dsk/cxtxdx.

Hope above information will help you to resolve ur issue.

All the best..

Cheers;
Indrajit Roy
Never Ever Give Up
dlt_2
New Member

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

It's ok thanks for all !

1 - I used irm command to create a new logical volume

disk 10 0/3/0/1.0.0.2 sdisk CLAIMED DEVICE I2O RAID5
/dev/dsk/c6t0d2 /dev/rdsk/c6t0d2

2 - i used "insf -eCdisk"

/dev/rdsk/c6t0d2
/dev/dsk/c6t0d2

3 - i used "pvcreate -f /dev/rdsk/c6t0d2"

4 - i used "vgextend vg03 /dev/dsk/c6t0d2"

--- Volume groups ---
VG Name /dev/vg03
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 32768
VGDA 4
PE Size (Mbytes) 64
Total PE 15311
Alloc PE 8749
Free PE 6562
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg03/lvol1
LV Status available/syncd
LV Size (Mbytes) 559936
Current LE 8749
Allocated PE 8749
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c6t0d1
PV Status available
Total PE 8749
Free PE 0
Autoswitch On

PV Name /dev/dsk/c6t0d2
PV Status available
Total PE 6562
Free PE 6562
Autoswitch On
Torsten.
Acclaimed Contributor

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

Looks good!

Ready to assign points?

;-)

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!   
dlt_2
New Member

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

yes but let me how ?
Torsten.
Acclaimed Contributor

Re: Add new disk on a volume group after insert new disk on HP disk System 2300

See the help:

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Have fun!

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!