1748184 Members
4028 Online
108759 Solutions
New Discussion юеВ

create raw file

 
SOLVED
Go to solution
Punithan
Advisor

create raw file

hi gurus

i wanted to create a raw device for my informix chunks...
and i have four disk with me and i wanted to have two vg1 and vg2 .
can somebody help me with step my step.....

bye
System Engineer
4 REPLIES 4
Michael Tully
Honored Contributor

Re: create raw file

Basically you need to create a volume group with two disks each:

# pvcreate /dev/rdsk/cxtydz (if used before add a -f option) (do this for each disk)
# mkdir /dev/vg01
# ls -l /dev/*/group (to find a minor number not used before)
# mknod /dev/vg01/group c 64 0x010000
# vgcreate -p 128 /dev/vg01 /dev/dsk/cxtydz
# vgextend /dev/vg01 /dev/dsk/cxtydz (for each additional disk for that volume group)
# lvcreate -n /dev/vg01 (include other options depending on the type of disk array)
# lvextend -L /dev/vg01/

Repeat this method for the second volume group, and change the vg01 to vg02

Let us know if you need further assistance.
Anyone for a Mutiny ?
Punithan
Advisor

Re: create raw file

hi Michel
i have some problem with pc and it gav eproblem went i wanted to give point...

lvcreate -n /dev/vg01 (include other options depending on the type of disk array)

the in lvcreate in lvol01 and so ??

can u confirm on that....
System Engineer
Steven E. Protter
Exalted Contributor

Re: create raw file

I'll confirm Michael's methodology.

lvcreate -C y -n /dev/vg01

-C y means contiguous is mandatory.

lvextend -L /dev/vg01/lvolname /dev/dsk/c#t#d#

change the # signs to real disks.

Don't run newfs or extendfs or it won't be raw any more.

Good Luck.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Tully
Honored Contributor
Solution

Re: create raw file

There are options for lvcreate. For example with an EMC disk array , they recommend that you use '-r N' for relocation of bad blocks. In this case, the disk array will do this itself.

e.g
# lvcreate -n lvol10 -r N /dev/vg01

If you using an autoraid then you may not use these. If your using just the internal disks on your server, then no options at all should be used. Hope this clears things up. If not let me know.
Anyone for a Mutiny ?