The ASM Dynamic Volume Manager (DVM) is a kernel-loadable device driver that provides a standard device driver interface to clients (for example, ACFS).
after read about DVM & ACFS on 11gR2 Feature, that made my curious. so create testing... ACFS:
start to create Files using "dd":
$ dd if=/dev/zero of=/oracle/asmdisks/_file_disk5 bs=1k count=1000000010000000+0 records in10000000+0 records out10240000000 bytes (10 GB) copied, 303.029 seconds, 33.8 MB/s
Associate Loop Device with the New File:
# losetup /dev/loop5 /oracle/asmdisks/_file_disk5
Create Disk on ASMLib:
# oracleasm createdisk VOL5 /dev/loop5
Create ASM Disk Group with ASM Compatibility "11.2" by "asmca":
$ asmca
create asm Disk Group "DISK03" and then create Volume "asm_vol1" from "DISK03" Disk Group:
and then create ASM Cluster File System(ACFS):
create directory for mount point ,check... and mount:
$ mkdir -p /oracle/product/acfsmounts/disk03_asm_vol1
# ls /dev/asm/asm_vol1*/dev/asm/asm_vol1-15# mount -t acfs /dev/asm/asm_vol1-15 /oracle/product/acfsmounts/disk03_asm_vol1
# dfFilesystem 1K-blocks Used Available Use% Mounted on/dev/asm/asm_vol1-15 5242880 47512 5195368 1% /oracle/product/acfsmounts/disk03_asm_vol1# cd /oracle/product/acfsmounts/disk03_asm_vol1# touch file.txt
ASMCMD> volstatDISKGROUP NUMBER / NAME: 3 / DISK03---------------------------------------VOLUME_NAMEREADS BYTES_READ READ_TIME READ_ERRSWRITES BYTES_WRITTEN WRITE_TIME WRITE_ERRS-------------------------------------------------------------ASM_VOL1274 271360 1 02936 11739136 263 0
ASMCMD> volinfo -G DISK03 ASM_VOL1
Diskgroup Name: DISK03Volume Name: ASM_VOL1Volume Device: /dev/asm/asm_vol1-15State: ENABLEDSize (MB): 5120Resize Unit (MB): 256Redundancy: UNPROTStripe Columns: 4Stripe Width (K): 128Usage: ACFSMountpath: /oracle/product/acfsmounts/disk03_asm_vol1
2 comments:
Ever thought about using LVM instead of dd'ing a file and mounting it loopback?
Thank You you response.
I see... I never thought like that too ;)
Just test ACFS, So... I need to create Files using "dd" + Associate Loop Device "losetup".
Idea on this... just create ACFS
Post a Comment