Veritas: Commands To Defrag The File System

1. Some options worth noting
a. –D : report on directory fragmentation
b. –E : report on extent reorganization
c. –d : defragment the directory structure
d. –e : reorganize extent structure
e. –s : report with a summary of work completed
f. –v : report on reorganization activity

2. Example commands
/usr/lib/fs/vxfs/fsadm –F vxfs –D –E –s –v –d –e mount-point
/usr/lib/fs/vxfs/fsadm –F vxfs –s –d –e mount-point

Veritas: Volume Relayout

1. It is possible to relayout volumes/filesystems on the fly with veritas
# vxassist –g disk-group-name relayout volume-name
layout=layout-type ncol=number-of-columns alloc=”disks
to use” stripeunit=stripe-width

b. where alloc defines the disks to build the new layout on, ncol is the number columns to use, stripeunit is the size of the stripes (stripeunit is optional, default is 128), and where layout is the layout you are going to migrate to.
2. to check the relayout status vxrelayout status volume-name
3. to restart a hung or failed relayout vxrelayout start volume-name
4. to reverse a relayout vxrelayout reverse volume-name
5. after a relayout completes if you need to evacuate a disk to complete a new stripe set, or want to migrate data from one disk to a new disk vxevac –g disk-group-name current-disk new-disk
a. example:
vxevac –g testdg testdg01 testdg02
(this would move all data on testdg01 to testdg02)

How to mount and unmount a drive in linux

How To Mount A Drive In Linux

mount /dev/partitionId /some/mounting/point
eg. #mount /dev/sda2 /mnt

The mounting point path must already be created with proper permissions. So a more likely flow of commands would be

mkdir /some/mounting/point
chmod 777 /some/mounting/point
mount /dev/partitionId /some/mounting/point

How To Unmount A Drive In Linux

umount /dev/partitionId
eg. #umount /mnt

This command is very easy to type wrong. It is NOT unmount. Take another closer look if thats what you saw at first. It is umount — no n here!