You want to create an ACFS on an ADVM volume using a shell script and the appropriate
command-line utilities. These are the requirements:
1. The dynamic volume file must use space in the VOLFILE disk group with a size of 500 M and
be called prodvol.
2. The mount point called /acfs already exists.
Which four steps must be performed to achieve this?
A.
As the Grid Infrastructure owner, run mount -t acfs /dev/asm/prodvol-417 /acfs to mount the file
system.
B.
As the Grid Infrastructure owner, run asmcmd volinfo -d volfile prodvol to determine the volume
information.
C.
As the Grid Infrastructure owner, run asmcmd volcreate -d volfile -s 500M prodvol to create the
volume file.
D.
As the Grid Infrastructure owner, run mkfs -t acfs /dev/asm/prodvol-417 to create the file
system.
E.
As root, run mount -t acfs /dev/asm/prodvol-417 /acfs to mount the file system.
F.
As root, run mkfs -t acfs /dev/asm/prodvol-417 to create the file system.
Explanation:
Creating an ACFS Volume
Create the volume:
$ asmcmd volcreate -G DATA -s 100M testvol
View the volume information:
$ asmcmd volinfo -G DATA testvol
Make a mount point directory:
$ mkdir /u01/app/oracle/acfsdata/testvol
Make the file system (as root):
# mkfs -t acfs /dev/asm/testvol-403
Mount the file system to the mount point:
# mount -t acfs /dev/asm/testvol-403 \
/u01/app/oracle/acfsdata/testvol
D60488GC11
Oracle 11g: RAC and Grid Infrastructure Administration Accelerated 10 – 13
Create a file system with the Oracle ACFS mkfs command.
Create a file system using an existing volume device.
For example:
$ /sbin/mkfs -t acfs /dev/asm/volume1-123
mkfs.acfs: version = 11.2.0.1.0.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/volume1-123
mkfs.acfs: volume size = 10737418240
mkfs.acfs: Format complete.
See “mkfs” (Linux or UNIX) or “acfsformat” (Windows). The root privilege is not required. The
ownership of the volume device file dictates who can run this command.
Oracle Automatic Storage Management Administrator’s Guide
11g Release 2 (11.2)
So why D is wrong answer ?
I agree.
On doc http://docs.oracle.com/cd/E11882_01/server.112/e18951/asmfs_util001.htm clearly states about mkfs: “The root privilege is not required. The ownership of the volume device file dictates who can run this command.”
So, I think correct answers are: B,C,D,E.
A is wrong. root privilege is required to run mount
B is right. asmcmd volinfo to get the created volume info
C is right. asmcmd volcreate to create a storage volume
D is right. mkfs does not require root
E is right. mount requires root
F is wrong. mkfs does not require root
So C.B.D.E. are correct