1752785 Members
5878 Online
108789 Solutions
New Discussion юеВ

Re: vgextend

 
sassou
Frequent Advisor

vgextend

hi,
how to extend a new disk plug into disk array 12H?
1 After pluging the disk, the array make the balancing,
# ioscan show the new disk
/dev/rdsk/cxtydz.
So I create a new lun .
vgextend /dev/vgxx /dev/rdsk/cxtydz .
I have this error:
phisical volume is not a block sp├Г┬йcilal file.
I need a help.
Thank you.
7 REPLIES 7
Gary L. Paveza, Jr.
Trusted Contributor

Re: vgextend

I believe you need to pvcreate the disk first:

pvcreate /dev/rdsk/cxtydz

Then you can vgextend a volume group to include that disk.
KapilRaj
Honored Contributor

Re: vgextend

pvcreate and then vgextend !!

for pvcreate use /dev/rdsk/c?t?d?
for vgextend use /dev/dsk/c?t?d?

Kaps
Nothing is impossible
melvyn burnard
Honored Contributor

Re: vgextend

as your error message states:
physical volume is not a block special file.

You have specified the raw device /dev/rdsk/cxtydz

use /dev/dsk/cxtydz
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Jose Mosquera
Honored Contributor

Re: vgextend

Hi,

# arraycfg -L -a [M|G]
# ioscan
# insf -e
# ioscan
# pvcreate pvcreate -f /dev/dsk/cxtxd
# vgextend /dev/vgxx /dev/dsk/cxtxd

Regards.
Steve Lewis
Honored Contributor

Re: vgextend

Hopefully you bound a new LUN to make this disk file and aren't going to overwrite something else.

Your ioscan shows that you have no block special file for it.
Create one using
insf -H 0/7/0/0.0.1

or use
mknod /dev/dsk/cXtYdZ b 31 minor-number where the minor number is the same as that of the file in /dev/rdsk.

When you have pvcreated the disk you will be able to add it to a volume group, provided your VG has sufficient PE/PV for the LUN.

Jose Mosquera
Honored Contributor

Re: vgextend

Hi again,

If you prefer, use "ioscan -kfnC disk" to find the device files easily!

Rgds.
Geoff Wild
Honored Contributor

Re: vgextend

Yes, as other have said - vgextend /dev/vgXX /dev/dsk/cXtXdX

not rdsk.

If it shows in ioscan -funC disk, then no need to insf.

If disk is new - then you will have to pvcreate it first:

pvcreate /dev/rdsk/cXtXdX

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.