Create a snap on ACFs

Source: Internet
Author: User

Unzip the files to/voltest filesystem
[Root @ host02/] # unzip images.zip-D/voltest
Archive: images.zip
Creating:/voltest/gridinstall/
Inflating:/voltest/gridinstall/asm.gif
Inflating:/voltest/gridinstall/bullet2.gif
Inflating:/voltest/gridinstall/bullet.gif
Extracting:/voltest/gridinstall/divider.gif
Extracting:/voltest/gridinstall/gradient.gif

[Root @ host02/] # ls-r/voltest/
/Voltest /:
Gridinstall lost + found test.txt
/Voltest/gridinstall:
Asm.gif t20108.gif t30104.gif t30119d.gif
/Voltest/lost + found:
Create an snap.
[Root @ host02/] # acfsutil snap create snap_001/voltest/
Acfsutil snap create: Snapshot operation is complete.
[Root @ host02/] # cd/voltest/
[Root @ host02 voltest] # ls-la
Total 96
Drwxrwx --- 5 root asmadmin 4096 Nov 4 13:04.
Drwxr-XR-x 28 Root 4096 Nov 4 ..
Drwxr-XR-x 5 root Root 4096 Nov 4. ACFs
Drwxr-XR-x 2 root Root 12288 May 6 2009 gridinstall
Drwx ------ 2 root Root 65536 Nov 4 13:01 lost + found
-RW-r -- 1 Root 0 Nov 4 12:58 test.txt
[Root @ host02 voltest] # Du-H gridinstall/
2.0 m gridinstall/
[Root @ host02 voltest] # ls. ACFs/
Repl snaps
[Root @ host02 voltest] # ls. ACFs/snaps/
Snap_001
[Root @ host02 voltest] # ls. ACFs/snaps/snap_001/
Gridinstall lost + found test.txt
[Root @ host02 voltest] # Du-H. ACFs/snaps/snap_001/gridinstall/
2.0 m. ACFs/snaps/snap_001/gridinstall/
Delete An file to test the snap Function
[Root @ host02 voltest] # rm gridinstall/asm.gif
RM: Remove regular file 'gridinstall/asm.gif '? Y
Create the other snap.
[Root @ host02 voltest] # acfsutil snap create snap_002/voltest
Acfsutil snap create: Snapshot operation is complete.
Get the info about the filesystem.
[Root @ host02 voltest] # acfsutil info fs/voltest/
/Voltest/
ACFs version: 11.2.0.1.0.0
Flags: mountpoint, available
Mount time: Fri Nov 4 12:57:36 2011
Volumes: 1
Total size: 1342177280
Total free: 1161023488
Primary volume: // DEV/ASM/voltest-14
Label:
Flags: primary, available, advm
On-disk version 39.0
Allocation unit: 4096
Major, minor: 252,716 9
Size: 1342177280
Free: 1161023488
Advm diskgroup FRA
Advm resize increment: 268435456
Advm redundancy: unprotected
Advm stripe columns: 4
Advm stripe width: 131072
Number of snapshots: 2
Snapshot space usage: 2260992
Restore the asm.gif file to filesystem from the snapshot.

[Root @ host02 voltest] # cp./. ACFs/snaps/snap_001/gridinstall/asm.gif./gridinstall/asm.gif
[Root @ host02 voltest] # umount/voltest/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.