Storage: January 2008 Archives

* Assuming you have Veritas software installed on your platform correctly.*

I performed the following operations on Sun Fire V480 (Solaris10 Sparc) with Sun T3 storage.

Checking the current vxfs information
#df -k
#format </dev/null -- show detailed all disks info
#vxprint -ht
#vxdg list
#vxdisk list

Using 'vxdiskadm' to create a new dg
#vxdiskadm
Enter the disk name:cxxdxxtxx
Enter the disk group name: namedg
Next...

Verifying if the dg has been created
#vxdg list
#vxprint -ht
#vxdisk list

Creating a new volume
#vxassist -g YOUR_DG make VOLUME_NAME SIZE
Example: #vxassist -g SITE2dg make archive 10g

Verifying the new volume
#vxprint -ht

Creating the vxfs file system
#mkfs -F vxfs -o bsize=2048 /dev/vx/rdsk/YOUR_DG/VOLUME_NAME
Example: #mkfs -F vxfs -o bsize=2048 /dev/vx/rdsk/SITE2/archive

Creating the destination folders
#mkdir /oracle/archive
#mkdir /oracle/data01
#mkdir /oracle/data02
#mkdir /oracle/data03
#mkdir /oracle/home
#mkdir /oracle/redo

Editing the /etc/vfstab if you want to mount vxfs file system automatically when OS startup
An example of /etc/vfstab on Solaris 10 Sparc

#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c1t0d0s1 - - swap - no -
/dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0 / ufs 1 no -
/dev/dsk/c1t0d0s3 /dev/rdsk/c1t0d0s3 /var ufs 1 no -
/dev/dsk/c1t0d0s2 /dev/rdsk/c1t0d0s2 /export/home ufs 2 yes -
/devices - /devices devfs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -

##################SITE_2#####################
#/dev/vx/dsk/SITE2dg/archive /dev/vx/rdsk/SITE2dg/archive /oracle/archive vxfs - yes rw,suid,largefiles,log
#/dev/vx/dsk/SITE2dg/home /dev/vx/rdsk/SITE2dg/home /oracle/home vxfs - yes rw,suid,largefiles,log
#/dev/vx/dsk/SITE2dg/redo /dev/vx/rdsk/SITE2dg/redo /oracle/redo vxfs - yes rw,suid,largefiles,log
#/dev/vx/dsk/SITE2dg/data01 /dev/vx/rdsk/SITE2dg/data01 /oracle/data01 vxfs - yes rw,suid,largefiles,log
#/dev/vx/dsk/SITE2dg/data02 /dev/vx/rdsk/SITE2dg/data02 /oracle/data02 vxfs - yes rw,suid,largefiles,log
#/dev/vx/dsk/SITE2dg/data03 /dev/vx/rdsk/SITE2dg/data03 /oracle/data03 vxfs - yes rw,suid,largefiles,log

A Shell script to mount the vxfs file system manually
#!/usr/bin/bash
mount -F vxfs /dev/vx/dsk/SITE2dg/archive /oracle/archive
mount -F vxfs /dev/vx/dsk/SITE2dg/data01 /oracle/data01
mount -F vxfs /dev/vx/dsk/SITE2dg/data02 /oracle/data02
mount -F vxfs /dev/vx/dsk/SITE2dg/data03 /oracle/data03
mount -F vxfs /dev/vx/dsk/SITE2dg/home /oracle/home
mount -F vxfs /dev/vx/dsk/SITE2dg/redo /oracle/redo

About this Archive

This page is an archive of entries in the Storage category from January 2008.

Find recent content on the main index or look in the archives to find all content.