Configure ACFS

Configure ACFS

Create ACFS for OGG

Creating the Filesystem Volumes for the GoldenGate config and trail files

oracle@linux:/home/oracle % . oraenv
ORACLE_SID = [oracle] ? +ASM
The Oracle base has been set to /u01/app/oracle
oracle@linux:/home/oracle % asmcmd
ASMCMD> volcreate -G OGGDG -s 20G ogg_config

ASMCMD> volcreate -G OGGDG -s 160G ogg_trail

ASMCMD> volinfo -G OGGDG ogg_config
Diskgroup Name: OGGDG

Volume Name: OGG_CONFIG
Volume Device: /dev/asm/ogg_config-230
State: ENABLED
Size (MB): 20480
Resize Unit (MB): 64
Redundancy: UNPROT
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:

ASMCMD> volinfo -G OGGDG ogg_trail
Diskgroup Name: OGGDG

Volume Name: OGG_TRAIL
Volume Device: /dev/asm/ogg_trail-230
State: ENABLED
Size (MB): 163840
Resize Unit (MB): 64
Redundancy: UNPROT
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:

ASMCMD>

Make the Filesystem (ACFS) and then Mount it under /u02

root@linux:/root % mkfs -t acfs /dev/asm/ogg_config-230
mkfs.acfs: version = 12.1.0.2.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/ogg_config-230
mkfs.acfs: volume size = 21474836480 ( 20.00 GB )
mkfs.acfs: Format complete.
root@linux:/root % mkfs -t acfs /dev/asm/ogg_trail-230
mkfs.acfs: version = 12.1.0.2.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/ogg_trail-230
mkfs.acfs: volume size = 171798691840 ( 160.00 GB )
mkfs.acfs: Format complete.
root@linux:/root %

root@linux:/root % mount -t acfs /dev/asm/ogg_config-230 /u02/ogg_config
root@linux:/root % mount -t acfs /dev/asm/ogg_trail-230 /u02/ogg_trail

Enable ACFS and mount ACFS to OGG

oracle@linux:/home/oracle % more asm.env

export ORACLE_SID=+ASM

export ORACLE_HOME=/u01/app/grid/12.1.0

alias dba=’cd /home/oracle/dbascripts’

alias migrate=’cd /home/oracle/migrate’

oracle@linux:/home/oracle % source asm.env

oracle@linux:/home/oracle % asmcmd

ASMCMD> lsdg

State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name

MOUNTED EXTERN N 512 4096 1048576 460800 448303 0 448303 0 N ARCHDG/

MOUNTED EXTERN N 512 4096 1048576 1177600 1048500 0 1048500 0 N DATADG/

MOUNTED EXTERN N 512 4096 1048576 256000 235459 0 235459 0 N OGGDG/

MOUNTED EXTERN N 512 4096 1048576 51200 45986 0 45986 0 N REDODG/

ASMCMD> volinfo -G OGGDG ogg_data

Diskgroup Name: OGGDG

Volume Name: OGG_DATA

Volume Device: /dev/asm/ogg_data-260

State: DISABLED

Size (MB): 20480

Resize Unit (MB): 512

Redundancy: UNPROT

Stripe Columns: 8

Stripe Width (K): 1024

Usage: ACFS

Mountpath: /ogg

[oracle@linux ~]$ asmcmd

ASMCMD> volenable -G OGGDG ogg_data

ASMCMD> volinfo -G OGGDG ogg_data

Diskgroup Name: OGGDG

Volume Name: OGG_DATA

Volume Device: /dev/asm/ogg_data-260

State: ENABLED

Size (MB): 20480

Resize Unit (MB): 512

Redundancy: UNPROT

Stripe Columns: 8

Stripe Width (K): 1024

Usage: ACFS

Mountpath: /ogg

ASMCMD>

root@linux:/home/oracle % mount -t acfs /dev/asm/ogg_data-260 /ogg

oracle@linux:/home/oracle % df -lhT

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/rootvg-rootlv xfs 1014M 76M 939M 8% /

devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev

tmpfs tmpfs 7.8G 135M 7.7G 2% /dev/shm

tmpfs tmpfs 7.8G 434M 7.4G 6% /run

tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup

/dev/mapper/rootvg-usrlv xfs 4.0G 2.0G 2.1G 49% /usr

/dev/sda1 xfs 1014M 238M 777M 24% /boot

/dev/mapper/datavg-u01lv xfs 450G 36G 415G 8% /u01

/dev/mapper/rootvg-optlv xfs 2.0G 1.5G 601M 71% /opt

/dev/mapper/rootvg-tmplv xfs 4.0G 39M 4.0G 1% /tmp

/dev/mapper/rootvg-homelv xfs 4.0G 1.9G 2.2G 46% /home

