Create a volume
RECO is the Disk Group name.
ASMCMD [+] > volcreate -G RECO -s 200G u02
Check the volume device name
ASMCMD [+] > volinfo -G RECO u02
Diskgroup Name: RECO
Volume Name: U02
Volume Device: /dev/asm/u02-93
State: ENABLED
Size (MB): 204800
Resize Unit (MB): 64
Redundancy: HIGH
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:
or
SELECT volume_name, volume_device FROM V$ASM_VOLUME WHERE volume_name ='U02';
Create a file system with the Oracle ACFS mkfs command. Create a file system using an existing volume device.
[grid@RAC1 ~]$ /sbin/mkfs -t acfs /dev/asm/u02-93
mkfs.acfs: version = 12.1.0.2.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/u02-93
mkfs.acfs: volume size = 214748364800 ( 200.00 GB )
mkfs.acfs: Format complete.
Optionally register the file system as a root user
ASMCMD [+] > volcreate -G RECO -s 200G u02
Check the volume device name
ASMCMD [+] > volinfo -G RECO u02
Diskgroup Name: RECO
Volume Name: U02
Volume Device: /dev/asm/u02-93
State: ENABLED
Size (MB): 204800
Resize Unit (MB): 64
Redundancy: HIGH
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:
or
SELECT volume_name, volume_device FROM V$ASM_VOLUME WHERE volume_name ='U02';
Create a file system with the Oracle ACFS mkfs command. Create a file system using an existing volume device.
[grid@RAC1 ~]$ /sbin/mkfs -t acfs /dev/asm/u02-93
mkfs.acfs: version = 12.1.0.2.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/u02-93
mkfs.acfs: volume size = 214748364800 ( 200.00 GB )
mkfs.acfs: Format complete.
Optionally register the file system as a root user
[grid@RAC1 ~]$ /sbin/acfsutil registry -a /dev/asm/u02-93 /u02
PRCN-2018 : Current user grid is not a privileged user
acfsutil registry: ACFS-03111: unable to add ACFS mount /u02 within Oracle Registry
PRCN-2018 : Current user grid is not a privileged user
acfsutil registry: ACFS-03111: unable to add ACFS mount /u02 within Oracle Registry
[grid@RAC1 ~]$ sudo su - root
[sudo] password for grid:
[root@RAC1 ~]# /sbin/acfsutil registry -a /dev/asm/u02-93 /u02
acfsutil registry: mount point /u02 successfully added to Oracle Registry
[root@RAC1 ~]# df -h /u02
Filesystem Size Used Avail Use% Mounted on
/dev/asm/u02-93 200G 483M 200G 1% /u02
[root@RAC1 ~]#
Check status
ASMCMD> volinfo -G RECO u02
Diskgroup Name: RECO
Volume Name: U02
Volume Device: /dev/asm/u02-93
State: ENABLED
Size (MB): 204800
Resize Unit (MB): 64
Redundancy: HIGH
Stripe Columns: 8
Stripe Width (K): 1024
Usage: ACFS
Mountpath: /u02
[sudo] password for grid:
[root@RAC1 ~]# /sbin/acfsutil registry -a /dev/asm/u02-93 /u02
acfsutil registry: mount point /u02 successfully added to Oracle Registry
[root@RAC1 ~]# df -h /u02
Filesystem Size Used Avail Use% Mounted on
/dev/asm/u02-93 200G 483M 200G 1% /u02
[root@RAC1 ~]#
Check status
ASMCMD> volinfo -G RECO u02
Diskgroup Name: RECO
Volume Name: U02
Volume Device: /dev/asm/u02-93
State: ENABLED
Size (MB): 204800
Resize Unit (MB): 64
Redundancy: HIGH
Stripe Columns: 8
Stripe Width (K): 1024
Usage: ACFS
Mountpath: /u02
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. Issue the following command on each node to mount it if not mounted already.
/bin/mount -t acfs /dev/asm/u02-93 /u02
https://docs.oracle.com/database/121/OSTMG/GUID-4C98CF06-8CCC-45F1-9316-C40FB3EFF268.htm#OSTMG94787
/bin/mount -t acfs /dev/asm/u02-93 /u02
https://docs.oracle.com/database/121/OSTMG/GUID-4C98CF06-8CCC-45F1-9316-C40FB3EFF268.htm#OSTMG94787