Disk Enclosures
Showing results for 
Search instead for 
Did you mean: 

AutoRAID setup - luns, volume group

Go to solution
Tim Krego_2
Frequent Advisor

AutoRAID setup - luns, volume group

I have a K460/AutoRAID12H setup. The 12H has 9GB drives, hot spare, dual HSC SCSI controllers. It will be hosting an Oracle 8.1.6 database.

I set up the box following info from messages posted here.

I set up two LUNs of 22MB each. I'm stuck on how best to proceed.

In SAM I went to Disk and File Systems. I highlighted both LUNs and selected create volume group using LVM.

A post from another thread said to create one volume group and three logical volumes striping the disks and using alternate paths.

Can I do that from SAM or do I need to use the shell? My concern is getting the alternate hardware paths correct for maximum performance.

A. Clay Stephenson
Acclaimed Contributor

Re: AutoRAID setup - luns, volume group

Forget SAM, use the command line. The real key is to create 2 LUN's (as you have done). LUN0's primary path should be through Controller X (alternate Y) and LUN1's primary path should be through Controller Y (alternate X).

The number of LVOL's is up to you but I would go with at least two. One for datafiles and indices and the other for redo/archivelogs.

Stripe across both LUN's in 64K chunks. This will fully utilize both external SCSI paths.

How to create a logical volume group on an AutoRAID with striping across 2 LUN???s

This will create a logical volume group that will strip across LUN???s and use both the X and Y controllers. The key is to set up 2 equally sized LUN???s on the AutoRAID. For our purposes these will be LUN 0 and LUN 1 each 64GB in size for a total volume group of 128GB. Controller X is assigned a SCSI address of 0 and Y is assigned a SCSI address of 1.

Node Primary Path Alternate Device LUN Size (MB)
Wile /dev/dsk/c8t0d0 /dev/dsk/c9t1d0 0 64000

Wile /dev/dsk/c9t1d1 /dev/dsk/c8t0d1 1 64000

Prepare to create a volume group vg06 on the node ???wile???.
umask 022

cd /dev
mkdir vg06
chmod 755
cd vg06
mknod group c 64 0x060000

Create two physical volumes using the above LUN???s.
pvcreate /dev/rdsk/c8t0d0
pvcreate /dev/rdsk/c9t1d1

Create the vg06 volume group using LUN 0 and activate it.
vgcreate /dev/vg06 /dev/dsk/c8t0d0 /dev/dsk/c9t1d0
vgchange -a y /dev/vg06

Extend volume group vg06 by adding LUN 1.
vgextend /dev/vg06 /dev/dsk/c9t1d1 /dev/dsk/c8t0d1

Make new logical volumes striping across 2 devices with 64K blocking.
lvcreate -i2 -I64 -L 60000 -n lvol1 /dev/vg06
lvcreate -i2 -I64 -L 12000 -n lvol2 /dev/vg06
lvcreate -i2 -I64 -L 3000 -n lvol3 /dev/vg06

(Unused blocks are available for future use.)

Make filesystems for the three logical volumes.
newfs -F vxfs /dev/vg06/rlvol1
newfs -F vxfs /dev/vg06/rlvol2
newfs -F vxfs /dev/vg06/rlvol3

Make mountpoints for the three filesystems.
mkdir -p -m 755 /PrdOra/oradata
mkdir -p -m 755 /PrdOra/oradata2
mkdir -p -m 755 /PrdOra/app

Mount the three newly created filesystems.
mount -F vxfs /dev/vg06/lvol1 /PrdOra/oradata
mount -F vxfs /dev/vg06/lvol2 /PrdOra/oradata2
mount -F vxfs /dev/vg06/lvol3 /PrdOra/app

Make a backup of the volume group configuration.
vgcfgbackup /dev/vg06

You should also make /etc/fstab entries for these filesystems.

If you are running 11.0, I would mount the datafiles/indices with convosync=direct,mincache=direct,nodatainlog

but if you are running 11.11, I would run "cooked" files for everything.

If it ain't broke, I can fix that.
Tim Krego_2
Frequent Advisor

Re: AutoRAID setup - luns, volume group

Thanks Clay. Your info from other posts is what path I've been trying to follow.

I used SAM to create the original luns, volume group, logical volume.

I was able to specify the stripe across both luns and block size of 64K. I think I have everything set up correctly.

I have:

hw-path #-paths vg-name size desc
8/0.1.0 2 vg10 22457 HP AutoRAID LUN
8/4.0.1 2 vg10 22457 HP AutoRAID LUN

lvdisplay -v /dev/vg10/lvp01 shows

PV Name LE on PV PE on PV
/dev/dsk/c5t1d0 512 512
/dev/dsk/c6t0d1 512 512

Is that enough info to tell if I got it right?

Eugeny Brychkov
Honored Contributor

Re: AutoRAID setup - luns, volume group

Should be ok.
/dev/dsk/c5t1d0 512 512 ... HBA c5, Y, LUN 0
/dev/dsk/c6t0d1 512 512 ... HBA c6, X, LUN 1