Operating System - HP-UX
1836441 Members
3835 Online
110100 Solutions
New Discussion

Re: How to create logical volume on newly added FC Disk

 
SOLVED
Go to solution
RAJHANS MILIND
Occasional Contributor

How to create logical volume on newly added FC Disk


Can anybody guide me on how to create LV on newly added FC disk
13 REPLIES 13
Jose Mosquera
Honored Contributor

Re: How to create logical volume on newly added FC Disk

Hi,

Are you connected to a Storage Area Network (SAN)? Is this new disk inside of SAN?

Rgds.
sarfaraj ahmad
Trusted Contributor

Re: How to create logical volume on newly added FC Disk

Hi,

Jose is correct. please tell more about your scenario and how you want to utilize this disk?
Solution

Re: How to create logical volume on newly added FC Disk

follow the following steps

( to configure the disk on hp-ux)
#ioscan -fn
#ioscan -funCdisk
(Check the disk present onto the system)
identify the disk and note down the device file . e.g /dev/dsk/c0t1d2

go to sam -> disk and filesystem -> volume groups ->actions create vg.

on options enter the new vg name. select the disk that you noted in ioscan.
there also got the tab to create the lv.

follow these easy steps.


Manix
Honored Contributor

Re: How to create logical volume on newly added FC Disk

Where you want to create a lvol , are you adding the disk to existing VG or planing to create a new one.

What are you plans.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
RAJHANS MILIND
Occasional Contributor

Re: How to create logical volume on newly added FC Disk

Thanks for your response.

I need to actually extend one of my logical volume vg02 where raw files has to be created on which i need to create table space. (one of the table space is showing 91% Usage )

I have 2 FHDD in spare and want to add in disk enclosure. After addition of the disk, lv has to be created as raw device file on which i can extend table space.

Manix
Honored Contributor

Re: How to create logical volume on newly added FC Disk

>>I need to actually extend one of my logical volume vg02
..this is volume group vg02 where you need to add disks and then create lvol ( raw device )

pvcreate /dev/rdsk/cxtxdx ( for each disk )
vgextend vg02 /dev/dsk/cxtxdx ( for each disk )
lvcreate -L M -n lvolname vg02

so in this way you may create a new logical volume.
HP-UX been always lovable - Mani Kalra
Jose Mosquera
Honored Contributor

Re: How to create logical volume on newly added FC Disk

Hi,

In principle only needs to know if you have enough free physical extents in vg02 to host your required raw area. Raw devices are placed over non-formated areas.
#vgdisplay -v vg02

Rgds.
Ismail Azad
Esteemed Contributor

Re: How to create logical volume on newly added FC Disk

Hi,

You haven't mentioned your operating system or LVM version because here it does matter. Adding to Manix's comments... the following commands will be required if you are using LVMv1 or releases 11.23 and before.

Before vgcreate execute :-
mkdir /dev/vg02
mknod /dev/vg02/group c 64 0x020000

Remember the number you see there after c can be 64 or 128 depending on the LVM version. LVMv1 has kernel driver 64 and v2 has 128.

> Manix

lvcreate -L M -n lvolname vg02

As of my knowledge the lvcreate takes the size in megabytes by default unlike fsadm. Not sure about that "M". You don't require it!

Don't forget to assign points rajhans.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Manix
Honored Contributor

Re: How to create logical volume on newly added FC Disk

Thanks Ismail
I just mean to says "mbs" by M -)

Thanks
Manix
HP-UX been always lovable - Mani Kalra
Manix
Honored Contributor

Re: How to create logical volume on newly added FC Disk

>>>I need to actually extend one of my logical volume vg02>> ..looks he wants to extend the vg of course he hasn`t mentioned the comment very correctly.

Thanks
Manix
HP-UX been always lovable - Mani Kalra
RAJHANS MILIND
Occasional Contributor

Re: How to create logical volume on newly added FC Disk

Thanks for the response.

Operating System is HP-UX 11i.

I have inserted the disks 2 nos in the enclosure and leveling process is completed successfully.

Now i need to create raw device file as per our structure on which i need to create the table space.

What to do ?
sarfaraj ahmad
Trusted Contributor

Re: How to create logical volume on newly added FC Disk

just create LV and don't create file sysyem on that and provide the raw path for the LV (example: /dev/vg/rLV) to application owner.
if require you can give appropriate permission also to this raw lv.
Manix
Honored Contributor

Re: How to create logical volume on newly added FC Disk

There is no fs (vxfs ) created on lvol until
you runs newfs -F vxfs ,so you have the raw device rest needs to done from oracle / application side.

Thanks
Manix
HP-UX been always lovable - Mani Kalra