beautypg.com

Determining space used by snapshots, Accessing snapshot directories – HP StoreAll Storage User Manual

Page 163

background image

To take a snapshot from the CLI, use the following command:

ibrix_snap -c -f FSNAME -P SNAPTREEPATH -n NAMEPATTERN

SNAPTREEPATH

is the full directory path starting from the root of the file system. The name that

you specify is appended to the date of the snapshot. The following words cannot be used in the
name, as they are reserved for scheduled snapshots:

Hourly
Daily
Weekly
Monthly

You will need to manually delete on-demand snapshots when they are no longer needed.

Determining space used by snapshots

Space used by snapshots counts towards the used capacity of the filesystem and towards user
quotas. Standard file system space reporting utilities work as follows:

The ls and du commands report the size of a file depending on the version you are viewing.
if you are looking at a snapshot, the commands report the size of the file when it was snapped.
If you are looking at the current version, the commands report the current size.

The df command reports the total space used in the file system by files and snapshots.

Accessing snapshot directories

Snapshots are stored in a read-only directory named .snapshot located under the directory tree.
For example, snapshots for directory tree /ibfs1/users are stored in the /ibfs1/users/
.snapshot

directory. Each snapshot is a separate directory beneath the .snapshot directory.

Snapshots are named using the ISO 8601 date and time format, plus a custom value. For example,
a snapshot created on June 1, 2011 at 9am will be named 2011-06-01T090000_. For
snapshots created automatically, is hourly, daily, weekly, or monthly, depending
on the snapshot schedule. If you create a snapshot on-demand, you can specify the .

The following example lists snapshots created on an hourly schedule for snap tree /ibfs1/users.
Using ISO 8601 naming ensures that the snapshot directories are listed in order according to the
time they were taken.

[root@x9000n1 ~]# # cd /ibfs1/users/.snapshot/
[root@x9000n1 .snapshot]# ls
2011-06-01T110000_hourly 2011-06-01T190000_hourly 2011-06-02T030000_hourly
2011-06-01T120000_hourly 2011-06-01T200000_hourly 2011-06-02T040000_hourly
2011-06-01T130000_hourly 2011-06-01T210000_hourly 2011-06-02T050000_hourly

Managing software snapshots 163