Operating System - HP-UX
1758669 Members
2845 Online
108874 Solutions
New Discussion юеВ

How to create volume group? Please suggest.

 
GnanaShekar
Regular Advisor

How to create volume group? Please suggest.

Hi,


We have a HP-IPF (HPUX 11iv2) server with 4 36GB hard disk.
The OS is installed on one of the hard disks.
I want to create a volume group out of the remaining 3 hard disk.
This my first time with disk management in HPUX.
Please suggest.


Thanks & Regards,
-GnanaShekar-
9 REPLIES 9
Court Campbell
Honored Contributor

Re: How to create volume group? Please suggest.

I would suggest using one of the disks to mirror your root disk. then use the other two for another volume group.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Torsten.
Acclaimed Contributor

Re: How to create volume group? Please suggest.

Do you want to mirror the disks?

In this case you have to decide what disks to use for boot, boot mirror, data and data mirror.

If you don't want this, just run SAM, go to disk section, select the disks and create the VG. The wizard will guide you.

Because this is the first time, I would suggest to read this:

http://docs.hp.com/en/B2355-90950/ch06.html

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!   
Court Campbell
Honored Contributor

Re: How to create volume group? Please suggest.

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en&docId=emr_na-c01019997-1
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
GnanaShekar
Regular Advisor

Re: How to create volume group? Please suggest.

$ sudo ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
==========================================================================
disk 0 0/0/2/0.0.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3


disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GMAM3367MC
/dev/dsk/c0t2d0 /dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0 /dev/rdsk/c0t2d0s2
/dev/dsk/c0t2d0s1 /dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s1 /dev/rdsk/c0t2d0s3


disk 2 0/0/2/1.3.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c1t3d0 /dev/rdsk/c1t3d0


disk 3 0/1/1/0/1/1.0.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c3t0d0 /dev/dsk/c3t0d0s2 /dev/rdsk/c3t0d0 /dev/rdsk/c3t0d0s2
/dev/dsk/c3t0d0s1 /dev/dsk/c3t0d0s3 /dev/rdsk/c3t0d0s1 /dev/rdsk/c3t0d0s3


disk 4 0/1/1/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GMAN3367MC
/dev/dsk/c3t2d0 /dev/dsk/c3t2d0s2 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s2
/dev/dsk/c3t2d0s1 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0s1 /dev/rdsk/c3t2d0s3


$ bdf
Filesystem kbytes used avail %used Mounted on
/dev/dsk/c0t2d0s2 30449664 20756096 9684448 68% /


c0t2d0s2 is used, I can use the physical disks c0t0d0s2, c3t0d0s2 & c3t2d0s2.

If I go by the SUN convention, I think the slice2 (c0t0d0s2) is the one that represents the entire disk.

Please suggest.
Torsten.
Acclaimed Contributor

Re: How to create volume group? Please suggest.

Now we know this is an Integrity server ;-)

The device c0t0d0s2 is not the entire disk, it is the HP-UX partition of the boot disk.
1. partition is EFI (boot related)
2. partition is HP-UX
3. partition is service partition

You already have these partitions on all 4 (!) disks - is this intended?

Are you sure you want to overwrite all 3 disks?

Let's run
vgdisplay -v
and
strings /etc/lvmtab

to see at least the config valid for this running OS.


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!   
GnanaShekar
Regular Advisor

Re: How to create volume group? Please suggest.

$ vgdisplay -v
--- Volume groups ---
VG Name /dev/datavg
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 8683
VGDA 2
PE Size (Mbytes) 4
Total PE 8681
Alloc PE 8681
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/datavg/lvdata1
LV Status available/syncd
LV Size (Mbytes) 34724
Current LE 8681
Allocated PE 8681
Used PV 1


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


$ sudo strings /etc/lvmtab
Password:
/dev/datavg
/dev/dsk/c0t0d0
Torsten.
Acclaimed Contributor

Re: How to create volume group? Please suggest.

Your config looks very strange to me.
Did you set up the server? For testing?

Just for curiosity: what gives "swapinfo"?

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!   
GnanaShekar
Regular Advisor

Re: How to create volume group? Please suggest.

Hi,

$ swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4193613 0 4192256 0% 30449664 - 1 /dev/dsk/c0t2d0s2
reserve - 435772 -435772
memory 10479440 2787004 7692436 27%

It seems like there is volume group datavg (c0t0d0) that is not being used.

Also c0t2d0s2 is where the OS is installed and also is used for swap.

A UNIX admin, in my position earlier has set this up. I have to now maintain these.

Please suggest.
Thanks & Regards,


Torsten.
Acclaimed Contributor

Re: How to create volume group? Please suggest.

Again, very strange.

To be honest - I would either install it from scratch or never touch it.
;-)

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!