Veritas Access 7.3 Administrator's Guide
- Section I. Introducing Veritas Access
- Section II. Configuring Veritas Access
- Adding users or roles
- Configuring the network
- Configuring authentication services
- Section III. Managing Veritas Access storage
- Configuring storage
- About Flexible Storage Sharing
- Configuring data integrity with I/O fencing
- Configuring ISCSI
- Configuring storage
- Section IV. Managing Veritas Access file access services
- Configuring your NFS server
- Setting up Kerberos authentication for NFS clients
- Using Veritas Access as a CIFS server
- About Active Directory (AD)
- About configuring CIFS for Active Directory (AD) domain mode
- About setting trusted domains
- About managing home directories
- About CIFS clustering modes
- About migrating CIFS shares and home directories
- About managing local users and groups
- Configuring Veritas Access to work with Oracle Direct NFS
- Configuring an FTP server
- Configuring your NFS server
- Section V. Managing the Veritas Access Object Store server
- Section VI. Monitoring and troubleshooting
- Section VII. Provisioning and managing Veritas Access file systems
- Creating and maintaining file systems
- Considerations for creating a file system
- Modifying a file system
- Managing a file system
- Creating and maintaining file systems
- Section VIII. Configuring cloud storage
- Configuring the cloud gateway
- Configuring cloud as a tier
- About policies for scale-out file systems
- Section IX. Provisioning and managing Veritas Access shares
- Creating shares for applications
- Creating and maintaining NFS shares
- Creating and maintaining CIFS shares
- Using Veritas Access with OpenStack
- Section X. Managing Veritas Access storage services
- Deduplicating data
- Compressing files
- About compressing files
- Compression tasks
- Configuring SmartTier
- Configuring SmartIO
- Configuring replication
- Replication job failover and failback
- Using snapshots
- Using instant rollbacks
- Configuring Veritas Access with the NetBackup client
- Section XI. Reference
Defragmenting a file system
You can either defragment a file system now or you can schedule a defragment job for a file system.
To defragment a file system
- To defragment a file system, enter the following:
Storage> fs defrag now fs_name time [defrag_level]
fs_name
Specifies the name of the file system that you want to defragment.
Note:
The specified file system must be online before attempting to defragment the file system.
time
Specifies the maximum time to run. The defragmentation options are processed until defragmentation is complete, or until the time limit expires. The time value should be larger than one minute.
Potential time value output and what the values mean:
10M - indicates 10 minutes
1H20M - indicates 1 hour and 20 minutes
Infinite - indicates the defragmentation process continues to run until the defragmentation process is done completely.
There is no limit time.
defrag_level
Specifies the defragmentation level such as
dir
,extent
, orall
.For example:
Storage> fs defrag now fs1 1H20M It will take some time to do the defragmentation do you want to continue? yes|no y
To schedule a defragment job for a file system.
- Create a defrag schedule job for a file system that reoccurs once a week:
Storage> fs defrag schedule create sched_name sched_duration \ minute [hour] [day_of_the_month] \ [month] [day_of_the_week]
sched_name
Specifies the the name of the schedule.
sched_duration
Specifies the duration of the defragmenatation job.
minute
Specifies the minute (0-59).
hour
Specifies the hour (0-23).
day_of_the_month
Specifies the day of the month (1-31).
month
Specifies the month of the year (1-12).
day_of_the_week
Specifies the day of the week (0-6 with 0=Sunday).
For example:
Create a defrag schedule called
schedule1
that runs at 11:00 pm every Saturday for a duration of 2 hours.Storage> fs defrag schedule create schedule1 2 0 23 * * 6 ACCESS defrag Success V-288-999 Defrag Schedule creation succeeded
The number 2 after schedule1 is the duration of how long the defrag schedule will run. 0 indicates minutes and 23 is the hour for which the defrag schedule will run.
- Show the defrag schedule details:
Storage> fs defrag schedule show sched_name
For example:
Show the defrag schedule details of
schedule1
:Storage> fs defrag schedule show schedule1 Schedule Information for schedule1 ============================================= Name Node Duration Minute Hour Day Month WeekDay ==== ==== ======== ====== ==== === ===== ======= schedule1 mtvnas_01 8hours 15 23 * * 6
- Start the defrag schedule job for a file system:
Storage> fs defrag schedule start fs_name sched_name
For example
Start the defrag
schedule1
schedule job fortpcc_data1
file system:Storage> fs defrag schedule start tpcc_data1 schedule1 ACCESS defrag SUCCESS V-288-999 starting schedule1 for fsname tpcc_data1
- List the scheduled defrag job status for a file system:
Storage> fs defrag schedule list fs_name
For example:
List the scheduled defrag job status for
tpcc_data1
file system :Storage> fs defrag schedule list tpcc_data1 Schedule Information for tpcc_data1 ============================================= Name Node Duration Minute Hour Day Month WeekDay ==== ==== ======== ====== ==== === ===== ======= schedule1 mtvnas_01 8hours 15 23 * * 6