LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization
User Name
Password
Linux - Virtualization This forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-08-2012, 04:19 AM   #1
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 86

Rep: Reputation: 0
Shutdown guests on powerfailure.


Hi,

When power fails, the UPS (nut) save the state of all aktive guests.
This takes a lot of time.

Is it possible to make nut do a normal shutdown instead ?

Regards.
 
Old 02-08-2012, 09:05 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.37, Debian Squeeze
Posts: 7,987
Blog Entries: 25

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Which software does nut use on the host when the power fails?

Which virtualisation software is used to run the guests?
 
Old 02-09-2012, 02:13 AM   #3
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 86

Original Poster
Rep: Reputation: 0
We use Cent OS 6.2 with KVM.

Here are the config-files. I think it's Netwatch, not 100% sure.

’root@nyborg ~¸# cd /etc
’root@nyborg etc¸# cd ups
’root@nyborg ups¸# ls -l
total 40
-rwxrwxrwx 1 nobody root 157 Jan 30 14:42 notify.sh
-rw-r----- 1 root nut 1413 Aug 5 2011 nut.conf
-rw-r----- 1 root nut 3738 Nov 24 12:08 ups.conf
-rw-r----- 1 root nut 2589 Nov 24 13:29 upsd.conf
-rw-r----- 1 root nut 2271 Nov 24 12:12 upsd.users
-rw-r----- 1 root nut 12308 Dec 2 15:03 upsmon.conf
-rw-r----- 1 root nut 3891 Aug 5 2011 upssched.conf
’root@-nyborg ups¸#
’root@-nyborg ups¸#
 
Old 02-09-2012, 02:20 AM   #4
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 86

Original Poster
Rep: Reputation: 0
The UPS-software is nut !
 
Old 02-09-2012, 02:59 AM   #5
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Slackware 13.37, Debian Squeeze
Posts: 7,987
Blog Entries: 25

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
According to the upsmon.conf man page, SHUTDOWNCMD command can be used to configure a command for upsmon to run when the system needs to be brought down. That command could be a script which shuts down the VMs and then shuts down the host.

IDK KVM so cannot advise on the command(s) to shut down the VMs. If netsearching dosn't give you a solution, it might be worth a new thread, asking how to shut down KVM VMs programatically.
 
Old 02-22-2012, 12:02 AM   #6
brak44
Member
 
Registered: Aug 2010
Location: Brisbane Australia
Distribution: Fedora 14,16 SL6.1 Centos 6.2
Posts: 53

Rep: Reputation: 5
Non-default shutdown

We had the same problem with nut waiting until the battery had about 2 minutes life left in it. This corrupted the VM's because they needed time to save their state to the disk.
The approach of using a Non-default shutdown worked for us.
Check this out
http://linuxman.wikispaces.com/NUT
and scroll down to the Non-default shutdown section.
 
Old 02-23-2012, 01:59 AM   #7
ThomasRonshof
Member
 
Registered: Aug 2006
Posts: 86

Original Poster
Rep: Reputation: 0
Thanks :-)

I'll test it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Powerfailure proof PC johnson_steve Linux - General 11 07-20-2010 01:39 AM
[SOLVED] VirtualBox: how to start and shutdown guests VMs on startup matiasar Linux - Software 3 06-23-2010 09:01 AM
Squid cannot start after powerfailure perfectpol7 Linux - Networking 8 03-04-2009 05:54 PM
CRC error after powerfailure Koetsier Linux - Software 2 04-26-2006 02:25 AM
Firewire powerfailure - device not recognised - what files to flush? redness Linux - Hardware 0 01-28-2005 04:23 AM


All times are GMT -5. The time now is 02:11 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration