1834136 Members
2367 Online
110064 Solutions
New Discussion

Extend vg00

 
Tom_183
Occasional Advisor

Extend vg00

I am new on HPUX. I wish someone can help me with this.

Question #1:
I have a D-class HP9000 server with the OS 11.0, My root disk is located on c0t5d0, now it's full, I need to add a disk c0t8d0 to my to the vg00 so I could increase my root directory.

I used this command but unsuccessed, it did not let me to add a disk to the existing vg00.
# pvcreate -f /dev/rdsk/c0t8d0
# vgexted vg00 /dev/dsk/c0t8d0

Question #2:

When I tried to reload the HPUX 11.0 or 11i from the CD. It booted up and did not stop at the point option menu, like "Install HPUX" instead it passed that menu and went direct to the recover menu.

Thanks so much in advance


26 REPLIES 26
melvyn burnard
Honored Contributor

Re: Extend vg00

what error message did you get when hte vgextend failed?
was the # vgexted vg00 /dev/dsk/c0t8d0 just a typo in this question, or did you actually make a typo when you issued the command?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Pete Randall
Outstanding Contributor

Re: Extend vg00

#1) Other than the fact the vgextend is mis-spelled, your command(s) looks correct. What did you get for error messages?

#2) You need to interrupt the boot process when the message appears telling you that you have 10 seconds to do so.


Pete


Pete
Steven E. Protter
Exalted Contributor

Re: Extend vg00

1) You should not need the -f unless there is something on /dev/rdsk/c0t8d0. This procedure is fine.

2) The behavior here is not correct.

What kind of console are you using? For 11i the terminal should be set to EM100 for a correct installation.

As far as increasing space on root fs , what you have done will not help.

You need to extend the volume group and then get an Ignite make_tape_recovery backup.

Then you can boot off tape and reconfigure the system with a larger root fs.

The root fs must be continguous.

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
Tom_183
Occasional Advisor

Re: Extend vg00


I used this command here:

# pvcreate /dev/rdsk/c0t8d0 It took about 10 seconds, then came back to the # sign with no error)

# vgextend vg00 /dev/rdsk This command gave me the error here
" vgextend: couldn't open physical device volume "/dev/dsk/c0t8d0": i/o error.

Like I said earlier, I am a new HPUX. I trying to learn it step by step. I was so impress with all of you responsed so quick. Thanks so much.

Tom B.
Pete Randall
Outstanding Contributor

Re: Extend vg00

Hi Tom,

Are you sure of the device /dev/dsk/c0t8do?

What do you get from the "ioscan -kfnCdisk" command? Post the results here, if you would, please.


Pete


Pete
Tom_183
Occasional Advisor

Re: Extend vg00

Ooph, Sorry missed spell.

vgextend vg00 /dev/dsk/c0t8d0

Anyway, would someone please give me the procedure how I want to extend my root fs ?

Thanks
Tom B
Steven E. Protter
Exalted Contributor

Re: Extend vg00

NP sir.

ioscan -fnC disk

Does the device show up as claimed.

If not, pick a different disk.

ll /dev/dsk/c0t8d0
ll /dev/rdsk/c0t8d0

are they there?

Since you are new, if we help, please assign points. We like helping.

Its fun.

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
Tom_183
Occasional Advisor

Re: Extend vg00

yes, ioscan showed all claim.

Here is the ouput from ll
# ll /dev/dsk/c0t8d0
brw-r----- 1 bin system 31 0X008000 (then the date, /dev/dsk/c0t8d0)

I also have another 8 disk from A3312A, I already used it for vg01, how do I remove those disks from vg01 ?

Pete Randall
Outstanding Contributor

Re: Extend vg00

The easiest way, assuming you have no need for VG01, is to use vgexport. First inactivate the VG: vgchange -a n /dev/vg01. The vgexport the VG: vgexport /dev/vg01.


Pete


Pete
Pete Randall
Outstanding Contributor

Re: Extend vg00

Tom,

Could you post the results from "ioscan -kfnCdisk", please?

Thanks,


Pete


Pete
Steven E. Protter
Exalted Contributor

Re: Extend vg00

Now that things are beginning to get muddled up, I'd like to see additional output.

strings /etc/lvmtab

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
Tom_183
Occasional Advisor

Re: Extend vg00