/dev/mapper/rootvg-varlv xfs 4.0G 2.2G 1.9G 54% /var

/dev/mapper/rootvg-ibmlv xfs 2.0G 33M 2.0G 2% /ibm

/dev/mapper/rootvg-itmlv xfs 5.0G 434M 4.6G 9% /opt/IBM/ITM

/dev/mapper/rootvg-cobaltlv xfs 5.0G 33M 5.0G 1% /opt/IBM/cobalt

/dev/mapper/rootvg-beslv xfs 2.5G 664M 1.9G 27% /var/opt/BESClient

/dev/mapper/rootvg-usrlocallv xfs 1014M 79M 936M 8% /usr/local

/dev/mapper/rootvg-crashdumplv xfs 13G 33M 13G 1% /var/crash

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/201

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1206

/dev/asm/ogg_data-260 acfs 20G 17G 3.2G 85% /ogg

Change ACFS size

  • If the volume is mounted on a non-Oracle ACFS file system, then dismount the file system first before resizing. If the new size is smaller than current, you are warned of possible data corruption. Unless the -f (force) option is specified, you are prompted whether to continue with the operation.
  • If there is an Oracle ACFS file system on the volume, then you cannot resize the volume with the volresize command. You must use the acfsutil size command, which also resizes the volume and file system. For information, see “acfsutil size“.

oracle@linux:/home/oracle % which acfsutil

/usr/sbin/acfsutil

oracle@linux:/home/oracle % acfsutil size +50G /ogg/

acfsutil size: new file system size: 75161927680 (71680MB)

oracle@linux:/home/oracle % df -lhT

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/rootvg-rootlv xfs 1014M 76M 939M 8% /

devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev

tmpfs tmpfs 7.8G 135M 7.7G 2% /dev/shm

tmpfs tmpfs 7.8G 434M 7.4G 6% /run

tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup

/dev/mapper/rootvg-usrlv xfs 4.0G 2.0G 2.1G 49% /usr

/dev/sda1 xfs 1014M 238M 777M 24% /boot

/dev/mapper/datavg-u01lv xfs 450G 36G 415G 8% /u01

/dev/mapper/rootvg-optlv xfs 2.0G 1.5G 603M 71% /opt

/dev/mapper/rootvg-tmplv xfs 4.0G 39M 4.0G 1% /tmp

/dev/mapper/rootvg-homelv xfs 4.0G 1.9G 2.2G 46% /home

/dev/mapper/rootvg-varlv xfs 4.0G 2.2G 1.9G 54% /var

/dev/mapper/rootvg-ibmlv xfs 2.0G 33M 2.0G 2% /ibm

/dev/mapper/rootvg-itmlv xfs 5.0G 434M 4.6G 9% /opt/IBM/ITM

/dev/mapper/rootvg-cobaltlv xfs 5.0G 33M 5.0G 1% /opt/IBM/cobalt

/dev/mapper/rootvg-beslv xfs 2.5G 665M 1.9G 27% /var/opt/BESClient

/dev/mapper/rootvg-usrlocallv xfs 1014M 79M 936M 8% /usr/local

/dev/mapper/rootvg-crashdumplv xfs 13G 33M 13G 1% /var/crash

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/201

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1206

/dev/asm/ogg_data-260 acfs 70G 17G 54G 25% /ogg

oracle@linux:/home/oracle % acfsutil size +150G /ogg/

acfsutil size: new file system size: 236223201280 (225280MB)

oracle@linux:/home/oracle % df -lhT|grep ogg

/dev/asm/ogg_data-260 acfs 220G 18G 203G 8% /ogg

oracle@linux:/home/oracle % asmcmd

ASMCMD> volinfo -G OGGDG ogg_data

Diskgroup Name: OGGDG

Volume Name: OGG_DATA

Volume Device: /dev/asm/ogg_data-260

State: ENABLED

Size (MB): 225280

Resize Unit (MB): 512

Redundancy: UNPROT

Stripe Columns: 8

Stripe Width (K): 1024

Usage: ACFS

Mountpath: /ogg

ASMCMD> lsdg

State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name

MOUNTED EXTERN N 512 4096 1048576 460800 448303 0 448303 0 N ARCHDG/

MOUNTED EXTERN N 512 4096 1048576 1177600 1048500 0 1048500 0 N DATADG/

MOUNTED EXTERN N 512 4096 1048576 256000 30653 0 30653 0 N OGGDG/

MOUNTED EXTERN N 512 4096 1048576 51200 45986 0 45986 0 N REDODG/

ASMCMD>

Configure ACFS

Create ACFS for OGG

Creating the Filesystem Volumes for the GoldenGate config and trail files

