Saturday, July 19, 2008

LVM Interview Question

To change the file system size of the /test Journaled File System, enter:

chfs -a size=24576 /test
This command changes the size of the /test Journaled File System to 24576 512-byte blocks, or 12MB (provided it was previously no larger than this).

To increase the size of the /test Journaled File System, enter:

chfs -a size=+8192 /test
This command increases the size of the /test Journaled File System by 8192 512-byte blocks, or 4 MB.

To convert a JFS2 file system to a version which can support NFS4 ACLs, type:

chfs -a ea=v2 /test
To change the mount point of a file system, enter:

chfs -m /test2 /test
This command changes the mount point of a file system from /test to /test2.

To delete the accounting attribute from a file system, enter:

chfs -d account /home
This command removes the accounting attribute from the /home file system. The accounting attribute is deleted from the /home: stanza of the /etc/filesystems file.

To split off a copy of a mirrored file system and mount it read-only for use as an online backup, enter:

chfs -a splitcopy=/backup -a copy=2 /testfs
This mount a read-only copy of /testfs at /backup.

To change the file system size of the /test Journaled File System, enter:

chfs -a size=64M /test
This command changes the size of the /test Journaled File System to 64MB (provided it was previously no larger than this).

To reduce the size of the /test JFS2 file system, enter:

chfs -a size=-16M /test
This command reduces the size of the /test JFS2 file system by 16MB.

To freeze a file system, enter:

chfs -a freeze=60 /adl
This command freezes the /adl file system for a maximum of 60 seconds.

To thaw a file system, enter:

chfs -a freeze=off /zml

No comments: