Operating System - HP-UX
1835662 Members
3630 Online
110082 Solutions
New Discussion

Re: cant use disks previously part of volume group

 
SOLVED
Go to solution
golfnut
Frequent Advisor

cant use disks previously part of volume group

10.200.210.55:0-visadr-root $ vgremove sybasedg
vgremove: Volume group "/dev/sybasedg" does not exist in the "/etc/lvmtab" file.
vgremove: Couldn't remove volume group "sybasedg".
10.200.210.55:0-visadr-root $ vgremove sybdg
vgremove: Volume group "/dev/sybdg" does not exist in the "/etc/lvmtab" file.
vgremove: Couldn't remove volume group "sybdg".

10.200.210.55:0-visadr-root $ pvdisplay -v /dev/dsk/c0t10d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c0t10d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c0t10d0".
10.200.210.55:0-visadr-root $ pvcreate -B /dev/rdsk/c0t10d0
pvcreate: The physical volume already belongs to a volume group
10.200.210.55:0-visadr-root $


please advise

thanks

12 REPLIES 12
Patrick Wallek
Honored Contributor
Solution

Re: cant use disks previously part of volume group

You can only do a pvdisplay on a pv that is part of a VG.

When you do a pvcreate and get that error, you need to add the '-f' flag to force the pvcreate.

# pvcreate -f -B /dev/rdsk/c0t10d0

golfnut
Frequent Advisor

Re: cant use disks previously part of volume group

Thanks for that.

I am trying to mirror the boot disk.

I did the pvcreate, vgextedn, mkboot and the commands ran fine.

Now I am trying to use the lvextend command
10.200.210.55:0-visadr-root $ lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t4d0
Usage: lvextend
[-A Autobackup]
{-l LogicalExtentsNumber |
-L LogicalVolumeSize}
LogicalVolumePath [ PhysicalVolumePath... | PhysicalVolumeGroupName... ]
"m": Illegal option.

Why is m illegal??? I cant understand.

Also right now

10.200.210.55:0-visadr-root $ lvlnboot -v /dev/vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t4d0 (56/52.4.0) -- Boot Disk
/dev/dsk/c1t6d0 (56/52.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t4d0
Root: lvol3 on: /dev/dsk/c1t4d0
Swap: lvol2 on: /dev/dsk/c1t4d0
Dump: lvol2 on: /dev/dsk/c1t4d0, 0


/dev/dsk/c1t4d0 is the newly added disk and /dev/dsk/c1t6d0 is the existing boot disk.


why is it showing /dev/dsk/c1t4d0 when I have yet to mirror the logical volumes.

thanks for your response.

golfnut
Frequent Advisor

Re: cant use disks previously part of volume group

swlist | grep Mirror

does not return anything. I guess thats where the problem is.

Now this is a test system and I am trying to test the disk mirroring process. We do have Mirroring in the production server.

Can i install the mirror module on the test box and get it to work for testing purposes.?
thanks

Patrick Wallek
Honored Contributor

Re: cant use disks previously part of volume group

MirrorDisk/UX must be licensed in order to install it. Without MirrorDisk the '-m' option to lvextend will not be available to you.

Your new disk is showing up in lvlnboot because you have done the pvcreate -B and the mkboot commands on the disk.
golfnut
Frequent Advisor

Re: cant use disks previously part of volume group

Thanks for your input.

I do have the HP-UX 11.0 Application Software CD's 1 through 5. Its dated dec 2000. I also have the codeword.

Can i use this?

If so, how? which CD will have the mirroring module?

thanks
Patrick Wallek
Honored Contributor

Re: cant use disks previously part of volume group

MirrorDisk is on Applications CD #1.

You invoke swinstall, point it to the CD, go to one of the menu's in swinstall (I forget which one) and enter the codeword information. After that the MirrorDisk software will be displayed.

You can then mark it and install. Note that the installation will REQUIRE a reboot as it rebuilds the kernel.
Albert Smith_1
Regular Advisor

Re: cant use disks previously part of volume group

Are you running 10.20 or 11.0 or 11i.

You need to install the version applicable for your versioin of the OS. And it does require a kernel change and a reboot. If you have OnLine JFS I would add that as well.
golfnut
Frequent Advisor

Re: cant use disks previously part of volume group


10.200.210.55:0-visadr-root $ uname -a
HP-UX visadr B.11.00 A 9000/816 906338271 two-user license


The CD is dated dec 2000. Will that be fine.

thanks
golfnut
Frequent Advisor

Re: cant use disks previously part of volume group

*******************************
A Remote Procedure Call to a daemon has failed. Could not start a management session for "visadr:/cdrom". Make sure the host is accessible from the network, and that its daemon, swagentd, is running.
**************************************

I do hve swagentd running.

/cdrom is where the cd is mounted.

please advise.
thanks
Robert-Jan Goossens
Honored Contributor

Re: cant use disks previously part of volume group

Check the output of

# nslookup hostname

# nslookup ipaddress_hostname
Kent Ostby
Honored Contributor

Re: cant use disks previously part of volume group

On your original question, when re-using a disk, I'll dd a file over the front of the rdsk so that the old data wont be looked at then redo the pvcreate etc. I know you're past that now, but just to note that.

On the latest error,

check "ifconfig lan0" versus what is in /etc/hosts.

Sometimes a mismatch here causes that problem.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
golfnut
Frequent Advisor

Re: cant use disks previously part of volume group

thanks guys.
that worked