oracle@linux:/home/oracle % . oraenv
ORACLE_SID = [oracle] ? +ASM
The Oracle base has been set to /u01/app/oracle
oracle@linux:/home/oracle % asmcmd
ASMCMD> volcreate -G OGGDG -s 20G ogg_config

ASMCMD> volcreate -G OGGDG -s 160G ogg_trail

ASMCMD> volinfo -G OGGDG ogg_config
Diskgroup Name: OGGDG

Volume Name: OGG_CONFIG
Volume Device: /dev/asm/ogg_config-230
State: ENABLED
Size (MB): 20480
Resize Unit (MB): 64
Redundancy: UNPROT
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:

ASMCMD> volinfo -G OGGDG ogg_trail
Diskgroup Name: OGGDG

Volume Name: OGG_TRAIL
Volume Device: /dev/asm/ogg_trail-230
State: ENABLED
Size (MB): 163840
Resize Unit (MB): 64
Redundancy: UNPROT
Stripe Columns: 8
Stripe Width (K): 1024
Usage:
Mountpath:

ASMCMD>

Make the Filesystem (ACFS) and then Mount it under /u02

root@linux:/root % mkfs -t acfs /dev/asm/ogg_config-230
mkfs.acfs: version = 12.1.0.2.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/ogg_config-230
mkfs.acfs: volume size = 21474836480 ( 20.00 GB )
mkfs.acfs: Format complete.
root@linux:/root % mkfs -t acfs /dev/asm/ogg_trail-230
mkfs.acfs: version = 12.1.0.2.0
mkfs.acfs: on-disk version = 39.0
mkfs.acfs: volume = /dev/asm/ogg_trail-230
mkfs.acfs: volume size = 171798691840 ( 160.00 GB )
mkfs.acfs: Format complete.
root@linux:/root %

root@linux:/root % mount -t acfs /dev/asm/ogg_config-230 /u02/ogg_config
root@linux:/root % mount -t acfs /dev/asm/ogg_trail-230 /u02/ogg_trail

Enable ACFS and mount ACFS to OGG

oracle@linux:/home/oracle % more asm.env

export ORACLE_SID=+ASM

export ORACLE_HOME=/u01/app/grid/12.1.0

alias dba=’cd /home/oracle/dbascripts’

alias migrate=’cd /home/oracle/migrate’

oracle@linux:/home/oracle % source asm.env

oracle@linux:/home/oracle % asmcmd

ASMCMD> lsdg

State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name

MOUNTED EXTERN N 512 4096 1048576 460800 448303 0 448303 0 N ARCHDG/

MOUNTED EXTERN N 512 4096 1048576 1177600 1048500 0 1048500 0 N DATADG/

MOUNTED EXTERN N 512 4096 1048576 256000 235459 0 235459 0 N OGGDG/

MOUNTED EXTERN N 512 4096 1048576 51200 45986 0 45986 0 N REDODG/

ASMCMD> volinfo -G OGGDG ogg_data

Diskgroup Name: OGGDG

Volume Name: OGG_DATA

Volume Device: /dev/asm/ogg_data-260

State: DISABLED

Size (MB): 20480

Resize Unit (MB): 512

Redundancy: UNPROT

Stripe Columns: 8

Stripe Width (K): 1024

Usage: ACFS

Mountpath: /ogg

[oracle@linux ~]$ asmcmd

ASMCMD> volenable -G OGGDG ogg_data

ASMCMD> volinfo -G OGGDG ogg_data

Diskgroup Name: OGGDG

Volume Name: OGG_DATA

Volume Device: /dev/asm/ogg_data-260

State: ENABLED

Size (MB): 20480

Resize Unit (MB): 512

Redundancy: UNPROT

Stripe Columns: 8

Stripe Width (K): 1024

Usage: ACFS

Mountpath: /ogg

ASMCMD>

root@linux:/home/oracle % mount -t acfs /dev/asm/ogg_data-260 /ogg

oracle@linux:/home/oracle % df -lhT

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/rootvg-rootlv xfs 1014M 76M 939M 8% /

devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev

tmpfs tmpfs 7.8G 135M 7.7G 2% /dev/shm

tmpfs tmpfs 7.8G 434M 7.4G 6% /run

tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup

/dev/mapper/rootvg-usrlv xfs 4.0G 2.0G 2.1G 49% /usr

/dev/sda1 xfs 1014M 238M 777M 24% /boot

/dev/mapper/datavg-u01lv xfs 450G 36G 415G 8% /u01

/dev/mapper/rootvg-optlv xfs 2.0G 1.5G 601M 71% /opt

/dev/mapper/rootvg-tmplv xfs 4.0G 39M 4.0G 1% /tmp

/dev/mapper/rootvg-homelv xfs 4.0G 1.9G 2.2G 46% /home

