HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - VXFS Snapshot Restore
 
Operating System - HP-UX
        1840213
        Members
    
    
        3603
        Online
    
    
        110162
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-09-2001 03:35 PM
11-09-2001 03:35 PM
			
				
					
					
						Does HP-UX support a fast restore from an OnlineJFS snapshot, or is the only way to copy all the files in from the snapshot?
(We have a 'test' Oracle database that regularly gets messed up and restored from a known good backup, but I'm looking for some way to reduce the hassle of constant restores without resorting to a complete mirror.)
					
				
			
			
				
			
			
				
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
(We have a 'test' Oracle database that regularly gets messed up and restored from a known good backup, but I'm looking for some way to reduce the hassle of constant restores without resorting to a complete mirror.)
Solved! Go to Solution.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-09-2001 03:50 PM
11-09-2001 03:50 PM
Solution
			
				
					
					
						Hi Steve:
The 'restore' is simply a file by file copy. As far as you are concerned, the snapshot is simply a read-only filesystem. Anything you can do with a read-only filesystem, you can do with the snapshot. However, there is a gotcha.
Since you are copying from the snapshot back to the original, I think that every block changed in the original filesystem for the FIRST time has to be written to the snapshot buffer first. Typically these buffers are only about 10-15% od the original so that you would quickly file up the snapshot buffer. This is not really the way vxfs snapshots were intended to work. They were really intended to allow backups while the filesystem stays up but not to directly restore to the original filesystem. Your better option is to mirror and split off a mirror. You can then very quickly restore the data.
Regards, Clay
		
		
	
	
	
The 'restore' is simply a file by file copy. As far as you are concerned, the snapshot is simply a read-only filesystem. Anything you can do with a read-only filesystem, you can do with the snapshot. However, there is a gotcha.
Since you are copying from the snapshot back to the original, I think that every block changed in the original filesystem for the FIRST time has to be written to the snapshot buffer first. Typically these buffers are only about 10-15% od the original so that you would quickly file up the snapshot buffer. This is not really the way vxfs snapshots were intended to work. They were really intended to allow backups while the filesystem stays up but not to directly restore to the original filesystem. Your better option is to mirror and split off a mirror. You can then very quickly restore the data.
Regards, Clay
	If it ain't broke, I can fix that.
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-09-2001 04:04 PM
11-09-2001 04:04 PM
			
				
					
						
							Re: VXFS Snapshot Restore
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						<>
Did you mean restoring from
the JFS snapshot copy to
the original?? No, that''s
not possible. Remember the
JFS snapshot is actually
a "'delta"" filesystem which
only contains the original
copy of the changes being made
on the actual filesystem.
JFS snapshot is not a exact
mirror of a filesystem.
<>
If you have taken a backup
of the snapshot , it is
as good as a regular filesystem
backup and the tapes of this
backup can be used for restore.
But, there is no way you can restore from the JFS snapshot itself.
<<(We have a 'test' Oracle database that regularly gets messed up and restored from a known good backup, but I'm looking for some way to reduce the hassle of constant restores without resorting to a complete mirror.)>>
You can approach this
problem from the database level, by using archivelog mode and taking regular export/hot backup. that way, you save the chore of restoring the whole database. Instead, you canrestore archives based on db recommendation .
Here''s an extract from JFS snapshot description:
****
A snapshot looks like an ordinary file system to the user, except that
snapshots are always mounted read-only. That is, none of the directories or
files within a snapshot can be modified. Internally, however, something very
different is going on. The device that ``contains'' a snapshot is actually
only used to hold blocks that have changed on the primary file system
since the snapshot was created. The rest of the blocks--the ones that
have not changed--can be found on the device that contains the primary
file system, so there is no need for a copy. All this is done transparently
within the kernel.
****
HTH
raj
  
					
				
			
			
				
		
		
	
	
	
Did you mean restoring from
the JFS snapshot copy to
the original?? No, that''s
not possible. Remember the
JFS snapshot is actually
a "'delta"" filesystem which
only contains the original
copy of the changes being made
on the actual filesystem.
JFS snapshot is not a exact
mirror of a filesystem.
<
If you have taken a backup
of the snapshot , it is
as good as a regular filesystem
backup and the tapes of this
backup can be used for restore.
But, there is no way you can restore from the JFS snapshot itself.
<<(We have a 'test' Oracle database that regularly gets messed up and restored from a known good backup, but I'm looking for some way to reduce the hassle of constant restores without resorting to a complete mirror.)>>
You can approach this
problem from the database level, by using archivelog mode and taking regular export/hot backup. that way, you save the chore of restoring the whole database. Instead, you canrestore archives based on db recommendation .
Here''s an extract from JFS snapshot description:
****
A snapshot looks like an ordinary file system to the user, except that
snapshots are always mounted read-only. That is, none of the directories or
files within a snapshot can be modified. Internally, however, something very
different is going on. The device that ``contains'' a snapshot is actually
only used to hold blocks that have changed on the primary file system
since the snapshot was created. The rest of the blocks--the ones that
have not changed--can be found on the device that contains the primary
file system, so there is no need for a copy. All this is done transparently
within the kernel.
****
HTH
raj
	Take it easy.
			
			
				
			
			
			
			
			
			
		- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-09-2001 04:08 PM
11-09-2001 04:08 PM
			
				
					
						
							Re: VXFS Snapshot Restore
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Thanks for the replies.  It's technically possible to restore the original filesystem back to the contents of the snapshot, just by restoring all the copied-on-write data.  I believe this is how some dedicated NFS server/appliances restore back from a snapshot.
I was hoping that there might be a way to do the same thing with vxfs. Oh, well.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
I was hoping that there might be a way to do the same thing with vxfs. Oh, well.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP