首页 > Linux操作系统 > Linux操作系统 > SFRAC Admin Operation Guide

SFRAC Admin Operation Guide

原创 Linux操作系统 作者:battalion 时间:2009-05-08 14:13:50 0 删除 编辑

VERITAS Storage FoundationTM 4.1 for Oracle RAC

Maintenance Pack 1


Administration and Operation Guide


Storage Foundation Maintenance


Discovery New Disk


1.#ioscan –fnkCdisk

2.#insf –e

3.#vxdisk scandisks

4.#vxdisk list


Initialize a Disk

#vxdisksetup –i disk format=cdsdisk



Vxdiskadm 是一个功能强大的交互界面管理磁盘的命令,如下:



Volume Manager Support Operations

Menu: Volu垃圾广告nager/Disk


 1      Add or initialize one or more disks

 2      Remove a disk

 3      Remove a disk for replacement

 4      Replace a failed or removed disk

 5      Mirror volumes on a disk

 6      Move volumes from a disk

 7      Enable access to (import) a disk group

 8      Remove access to (deport) a disk group

 9      Enable (online) a disk device

 10     Disable (offline) a disk device

 11     Mark a disk as a spare for a disk group

 12     Turn off the spare flag on a disk

 13     Remove (deport) and destroy a disk group

 14     Unrelocate subdisks back to a disk

 15     Exclude a disk from hot-relocation use

 16     Make a disk available for hot-relocation use

 17     Prevent multipathing/Suppress devices from VxVM's view

 18     Allow multipathing/Unsuppress devices from VxVM's view

 19     List currently suppressed/non-multipathed devices

 20     Change the disk naming scheme

 21     Change/Display the default disk layouts

 22     Mark a disk as allocator-reserved for a disk group

 23     Turn off the allocator-reserved flag on a disk

 list   List disk information



 ?      Display help about menu

 ??     Display help about the menuing system

 q      Exit from menus




Display Disk Group Information

# vxdg list

# vxdg list diskgroup

# vxdisk -s list devicename

# vxdg free


Creating Disk Group

# vxdg init diskgroupname devicename

# vxdg init crdg cXtXdX


Adding a Disk to a Disk Group

# vxdiskadd cXtXdX

# vxdiskadm


Remove a Disk from a Disk Group

# vxdg [-g diskgroup] rmdisk diskname

# vxdg -g mydg rmdisk mydg02

# vxdiskunsetup devicename


Deporting a Disk Group

# vxdg deport diskgroup

# vxdiskadm


Importing a Disk Group

# vxdg import diskgroup

# vxdiskadm


Renaming a Disk Group

# vxdg [-t] -n newdg import diskgroup

# vxdg -t -n mytempdg import mydg

# vxdg [-h hostname] -n newdg deport diskgroup

# vxdg -h jingo -n myexdg deport mydg


Moving Disks Between Disk Groups

# vxdg -g salesdg rmdisk salesdg04

# vxdg -g mktdg adddisk mktdg02=cXtXdX

# vxdiskadm


Disabling a Disk Group

# vxdg deport diskgroup


Destroying a Disk Group

# vxdg destroy diskgroup


3. 卷管理

Displaying Volume Information

# vxprint -hvt

# vxprint -g mydg -hvt

# vxprint [-g diskgroup] -t volume

# vxprint -g mydg -t voldef


Stopping a Volume

# vxvol [-g diskgroup] [-f] stop volume ...

# vxvol [-g diskgroup] [-f] stopall


Starting a Volume

# vxvol [-g diskgroup] start volume ...

# vxvol -g diskgroup startall

Alternatively, to start a DISABLED volume, use the following command:

# vxrecover -g diskgroup -s volume ...

To start all DISABLED volumes, enter:

# vxrecover -s


Resizing a Volume

# vxassist [-g diskgroup] maxgrow volume

For example, the following command resizes the 1-gigabyte volume, homevol, in the disk group, mydg, that contains a VxFS file system to 10 gigabytes using the spare disks mydg10 and mydg11:

