oracle acfs snap 恢复,Oracle12c R2 RAC-Managing Oracle ACFS and Oracle ADVM Wi

14

Managing Oracle

ACFS and Oracle ADVM With ASMCA

14.1.1 Managing

Oracle ADVM Volumes with ASMCA

[root@paycore01 ~]# su - grid

[grid@paycore01 grid]$ export

DISPLAY=192.168.7.119:0.0

[grid@paycore01 grid]$ asmca

[grid@paycore01 grid]$ asmca

a4c26d1e5885305701be709a3d33442f.png

a4c26d1e5885305701be709a3d33442f.png

a4c26d1e5885305701be709a3d33442f.png

a4c26d1e5885305701be709a3d33442f.png

a4c26d1e5885305701be709a3d33442f.png

a4c26d1e5885305701be709a3d33442f.png

a4c26d1e5885305701be709a3d33442f.png

14.2.1 ASMCA Commands for Oracle ACFS and Oracle

ADVM

This section describes the commands that can be run with

ASMCA command-line to

manage Oracle ACFS objects.

Create an Oracle ACFS Snapshot (page 14-6)

Delete an Oracle ACFS Snapshot (page 14-6)

Create a Volume (page 14-7)

Create an Oracle ACFS File System (page 14-7)

Run ASMCA commands as a Windows domain user.

14.2.1.1 Create

an Oracle ACFS Snapshot

—createACFSSnapshot creates an

Oracle Automatic Storage Management Cluster

File System

(Oracle ACFS) snapshot.

14.2.1.2 Delete

an Oracle ACFS Snapshot

—deleteACFSSnapshot deletes an

existing Oracle Automatic Storage Management

Cluster File

System (Oracle ACFS) snapshot.

14.2.1.3 Create a

Volume

-createVolume creates Oracle

ADVM volumes.

Examples

To create an

Oracle ADVM volume:

Example 14-1 Using

asmca -silent -createVolume

$ asmca -silent

-createVolume

-volumeName volume1

-volumeDiskGroup mynewdg

-volumeSizeGB 1

Volume volume1 created successfully.

14.2.1.4 Create

an Oracle ACFS File System

-createACFS creates an Oracle

Automatic Storage Management Cluster File System

(Oracle

ACFS).

Examples

To create an

Oracle ACFS file system:

Example 14-2 Using

asmca -silent -createACFS

$ asmca -silent

-createACFS

-acfsVolumeDevice /dev/asm/volume1-457

-acfsMountPoint /acfsmounts/acfs1

15

Managing Oracle

ADVM with ASMCMD

15.1 ASMCMD Volume Management

Commands

This topic provides a summary of the Oracle ADVM volume

management commands.

Table 15-1

(page 15-1) lists the Oracle ADVM volume management

commands with

brief descriptions. To successfully run these commands, the

local Oracle ASM instance

must be running and the disk group required by this command

must have been

created and mounted in the Oracle ASM instance.

Table 15-1 Summary of ASMCMD volume management

commands

Command Description

volcreate

(page 15-1) Creates an Oracle ADVM volume in the specified

disk group.

voldelete

(page 15-4) Deletes an Oracle ADVM volume.

voldisable

(page 15-4) Disables Oracle ADVM volumes in mounted disk

groups.

volenable

(page 15-5) Enables Oracle ADVM volumes in mounted disk

groups.

volinfo

(page 15-6) Displays information about Oracle ADVM

volumes.

volresize

(page 15-7) Resizes an Oracle ADVM volume.

volset

(page 15-8) Sets attributes of an Oracle ADVM volume in

mounted disk groups.

volstat

(page 15-9) Reports volume I/O statistics.

Examples

The following is

an example of the volcreate command that

creates volume1 in the

data disk group with

the size set to 10 gigabytes.

Example 15-1 Using

the ASMCMD volcreate command

ASMCMD [+] > volcreate -G data -s 10G --width

1M --column 8 volume1

ASMCMD [+] > volinfo -G data volume1

Diskgroup Name: DATA

Volume Name: VOLUME1

Volume Device: /dev/asm/volume1-123

State: ENABLED

Size (MB): 10240

Resize Unit (MB): 64

Redundancy: MIRROR

ASMCMD Volume

Management Commands

Stripe Columns: 8

Stripe Width (K): 1024

Usage:

Mountpath:

16

Managing Oracle

ACFS with Command-Line

Tools

Numerous command-line tools are provided for managing

Oracle ASM Cluster File

System (Oracle ACFS) and Oracle ASM Dynamic Volume Manager