/dev/mapper/rootvg-varlv xfs 4.0G 2.2G 1.9G 54% /var

/dev/mapper/rootvg-ibmlv xfs 2.0G 33M 2.0G 2% /ibm

/dev/mapper/rootvg-itmlv xfs 5.0G 434M 4.6G 9% /opt/IBM/ITM

/dev/mapper/rootvg-cobaltlv xfs 5.0G 33M 5.0G 1% /opt/IBM/cobalt

/dev/mapper/rootvg-beslv xfs 2.5G 664M 1.9G 27% /var/opt/BESClient

/dev/mapper/rootvg-usrlocallv xfs 1014M 79M 936M 8% /usr/local

/dev/mapper/rootvg-crashdumplv xfs 13G 33M 13G 1% /var/crash

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/201

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1206

/dev/asm/ogg_data-260 acfs 20G 17G 3.2G 85% /ogg

Change ACFS size

  • If the volume is mounted on a non-Oracle ACFS file system, then dismount the file system first before resizing. If the new size is smaller than current, you are warned of possible data corruption. Unless the -f (force) option is specified, you are prompted whether to continue with the operation.
  • If there is an Oracle ACFS file system on the volume, then you cannot resize the volume with the volresize command. You must use the acfsutil size command, which also resizes the volume and file system. For information, see “acfsutil size“.

oracle@linux:/home/oracle % which acfsutil

/usr/sbin/acfsutil

oracle@linux:/home/oracle % acfsutil size +50G /ogg/

acfsutil size: new file system size: 75161927680 (71680MB)

oracle@linux:/home/oracle % df -lhT

Filesystem Type Size Used Avail Use% Mounted on

/dev/mapper/rootvg-rootlv xfs 1014M 76M 939M 8% /

devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev

tmpfs tmpfs 7.8G 135M 7.7G 2% /dev/shm

tmpfs tmpfs 7.8G 434M 7.4G 6% /run

tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup

/dev/mapper/rootvg-usrlv xfs 4.0G 2.0G 2.1G 49% /usr

/dev/sda1 xfs 1014M 238M 777M 24% /boot

/dev/mapper/datavg-u01lv xfs 450G 36G 415G 8% /u01

/dev/mapper/rootvg-optlv xfs 2.0G 1.5G 603M 71% /opt

/dev/mapper/rootvg-tmplv xfs 4.0G 39M 4.0G 1% /tmp

/dev/mapper/rootvg-homelv xfs 4.0G 1.9G 2.2G 46% /home

/dev/mapper/rootvg-varlv xfs 4.0G 2.2G 1.9G 54% /var

/dev/mapper/rootvg-ibmlv xfs 2.0G 33M 2.0G 2% /ibm

/dev/mapper/rootvg-itmlv xfs 5.0G 434M 4.6G 9% /opt/IBM/ITM

/dev/mapper/rootvg-cobaltlv xfs 5.0G 33M 5.0G 1% /opt/IBM/cobalt

/dev/mapper/rootvg-beslv xfs 2.5G 665M 1.9G 27% /var/opt/BESClient

/dev/mapper/rootvg-usrlocallv xfs 1014M 79M 936M 8% /usr/local

/dev/mapper/rootvg-crashdumplv xfs 13G 33M 13G 1% /var/crash

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/201

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/0

tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1206

/dev/asm/ogg_data-260 acfs 70G 17G 54G 25% /ogg

oracle@linux:/home/oracle % acfsutil size +150G /ogg/

acfsutil size: new file system size: 236223201280 (225280MB)

oracle@linux:/home/oracle % df -lhT|grep ogg

/dev/asm/ogg_data-260 acfs 220G 18G 203G 8% /ogg

oracle@linux:/home/oracle % asmcmd

ASMCMD> volinfo -G OGGDG ogg_data

Diskgroup Name: OGGDG

Volume Name: OGG_DATA

Volume Device: /dev/asm/ogg_data-260

State: ENABLED

Size (MB): 225280

Resize Unit (MB): 512

Redundancy: UNPROT

Stripe Columns: 8

Stripe Width (K): 1024

Usage: ACFS

Mountpath: /ogg

ASMCMD> lsdg

State Type Rebal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name

MOUNTED EXTERN N 512 4096 1048576 460800 448303 0 448303 0 N ARCHDG/

MOUNTED EXTERN N 512 4096 1048576 1177600 1048500 0 1048500 0 N DATADG/

MOUNTED EXTERN N 512 4096 1048576 256000 30653 0 30653 0 N OGGDG/

MOUNTED EXTERN N 512 4096 1048576 51200 45986 0 45986 0 N REDODG/

ASMCMD>

Leave a Reply

Your email address will not be published. Required fields are marked *