Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Snapshot image fails to mount

Status
Not open for further replies.

mrn

MIS
Apr 27, 2001
3,993
GB
Trying to use snapshot to get around a log rotate problem were having.

AIX 5.2 ML5

From command line (with no log being written)

snapshot -o snapfrom=/testlog -o size=16M

works; giving me

snapshot -q /testlog

Current Location 512-Blocks Free Time
* /dev/fslv11 131072 130304 Wed Jun 14 09:07:21

which I can mount using

mount -v jfs2 -o snapshot /dev/fslv11 /testsnap

however with the log writting

I get the following message

ERROR : 1 : command "mount -v jfs2 -o snapshot /dev/fslv11 /testsnap" failed : mount: /dev/fslv11 on /testsnap: Unformatted or incompatible media.

&

Current Location 512-blocks Free Time
INVALID /dev/fslv11 262144 Tue Jun 13 14:11:08 2006

Having read the documentation I can find the snapshot should work on an active filesystem. Anyone got any ideas?



Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
The log is a ULOG produced by Tuxedo; just standard ascii format. The filesystem is JFS2, tried with both external & inline log, to no avail.

Both /testlog & /testsnap are 1Gb


I may have discovered the problem; when reviewing errpt the following message is shown

----------------------------------------------------
J2_SNAP_FULL
unable to allocate in JFS2 snapshot
INSUFFICIENT STORAGE MEDIA SPACE
The snapshots for the JFS2 file system were deleted.
----------------------------------------------------


when creating snapshot on an inactive fs I can create multiple snapshots. As soon as I try to create a snapshot with an active fs all the snapshots are marked INVALID. So I guess I need to make the size of the snapshot = size of filesystem (1Gb) (makes sense when you think about it). I'll try and report back.

Mike

"A foolproof method for sculpting an elephant: first, get a huge block of marble, then you chip away everything that doesn't look like an elephant."

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top