# vxresize -g mydg -b -F vxfs -t homevolresize homevol 10g \ mydg10 mydg11

The -b option specifies that this operation runs in the background. Its progress can be monitored by specifying the task tag homevolresize to the vxtask command.


To change the length of a volume using the vxvol set command, use the following command:

# vxvol [-g diskgroup] set len=length volume

For example, to change the length of the volume, vol01, in the disk group, mydg, to 100000 sectors, use the following command:

# vxvol -g mydg set len=100000 vol01


Removing a Volume


1. Remove all references to the volume by application programs, including shells, that are running on the system.

2. If the volume is mounted as a file system, unmount it with this command:

# umount /dev/vx/dsk/diskgroup/volume

3. If the volume is listed in the /etc/vfstab file, remove its entry by editing this file. Refer to your operating system documentation for more information about the format of this file and how you can modify it.

4. Stop all activity by VxVM on the volume with the command:

# vxvol [-g diskgroup] stop volume


After following these steps, remove the volume with the vxassist command:

# vxassist [-g diskgroup] remove volume volume

Alternatively, you can use the vxedit command to remove a volume:

# vxedit [-g diskgroup] [-r] [-f] rm volume


4. Create a Normal share disk

1. Log in as root user.

2. Add the directory path to the jar utility in the PATH environment variable. Typically, this is /usr/bin. Do this on both nodes.

3. On the master node, create a shared disk group:

# vxdg -s init ora_dg cXtXdX

4. Create the volume in the shared group. For the Oracle 10g binaries, make the volume 7,168 MB:

 # vxassist -g ora_dg make orabin_vol 7168M

5. Set activation mode for the disk group on all cluster nodes:

# vxdg -g ora_dg set activation=sw

6. Start the volumes:

# vxvol -g ora_dg startall

7. On the master node, create a VxFS file system on the shared volume on which to install the Oracle 10g binaries. For example, create the file system on orabinvol:

# mkfs -F vxfs -o largefiles /dev/vx/rdsk/ora_dg/orabin_vol

8. On each system, create the mount point for the file system:

# mkdir /oracle

9. On each system, mount the file system, using the device file for the block device:

# mount -F vxfs -o cluster /dev/vx/dsk/ora_dg/orabin_vol /oracle

10. Repeat step 1 through step 9 on the other system.


5. Create a Share Disk for Oracle Datafile

If you plan to use a cluster file system to store the Oracle database, you can use the following procedure to create the file system.

1. Create a disk group (for example: rac_dg):

 # vxdg -s init rac_dg cXtXdX

2. Create a single shared volume (for example: rac_vol1), large enough to contain a file system for all the tablespaces (see Oracle documentation the tablespace sizes). Assuming 6.8 GB are required for the tablespaces:

# vxassist -g rac_dg make rac_vol1 6800M

3. Deport and import the group in the shared mode to enable I/O fencing:

# vxdg deport rac_dg # vxdg -s import rac_dg

4. Set the activation mode (sw) to allow shared access to the disk group:

# vxdg -g rac_dg set activation=sw

5. Start the volume in the disk group:

# vxvol -g rac_dg startall

6. Create a VxFS file system in this volume. From one node, enter:

# mkfs -F vxfs -o largefiles /dev/vx/rdsk/rac_dg/rac_vol1

7. Create a mount point for the shared file system:

# mkdir /rac_ts

8. From the same system, mount the file system:

# mount -F vxfs -o cluster /dev/vx/dsk/rac_dg/rac_vol1 /rac_ts

9. Set “oracle” to be the owner of the file system, and set “755 as the permissions:

# chown -R oracle:oinstall /rac_ts

# chmod 755 /rac_ts

10. On the other system(s), do step 4 and step 7 through step 9. You can now create the database; refer to Oracle documentation.

6. VERITAS Enterprise Administrator







来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录


  • 博文量
  • 访问量