Wednesday, 3 July 2013

View And Delete Nexenta Snapshots From Command Line

It is possible to list all snapshots on a Nexenta device, as well as remove them via the command line. To do this, follow the commands below;

1. SSH as ADMIN onto the device you are replicating to.
2. SU to root permissions, but don't enter nmc. Your path should read something like root@devicename:/export/home/admin#
3. Run the command;

zfs list -t snapshot
This will list all snapshots on the device. The more snaps you have, the longer this will take so go make a cup of tea while it is running.
4. Find the name of the snap you wish to remove and run the command;
zfs destroy snapname
You can also remove snapshots through the Nexenta GUI by navigating to Data Management > Data Sets > Snapshots

No comments:

Post a Comment