1837195 Members
2333 Online
110115 Solutions
New Discussion

Re: Raw Disks

 
SOLVED
Go to solution
James Odak
Valued Contributor

Raw Disks

Anyone know of any Documentaion for setting up Raw Disks on HP-UX 11.00
in particular for a sybase database?


Thanks
9 REPLIES 9
John Palmer
Honored Contributor

Re: Raw Disks

Setting up raw disk areas for database use is just a matter of creating an appropriate LVM logical volume.

Check out the man pages for lvcreate, lvextend etc.
James Odak
Valued Contributor

Re: Raw Disks

ahh i've done that, i guess i was expecting a special command other then newfs to indicate it was raw ..if not, im done already ..thanks
Alan Riggs
Honored Contributor

Re: Raw Disks

no special command. After you create your lvols, you are done.
John Palmer
Honored Contributor

Re: Raw Disks

James,

Just make sure that you use the character device file for the logical volume i.e. /dev/vg01/rlvol1

Regards,
John
Sharon Bi
Frequent Advisor
Solution

Re: Raw Disks

James,

The database group in our company has the same requirement. eg. they require to create /dev/vg02/database as raw disk. Only user: sybase can access that.

After you finish the lvcreate command, cd to /dev/vg02. do a "ls", you will see three files: group, database and rdatabase. Just do a "
chown sybase:sybase /dev/vg02/database
chown sybase:sybase /dev/vg02/rdatabase "

(assume user sybase belongs to group:sybase )

Then you are done!


Sharon Bi
Frequent Advisor

Re: Raw Disks

James,

The database group in our company has the same requirement. eg. they require to create /dev/vg02/database as raw disk. Only user: sybase can access that.

After you finish the lvcreate command, cd to /dev/vg02. do a "ls", you will see three files: group, database and rdatabase. Just do a "
chown sybase:sybase /dev/vg02/database
chown sybase:sybase /dev/vg02/rdatabase "

(assume user sybase belongs to group:sybase )

Then you are done!


Sharon Bi
Frequent Advisor

Re: Raw Disks

James,

The database group in our company has the same requirement. eg. they require to create /dev/vg02/database as raw disk. Only user: sybase can access that.

After you finish the lvcreate command, cd to /dev/vg02. do a "ls", you will see three files: group, database and rdatabase. Just do a "
chown sybase:sybase /dev/vg02/database
chown sybase:sybase /dev/vg02/rdatabase "

(assume user sybase belongs to group:sybase )

Then you are done!


Bill Hassell
Honored Contributor

Re: Raw Disks

Since raw disks are just like any any other logical volume, the sysadmin must be very careful to document these disks. SAM knows nothing about Sybase (or any other raw disk users) so one might accidently put a filesystem on these disks.

I like to put a comment in fstab so at least there is a note about every logical volume. That way, there is a record of the use of these disk(s).


Bill Hassell, sysadmin
Bill Hassell
Honored Contributor

Re: Raw Disks

Since raw disks are just like any any other logical volume, the sysadmin must be very careful to document these disks. SAM knows nothing about Sybase (or any other raw disk users) so one might accidently put a filesystem on these disks.

I like to put a comment in fstab so at least there is a note about every logical volume. That way, there is a record of the use of these disk(s).


Bill Hassell, sysadmin