11gr2新增ACFS檔案系統(二)

yangtingkun發表於2011-04-20

11.2中,Oracle利用ASM的功能提供了ACFS檔案系統功能。

這一篇介紹解除安裝ACFS檔案系統。

11gr2新增ACFS檔案系統(一):http://yangtingkun.itpub.net/post/468/516774

 

 

首先在節點2umount檔案系統:

# df -k
檔案系統              千位元組    用了    可用 容量      掛接在
/dev/dsk/c2t0d0s0    30893320 5034236 25550151    17%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 2261640    1552 2260088     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                     30893320 5034236 25550151    17%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                     30893320 5034236 25550151    17%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                         0       0       0     0%    /dev/fd
swap                 3409288 1149200 2260088    34%    /tmp
swap                 2260128      40 2260088     1%    /var/run
/dev/dsk/c1t500601603022E66Ad10s6
                     516335185 159130189 352041645    32%    /data
/dev/dsk/c2t0d0s7    2055085    2638 1990795     1%    /export/home
/dev/asm/oravolume-39
                     20971520  144060 20827460     1%    /data/oracle/product/11.2
# umount /data/oracle/product/11.2

連線asmcmd

bash-3.00$ asmcmd
ASMCMD> volinfo -G data oravolume
Diskgroup Name: DATA

         Volume Name: ORAVOLUME
         Volume Device: /dev/asm/oravolume-39
         State: ENABLED
         Size (MB): 20480
         Resize Unit (MB): 256
         Redundancy: UNPROT
         Stripe Columns: 4
         Stripe Width (K): 128
         Usage: ACFS
         Mountpath: /data/oracle/product/11.2

ASMCMD> voldisable -G data oravolume

在節點1umount檔案系統:

# df -k                          
檔案系統              千位元組    用了    可用 容量      掛接在
/dev/dsk/c2t0d0s0    30254974 5421541 24530884    19%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                 2552192    1664 2550528     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
sharefs                    0       0       0     0%    /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
                     30254974 5421541 24530884    19%    /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                     30254974 5421541 24530884    19%    /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd                         0       0       0     0%    /dev/fd
swap                 2853240  302712 2550528    11%    /tmp
swap                 2550568      40 2550528     1%    /var/run
/dev/dsk/c0t500601603022E66Ad9s6
                     516335185 96216683 414955151    19%    /data
/dev/dsk/c2t0d0s7    2690873    4895 2632161     1%    /export/home
/dev/asm/oravolume-39
                     20971520  144060 20827460     1%    /data/oracle/product/11.2
# umount /data/oracle/product/11.2
# fsck -F acfs /dev/asm/oravolume-39
version                   = 11.2.0.2.0
*****************************
********** Pass: 1 **********
*****************************
Oracle ASM Cluster File System (ACFS) On-Disk Structure Version: 39.0
ACFS file system created at: Tue Dec 28 23:24:33 2010
checking primary file system

       Files checked in primary file system: 100%

 


        Checking if any files are orphaned...


        0 orphans found

Checker completed with no errors.

下面登陸asmcmd

bash-3.00$ asmcmd
ASMCMD> volinfo -G data oravolume
Diskgroup Name: DATA

         Volume Name: ORAVOLUME
         Volume Device: /dev/asm/oravolume-39
         State: ENABLED
         Size (MB): 20480
         Resize Unit (MB): 256
         Redundancy: UNPROT
         Stripe Columns: 4
         Stripe Width (K): 128
         Usage: ACFS
         Mountpath: /data/oracle/product/11.2

ASMCMD> voldisable -G data oravolume
ASMCMD> voldelete -G data oravolume

至此,ACFS檔案系統解除安裝,建立ASMVOLUME也被刪除,所有空間回收到ASM磁碟組中。

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-693022/,如需轉載,請註明出處,否則將追究法律責任。

相關文章