(Oracle ADVM).

Command-line tools for managing and implementing Oracle

Automatic Storage

Management Cluster File System (Oracle ACFS), include the

following:

Basic Steps to Manage Oracle ACFS Systems

(page 16-1)

Oracle ACFS Command-Line Tools for Linux

Environments (page 16-24)

Oracle ACFS Command-Line Tools for the Solaris

Environment (page 16-32)

Oracle ACFS Command-Line Tools for Windows

Environments (page 16-47)

Oracle ACFS Command-Line Tools for Tagging

(page 16-58)

Oracle ACFS Command-Line Tools for Replication

(page 16-61)

Oracle ACFS Command-Line Tools for Auditing

(page 16-79)

Oracle ACFS Command-Line Tools for Security

(page 16-84)

Oracle ACFS Command-Line Tools for Encryption

(page 16-115)

Oracle ACFS Command-Line Tools for Snapshots

(page 16-123)

Oracle ACFS Command-Line Tools for Compression

(page 16-138)

Oracle ACFS Command-Line Utilities (page 16-141)

For information about running Oracle ACFS

acfsutil commands, refer to About

Using Oracle ACFS

Command-Line Tools (page 16-2).

[grid@paycore01 sbin]$ ./acfsutil

-h

acfsutil:

Version 12.2.0.1.0

[grid@paycore01 sbin]$ ./acfsutil

version

acfsutil

version: 12.2.0.1.0

[grid@paycore01 sbin]$

16.1.2 Creating an

Oracle ACFS File System

1.

Create an Oracle ADVM volume in a mounted disk group with

the ASMCMD

volcreate command.

To create a

volume:

ASMCMD [+] > volcreate

-G data -s 10G volume1

2.

Determine the device name of the volume that was

created.

ASMCMD [+] > volinfo

-G data volume1

SQL> SELECT

volume_name, volume_device FROM V$ASM_VOLUME

WHERE volume_name ='VOLUME1';

3.

Create a file system with the Oracle ACFS

mkfs command.

For

example:

$ /sbin/mkfs -t acfs

/dev/asm/volume1-123

4.

Optionally register the file

system with the acfsutil registry command.

For

example:

$ /sbin/acfsutil registry

-a /dev/asm/volume1-123 /acfsmounts/acfs1

acfsutil registry: mount point /acfsmounts/acfs1

successfully added

to Oracle Registry

5.

Mount the file system with the Oracle ACFS

mount command. You can

mount a

file system before

or after registering the file system. If the file system has

been

registered, you

can wait for the file system to be mounted

automatically.

For

example:

# /bin/mount -t acfs

/dev/asm/volume1-123 /acfsmounts/acfs1

# chown -R oracle:dba

/acfsmounts/acfs1

6.

Create a test file in the file system.

The user that

creates the test file should be a user that is intended to access

the file

system. This test

ensures that the appropriate user can write to the file

system.

For

example:

$ echo "Oracle ACFS File

System" > /acfsmounts/acfs1/myfile

7.

List the contents of the test file that was created in the

file system.

For

example:

$ cat

/acfsmounts/acfs1/

16.1.3 Accessing

an Oracle ACFS File System on a Different Node in the

Cluster

……

16.1.4 Managing Oracle ACFS

Snapshots

To create and verify a snapshot on node 1:

1. Create snapshot of the new file system created on node

1.

For example:

$

/sbin/acfsutil snap create mysnapshot_20090725

/acfsmounts/acfs1

See "acfsutil snap

create (page 16-125)".

2. Update the test file in the file system so that it is

different than the snapshot.

For example:

$ echo

"Modifying a file in Oracle ACFS File System" >

/acfsmounts/acfs1/myfile

3. List the contents of the test file and the snapshot view of

the test file.

For example:

$ cat

/acfsmounts/acfs1/myfile

$ cat

/acfsmounts/acfs1/.ACFS/snaps/mysnapshot_20090725/myfile

The contents of the test file and snapshot should be

different. If node 1 is in a

cluster, then you can perform the same list operation on

node 2.

16.1.5 Securing Oracle ACFS File

Systems

……

16.2 Oracle ACFS

Command-Line Tools for Linux Environments

Table 16-1 Summary of Oracle ACFS commands for Linux

environments

Command Description

fsck

(page 16-24) Checks and repairs an Oracle ACFS file

system.

mkfs

(page 16-26) Creates an Oracle ACFS file system.

mount

(page 16-29) Mounts an Oracle ACFS file system.

umount

(page 16-31) Dismounts an Oracle ACFS file

system.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值