very importan pliz help me!!! /var partition is empity :s

R_15

Member
Oct 17, 2004
11
0
151
hi
by accident i delete all the content in /var

that produce that now the whm and the cpanel don't work also
nothings work ic an even use the shell :S

the only thing hat work in the whm is the cPanel/WHM Update and the the software seccion(Update Server Software , Update System Software ) the funcion install a rpm says " Install an RPM Select packages to installError 404 while fetching url http://updates.cpanel.net//pub/rpminstall/redhat-9/updates.db"

but it don't work propertly ebcause it don't fix the problem :s

any body hav and idea, of how to fix it?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,453
31
473
Go on, have a guess
Unless you want to spend a great deal of time and effort recreating everything in /var (some of which you probably won't be able to) then you're going to have to have an OS restore performed on the server and then restore your cPanel users from backup - you do have a backup, don't you?
 

ThaMATRiX

Well-Known Member
Feb 1, 2004
196
0
166
Chicago
chirpy said:
Unless you want to spend a great deal of time and effort recreating everything in /var (some of which you probably won't be able to) then you're going to have to have an OS restore performed on the server and then restore your cPanel users from backup - you do have a backup, don't you?
I did this a week and a half ago, it cost me $90 for the datacenter to reinstall the os and cpanel. its needed.
 

djmerlyn

Well-Known Member
Aug 31, 2004
201
1
168
It's ok, my first botching was in SSH...

I accidentalty chowned and chattrd everything 777 and root.root then deleted everything in the /home partition...

There was no way to fix without a reload :)

Needless to say, I felt like a dumbass :)
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,453
31
473
Go on, have a guess
It's so easily done. You usually realise what's happening when you think "Why is it taking so long to delete a handful of files?...Oooooooooh shiiiiiiit...[ctrl-c]...<very long pause>". It happens to us all. Sadly, at least once ;)
 

R_15

Member
Oct 17, 2004
11
0
151
i do rm -rf * when i was on /var because i was thinking thati was on /var/log

and it delete everything :s

i don't know how to reinstall the OS with out been in real life next to the pc xD

i have the idea to upload all the files in my /var on my pc to the server

but the ssh2 don't work :'(

so my only chance is pay the $65 for the rstore??
 

ThaMATRiX

Well-Known Member
Feb 1, 2004
196
0
166
Chicago
Yea, usually you need to be with the server to do it. Just pay the datacenter to do it. :\
its a hard lesson.
if you have customers, i'd recommend you don't tell them what you did.
tell them rather that it was a hard drive failure or something?
 

djmerlyn

Well-Known Member
Aug 31, 2004
201
1
168
What I learned, is that it's worth my reload money...to be a lot more carefull :)

I take the family out to dinner instead :D
 

R_15

Member
Oct 17, 2004
11
0
151
yeap, i'm not a webhosting comany

the server is for my website and some frinds websites we realise that was cheaper buy a dedicated server than a webhosting.

so it's okay if they know the true , also theya lready know xD
 

cyberrob

Active Member
Mar 5, 2004
33
0
156
That is a blatent lie and I could never tell such a lie to my clients, I would have said "Server problems due to a major bug in the red hat opperating system outwith our control" i.e. the opperating cannot opperate correctly without essential system files! :D
 

ThaMATRiX

Well-Known Member
Feb 1, 2004
196
0
166
Chicago
cyberrob said:
That is a blatent lie and I could never tell such a lie to my clients, I would have said "Server problems due to a major bug in the red hat opperating system outwith our control" i.e. the opperating cannot opperate correctly without essential system files! :D
lol either way, dont tell them that you deleted the hard drive and thats why their going to be having downtime.. thats the fastest way to lose customers.
 

RandyO

Well-Known Member
Jun 17, 2003
173
0
166
ThaMATRiX said:
Yea, usually you need to be with the server to do it. Just pay the datacenter to do it. :\
its a hard lesson.
if you have customers, i'd recommend you don't tell them what you did.
tell them rather that it was a hard drive failure or something?
Best to tell them the truth, give them an accurate idea of when you will have them back and running too.

Why lie to them? Just fess up your mistake and your clients will be somewhat more appreciative in the end.
 

PWSowner

Well-Known Member
Nov 10, 2001
2,940
4
343
ON, Canada
Reminds me of my big mistake when I was new to shell.

Had a temporary directory
/temp

Wanted to delete it
cd /
rm -rf temp *

I just watched the lines fly down the screen and had to have a reinstall. :eek: Good thing it was only for personal use at that time. ;)

Shell commands can be fun when you are first learning. ;) :rolleyes: