1849296 Members
5744 Online
104042 Solutions
New Discussion

Re: Raw logical volume

 
Suni Raj
Advisor

Raw logical volume

Hi, I am new to hp-ux admin. Client want me to create a new raw logical volume and give ownership to sybase. Can any admin tell me what exactly I need to do(commands) to create a raw LV and giving ownership.

Thanks
Raj
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: Raw logical volume

You can either use SAM or LVM commands. The lvcreate command is used to create a logical volume. If you need to create space for your logical volume, you might have to create or extend a volume group with pvcreate/vgcreate or vgextend.

Once you've created the logical volume, you refer to the raw LV as /dev/vg__/rlvol_


Pete

Pete
Suni Raj
Advisor

Re: Raw logical volume

Hi Pete, thanks a lot for ur help. Could you also pls tell me how i assign this raw device to sybase user. The user name is sybase and group is sybadm.

Regds
Suni
Victor Fridyev
Honored Contributor

Re: Raw logical volume

Hi,

In order to create a logical volume, run

lvcreate -L sizeMB -n lvolname /dev/vgname

In order to set ownership/permissions, run

chown sybase /dev/vgname/lvolname or
chown sybase /dev/vgname/rlvolname,

depending on the type of device, which is used (I guess, it's rlvolname).

By the same way you can change permissions, i.e
chmod 755 /dev/vgname/rlvolname

HTH
Entities are not to be multiplied beyond necessity - RTFM
Pete Randall
Outstanding Contributor

Re: Raw logical volume

Not sure about Sybase, we're an Informix shop. You might have to "chown sybase:sybadm /dev/vg__/rlvol__". Instead, you might have to create a link to the raw logical device that is owned by sybase. You'll have to check with our DBA.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Raw logical volume

Sorry - make that "your DBA"


Pete

Pete
Nguyen Anh Tien
Honored Contributor

Re: Raw logical volume

raw divice means logical volume without defining fstype(vxfs, hfs...)
so you can create LV by
#lvcreate -L sizeinMB -n name /dev/vgxx
#chown user:group /dev/vgxx/rname
That's all.
HTH
tienna
HP is simple
JASH_2
Trusted Contributor

Re: Raw logical volume

I had great fun trying to organise a raw volume group for sybase. Simple enough to create raw file, I just used SAM. You then need to link the raw device to the databse filesystem that you are building for the sysbase installation.i.e.

ln -s /dev/vgxx/rlvoly /sybase/dbsys1

Regards,

JASH
If I can, I will!
PAMvDam
Occasional Visitor

Re: Raw logical volume

Personally, I would't do the linking. Within Sybase your DBA has the possibility to use the raw logical volume filename for the database devices (disk init <...>).

Creating symlinks will increase the burden of System administration and most probably confuse others.

Best regards,

Pascal
HGN
Honored Contributor

Re: Raw logical volume

Hi

If you feel this issue is resolved,please close this and assign points since you have assigned points to only 11 out 52 posts

Rgds

HGN