grittyminder
IS-IT--Management
Hi there! I don't really have a problem to "solve" per se, I just want to understand what exactly happened here and prevent the same from happening in the future...
Here's what I did. I have a home server running VMware Server on top of Linux. I have a virtual machine that I set up as a Samba file server (Ubuntu Feisty). I created a huge partition (120GB) just for storing my files, music, pictures, and movies. I copied aproximately 90GB worth of files to the new partition and Samba shared it. I was able to connect to the Samba share from Linux and Windows clients alike, and view pictures, play video, etc. Everything was great and peachy.
Here is where things become ugly. I'm about to leave on vacation so I want to turn the server off while I'm away to conserve power. I log into the physical server via the console and attempt a shutdown. The output reads as if everything is shutting down normally. However, after a while I am returned to the Linux login prompt (the server does not shut down). I attempt another command line shutdown but nothing happens. Now, I'm in a hurry, so I just manually power off the server. As I'm doing this I'm thinking to myself that nothing bad should happen, because there should be protections in place in case a server powers off unexpectedly (e.g. in case of a power outage).
Fast forward to present day. I power on the physical server and everything seems fine. However, the virtual Samba file server fails to boot. Upon closer inspection (using an install disc to access a shell upon bootup) I discover that none of the partitions on the Samba file server are being detected--they have all been wiped out.
So why did this happen? Obviously I should have shut off the virtual machine prior to powering off the physical server. However, who would have expected that all my partitions would be wiped out? This is not normal behavior, right?
Also, how can I prevent this from happening again? If I set up the virtual Samba server again in the same way would all the partitions be wiped out again in the event of a power failure? How should I proceed here?
Here's what I did. I have a home server running VMware Server on top of Linux. I have a virtual machine that I set up as a Samba file server (Ubuntu Feisty). I created a huge partition (120GB) just for storing my files, music, pictures, and movies. I copied aproximately 90GB worth of files to the new partition and Samba shared it. I was able to connect to the Samba share from Linux and Windows clients alike, and view pictures, play video, etc. Everything was great and peachy.
Here is where things become ugly. I'm about to leave on vacation so I want to turn the server off while I'm away to conserve power. I log into the physical server via the console and attempt a shutdown. The output reads as if everything is shutting down normally. However, after a while I am returned to the Linux login prompt (the server does not shut down). I attempt another command line shutdown but nothing happens. Now, I'm in a hurry, so I just manually power off the server. As I'm doing this I'm thinking to myself that nothing bad should happen, because there should be protections in place in case a server powers off unexpectedly (e.g. in case of a power outage).
Fast forward to present day. I power on the physical server and everything seems fine. However, the virtual Samba file server fails to boot. Upon closer inspection (using an install disc to access a shell upon bootup) I discover that none of the partitions on the Samba file server are being detected--they have all been wiped out.
So why did this happen? Obviously I should have shut off the virtual machine prior to powering off the physical server. However, who would have expected that all my partitions would be wiped out? This is not normal behavior, right?
Also, how can I prevent this from happening again? If I set up the virtual Samba server again in the same way would all the partitions be wiped out again in the event of a power failure? How should I proceed here?