# ioscan -kfnCdisk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 3 8/12.0.0 sdisk CLAIMED DEVICE HP C3586A
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 4 8/12.0.1 sdisk CLAIMED DEVICE HP C3586A
/dev/dsk/c0t0d1 /dev/rdsk/c0t0d1
disk 5 8/12.0.2 sdisk CLAIMED DEVICE HP C3586A
/dev/dsk/c0t0d2 /dev/rdsk/c0t0d2
disk 6 8/12.2.0 sdisk CLAIMED DEVICE HP C3586A
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
disk 7 8/12.2.1 sdisk CLAIMED DEVICE HP C3586A
/dev/dsk/c0t2d1 /dev/rdsk/c0t2d1
disk 8 8/12.2.2 sdisk CLAIMED DEVICE HP C3586A
/dev/dsk/c0t2d2 /dev/rdsk/c0t2d2
disk 0 8/12.5.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 8/12.8.0 sdisk CLAIMED DEVICE SEAGATE ST34572WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 2 8/16/5.2.0 sdisk CLAIMED DEVICE NEC CD-ROM DRIVE
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
Tom_183
Occasional Advisor

Re: Extend vg00

here is the output from lvmtab

"# cat /etc/lvmtab
??/dev/vg01wEa:>??t??/dev/dsk/c0t0d0/dev/dsk/c0t0d2/dev/dsk/c0t2d0/dev/dsk/c0t2d2/dev/vg00wEa:

I will be back in the next 3 hours, thanks so much for helping.

Pete Randall
Outstanding Contributor

Re: Extend vg00

Tom,

You can't "cat" /etc/lvmtab. You need to use the "strings" command: "strings /etc/lvmtab".


Pete


Pete
Pete Randall
Outstanding Contributor

Re: Extend vg00

Tom,

In addition to "strings /etc/lvmtab", would you also post the output of "pvdisplay /dev/dsk/c0t8d0".

Thanks,


Pete


Pete
Tom_183
Occasional Advisor

Re: Extend vg00

Here is the ouput for your requested:
# strings /etc/lvmtab
/dev/vg01
wEa:>
/dev/dsk/c0t0d0
/dev/dsk/c0t0d2
/dev/dsk/c0t2d0
/dev/dsk/c0t2d2
/dev/vg00
wEa:<
/dev/dsk/c0t5d0

# pvdisplay /dev/dsk/c0t8d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c0t8d0" belongs.
Ivajlo Yanakiev
Respected Contributor

Re: Extend vg00

HI

Problem

1. Installation
You have problem with terminal emulation.
Check your client config and use VT100 or simply use other program like minicom or hyper term.

2. Root extend

First you have to know that root must be small.
root is place where you put all other mount points and contains all admin staff. 100-200 MB is nice. Do not extend root becauce you will have problem with make_recovery.
Use other file system for user data or big logs.

But if you want you can do it.
Use make_recovery and use tape for recovery.



Pete Randall
Outstanding Contributor

Re: Extend vg00

Tom,

At this point, I would re-try your original vgextend command: "vgextend vg00 /dev/dsk/c0t8d0 "

If it still fails, there may be something wrong with the disk. Try running dd against it: "dd if=/dev/rdsk/c0t8d0 of=/dev/null bs=1024k". This will effectively read the entire disk so that we can scan for errors. If you get any I/O errors from this command, then we've got a bad disk.


Pete


Pete
Tom_183
Occasional Advisor

Re: Extend vg00

I think I might have a bad disk. I read somewhere in the HP documment, saying about extend the vg00 which is located on lvol3 will not work on a live system. Would it be correct ?

# dd if=/dev/rdsk/c0t8d0 of=/dev/null bs=1024k
dd read error: Invalid argument
0+0 records in
0+0 records out
Pete Randall
Outstanding Contributor

Re: Extend vg00

Tom,

vg00/lvol3 is probably /, or the root file system. That's right that you can't extend that logical volume online. As a matter of fact, since it has to be contiguous space, it gets quite complicated.

But - that's not your problem. You're just trying to extend the Volume Group, not a particular Logical Volume (yet). From the results of your dd test, I would tend to agree that the disk is bad, though I would have expected an I/O error rather than the "invalid argument". In any case, I think you need to contact HP about getting your disk replaced.


Pete


Pete
Pete Randall
Outstanding Contributor

Re: Extend vg00

Tom,

I just noticed, did you actually have a space between the "bs=" and the "1024K"? If so, remove it and try again.


Pete


Pete
Tom_183
Occasional Advisor

Re: Extend vg00

I ran that command again, there is no space between the bs=1024k.

So it's a bad disk ?

# dd if=/dev/rdsk/c0t8d0 of=/dev/null bs=1024k
dd read error: Invalid argument
0+0 records in
0+0 records out
Pete Randall
Outstanding Contributor

Re: Extend vg00

Tom,

The dd test is usually quite definitive. I would say yes, it's bad.


Pete


Pete
Tom_183
Occasional Advisor

Re: Extend vg00

Thanks everyone for your help. The disk on c0t8d0 was bad. I was able to extend the volume group.

Tom B