1819839 Members
2624 Online
109607 Solutions
New Discussion юеВ

raw device size

 
SOLVED
Go to solution
wish_1
Frequent Advisor

raw device size

dear all

I want to know how take the size of raw devices & how to add new raw device both in solaris 9 and HP-UX 11i

thanks in adv
regards
wish
4 REPLIES 4
Geoff Wild
Honored Contributor

Re: raw device size

In HP-UX - diskinfo will show you the size of the raw device.


"Managing Disks"

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


In Solaris - I believe the command is prtvtoc and metainit to create raw devices - check out http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWaadm/LOGVOLMGRADMIN/toc.html


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rajeev  Shukla
Honored Contributor

Re: raw device size

In HPUX you add RAW device by adding a LV
lvcreate -L -n
this will create block and character device files in the VG and the character device files are the RAW device files (starting with a prefix of r)

Now to get the size of that RAW device file you use lvdisplay command but use the block device file instaed of character device file
Alzhy
Honored Contributor
Solution

Re: raw device size

Wish, Peace.

If you use VxVM on Solaris and HP-UX as most shops nowadays do, the command is something like:

vxassist -g sapdg make maaster01_dbf 8g layout=striped ncols=8 stwidth=64

Your RAW device will then be:

/dev/vx/rdsk/sapdg/master01_dbf


If using Solaris' native volume manager (Disksuite or SVM):

metainit

Your Raw device will be something like:

/dev/md/rdsk/d100

If using HP's native LVM (Above VxVM stripe will be built simlarly using:):

lvcreate -i 8 -I 64 -L 8192 -n master01 vgsap

Your RAW device will be(note the r):

/dev/vgsap/rmaster01



Hope this helps.
Hakuna Matata.
Alzhy
Honored Contributor

Re: raw device size

ANd if you want to find know the sizes of your RAW devices:

HP-UX/SOlaris running VxVM:

vxprint -Aht|grep "^v"
vxprint -Aht

HP-UX Running LVM:

vgdisplay -v


Solaris running Disksuite/SVM:

metastat

Hakuna Matata.