Operating System - HP-UX
1821559 Members
3080 Online
109633 Solutions
New Discussion юеВ

Need bottle of snapshot remover.

 
SOLVED
Go to solution
Jonathan Corbeill
Occasional Advisor

Need bottle of snapshot remover.

I had created a few snapshots of my JFS filesystem. Several weeks later everthing is working perfectly and I want to remove the snapshots.

They don't show up anywhere in SAM, but are displayed when I do a bdf.

Please advise on how I can remove these, I can't find anything in the doc.
6 REPLIES 6
Jonathan Corbeill
Occasional Advisor

Re: Need bottle of snapshot remover.

maybe it doesn't show up when I do a pdf. But it does show in the filesystem. Can I just do a recursive delete on these babies?
A. Clay Stephenson
Acclaimed Contributor

Re: Need bottle of snapshot remover.

Hi Jonathan,

It couldn't be easier.

umount /mysnapshot1
umount /mysnapshot2

I'm amazed that you didn't fill up your snapshot buffers long before this.

Regards, Clay
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: Need bottle of snapshot remover.

When you are talking about taking a snapshot of your filesystems, what exactly are you talking about? How did you create the "snapshot"?

Did you just make a copy of the directories, or did you use the actual snapshot functionality available with the jfs filesystems?

More information would be very helpful.
Jonathan Corbeill
Occasional Advisor

Re: Need bottle of snapshot remover.

I created the snapshot using SAM on the JFS filesystem.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Need bottle of snapshot remover.

Okay Jonathan,

Remember these are readonly you couldn't remove files from them if you wanted to.

If they are showing up in bdf, they definitely are still mounted.

1) umount /mysnapshot1
2) (optional) rmdir /mysnapshot1

Clay
If it ain't broke, I can fix that.
Patrick Wallek
Honored Contributor

Re: Need bottle of snapshot remover.

I wasn't aware that you could create a JFS snapshot filesystem via SAM.

If the filesystem is a true JFS snapshot filesystem, then you should definitely see it when you do a bdf. If the snapshot is there, then you can do a 'umount /snapshop_fs_name' and the snapshot will be unmounted and all appropriate action needed by JFS will be done.

If you do not see the snapshot file system via a bdf, then they probably do not exist anymore.

Has this machine been rebooted since you created the snapshots? If so, then they probably would have been unmounted as a part of the reboot and then would NOT have been recreated when the machine came back up because there were not entries in the /etc/fstab file for those file systems.

As a point of information -- JFS snapshot file systems are not meant to be a long term storage area. They are meant to be created so that you can do a backup of static data on a filesystem rather than changing data. After the backup has been done, the file systems are unmounted and the filesystems are back to normal.