mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	PM / hibernate: clarify resume documentation
it was not the whole truth that kernel mode cannot be used with swap on LVM Signed-off-by: Uwe Geuder <linuxkernel2015-ugeuder@snkmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
							parent
							
								
									d770e558e2
								
							
						
					
					
						commit
						b51f9b103f
					
				
					 1 changed files with 11 additions and 2 deletions
				
			
		| 
						 | 
					@ -410,8 +410,17 @@ Documentation/usb/persist.txt.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q: Can I suspend-to-disk using a swap partition under LVM?
 | 
					Q: Can I suspend-to-disk using a swap partition under LVM?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
A: No. You can suspend successfully, but you'll not be able to
 | 
					A: Yes and No.  You can suspend successfully, but the kernel will not be able
 | 
				
			||||||
resume. uswsusp should be able to work with LVM. See suspend.sf.net.
 | 
					to resume on its own.  You need an initramfs that can recognize the resume
 | 
				
			||||||
 | 
					situation, activate the logical volume containing the swap volume (but not
 | 
				
			||||||
 | 
					touch any filesystems!), and eventually call
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					echo -n "$major:$minor" > /sys/power/resume
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					where $major and $minor are the respective major and minor device numbers of
 | 
				
			||||||
 | 
					the swap volume.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uswsusp works with LVM, too.  See http://suspend.sourceforge.net/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were
 | 
					Q: I upgraded the kernel from 2.6.15 to 2.6.16. Both kernels were
 | 
				
			||||||
compiled with the similar configuration files. Anyway I found that
 | 
					compiled with the similar configuration files. Anyway I found that
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue