Sundaramurthy Blog

January 21, 2010

ACFS/ADVM file system

Filed under: ASM Internal — sundar5 @ 11:53 pm

Oracle Grid Infrastructure 11g Release 2, Oracle extends the capability of ASM by introducing the ASM Cluster Filesystem and ADVM (ASM Dynamic Volume Manager).

  • POSIX-compliant filesystem.
  • ACFS is built on top of the standard vnode/VFS filesystem
  • ACFS is a multi-platform filesystem that runs on any platform that currently runs ASM
  • ACFS is an extent-based clustered filesystem that provides metadata caching and fast directory lookups enabling fast file access
  • ASM’s even extent distribution across all disks in the disk group
  • ACFS provides the capability to resize the filesystem while the filesystem is online and active
  • ACFS supports other storage management services, such as filesystem snapshots
  • ACFS, via journaling and checksums, provides the capability to quickly recover from filesystem
  • ACFS also leverages ASM mirroring for improved storage reliability

How to create third party file system using oracle volume manager (ADVM)

1. Create disk group

SQL> CREATE DISKGROUP DGEXT3 EXTERNAL REDUNDANCY  DISK ‘ORCL:ASMDISK20’ SIZE 218M
TTRIBUTE ‘compatible.asm’=’11.2.0.0.0′,’au_size’=’1M’
/

2. Add more disk to this DGEXT3 DISKGROUP

SQL> ALTER DISKGROUP DGEXT3  ADD DISK ‘ORCL:ASMDISK13’;

Diskgroup altered.

3 Now we have 2.5G SPACE on Diskgroup DGEXT3

4. Create 1G volume on this DGEXT3 disk group

SQL> ALTER DISKGROUP DGEXT3 ADD VOLUME dgext3_file SIZE 1G;

Diskgroup altered.

5. Make mount point as ext3 file system

# mkfs.ext3 /dev/asm/dgext3_file-151

6. Mount the file system

# mount -t /dev/asm/dgext3_file-151 /u02

7.  # df  -T

Filesystem    Type   1K-blocks      Used Available Use% Mounted on

/dev/sda5     ext3   202739860  47559248 144715876  25% /

/dev/sda2     ext3       23332      6844     15284  31% /boot

tmpfs        tmpfs     1179648    157532   1022116  14% /dev/shm

/dev/sda1     vfat    30694288  15435368  15258920  51% /mnt/cdrive

/dev/asm/dgext3_file-151

ext3     1032088     34096    945564   4% /u02

/dev/asm/acfs_db1-392

acfs     6291456   5093952   1197504  81% /u01/app/oracle/acfsmounts/acfs_db1

8. file system test

# touch test

# ls -tlrg
total 20
drwx—— 2 root     16384 Aug 11 22:28 lost+found
-rw-r–r– 1 root         0 Aug 11 22:38 test

# df -kh

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda5             194G   46G  139G  25% /

/dev/sda2              23M  6.7M   15M  31% /boot

tmpfs                 1.2G  154M  999M  14% /dev/shm

/dev/sda1              30G   15G   15G  51% /mnt/cdrive

/dev/asm/dgext3_file-151   1008M   34M  924M   4% /u02

/dev/asm/acfs_db1-392 6.0G  4.9G  1.2G  81% /u01/app/oracle/acfsmounts/acfs_db1

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: