AWS Storage Gateway User Guide
Reducing the Amount of Billed Storage on a Volume
4. For
Actions
, choose
Attach volume
.
5. In the
Attach Volume
dialog box, choose the gateway that you want to attach the volume to, and
then enter the iSCSI target that you want to connect the volume to.
If you are attaching a stored volume, enter its disk identifier for
Disk ID
.
6. Choose
Attach volume
. If a volume that you attach has a lot of data on it, it transitions from
Detached
to
Attached
if the
AttachVolume
operation succeeds.
7. In the Configure CHAP authentication wizard that appears, enter the
Initiator name
,
Initiator secret
,
and
Target secret
, and then choose
Save
. For more information about working with Challenge-
Handshake Authentication Protocol (CHAP) authentication, see
Configuring CHAP Authentication for
Reducing the Amount of Billed Storage on a Volume
Deleting files from your file system doesn't necessarily delete data from the underlying block device or
reduce the amount of data stored on your volume. If you want to reduce the amount of billed storage
on your volume, we recommend overwriting your files with zeros to compress the storage to a negligible
amount of actual storage. AWS Storage Gateway charges for volume usage based on compressed
storage.
Note
If you use a delete tool that overwrites the data on your volume with random data, your usage
will not be reduced. This is because the random data is not compressible.
Creating a One-Time Snapshot
In addition to scheduled snapshots, for volume gateways you can take one-time, ad hoc snapshots. By
doing this, you can back up your storage volume immediately without waiting for the next scheduled
snapshot.
To take a one-time snapshot of your storage volume
1. Open the AWS Storage Gateway console at
https://console.amazonaws.cn/storagegateway/home
.
2. In the navigation pane, choose
Volumes
, and then choose the volume you want to create the
snapshot from.
3. On the
Actions
menu, choose
Create snapshot
.
4. In the
Create snapshot
dialog box, type the snapshot description, and then choose
Create snapshot
.
You can verify that the snapshot was created using the console.
Your snapshot is listed in the
Snapshots
in the same row as the volume.
Editing a Snapshot Schedule
For stored volumes, AWS Storage Gateway creates a default snapshot schedule of once a day.
Note
You can't remove the default snapshot schedule. Stored volumes require at least one snapshot
schedule. However, you can change a snapshot schedule by specifying either the time the
snapshot occurs each day or the frequency (every 1, 2, 4, 8, 12, or 24 hours), or both.
For cached volumes, AWS Storage Gateway doesn't create a default snapshot schedule. No default
schedule is created because your data is stored in Amazon S3, so you don't need snapshots or a snapshot
API Version 2013-06-30
162