Moved root directory to tmp


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Moved root directory to tmp
# 8  
Old 11-23-2004
Boot off a cdrom into single user and move everything back. You won't be using the commands from the disk, all your stuff is still there - of course, I don't know if this works in SCO.

Once upon a time... one of the more experienced/brilliant SA I've known was using an automated update script (cfengine). Instead of moving /etc/passwd out of the way, it moved /etc. Since this was automated, over half the servers were hit before it updated the server that was being used, killing it and stopping the spread of destruction.

After about 6 hours of trying to figure out a way out of this (besides doing rebuilds), one of the Sys Admins that use to work there was called. He came in as a favor to the SAs that were still there. Within five minutes of getting there, he found that everything was still there, just that it was in lost+found. Each server was booted into single user from either a cdrom or the jumpstart server (which was just finished being rebuilt (during the six hours) and the etc directory moved back. What was looking to be a 2 or 3 day outage attempting to rebuild 49 servers was brought to an end in 12 hours (total time from screw up to AOK - 18 hours).

Last edited by RTM; 11-23-2004 at 04:30 PM..
# 9  
Old 11-23-2004
I bet that was a fun couple of days
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to use space in /tmp to increase root?

Hello All, I have solaris server running, uname -a SunOS host 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-280R Filesystem Size Used Available Capacity Mounted on /dev/md/dsk/d0 9.8G 8.7G 1.0G 90% / /dev/dsk/c1t1d0s3 4.3G 7.7M 4.2G ... (17 Replies)
Discussion started by: gull05
17 Replies

2. UNIX for Dummies Questions & Answers

Redirecting tmp files of SORT into different directory

Hey Guys, I am facing an annoying scenario, fewer times when I execute the sort command, it throws out on error saying that "No Space on available on /var/tmp/<temp file name>. May be it is set to /var/tmp directory. I was wondering, if I cant redirect the temporary file creation to any other... (3 Replies)
Discussion started by: abhisheksunkari
3 Replies

3. AIX

\tmp Directory is full up to 99%.

Dear All, We are on AIX OS, /tmp directory is filled up to 99% percent, Please suggest, How to get free space for "/tmp"? which files can be deleted from /tmp? and How to delete it? is there any commands..... Thanks in advance, Its very urgent, Helpful answers will be appreciated, Please... (7 Replies)
Discussion started by: kak
7 Replies

4. UNIX for Dummies Questions & Answers

User cannot retrieve email once his /home directory was moved

Hi, We run an IMAP server at work. I had to move the home directory of one user to another partition. I updated his account in /etc/passwd. For some reason his Microsoft Outlook account cannot rertrieve his new emails. I check /var/spool/mail and his emails are there... Any advice? (1 Reply)
Discussion started by: mojoman
1 Replies

5. Web Development

html link to images in /tmp directory

Because of permission issues, I need to link to images in my web page which are stored in /tmp which of course is located in the root directory but my actual html page is much further down in another directory. I thought the the following code should work, but the image comes up as a broken link:... (2 Replies)
Discussion started by: Solerous
2 Replies

6. Shell Programming and Scripting

perl script related /tmp directory

hi friends. i have to make a perl script to generate all users and space(how much they are using) and files(how much files they have) and time(how much time that accessed /tmp buffer) from /tmp directory. please provide me guidance. regards pranesh b. mishra (2 Replies)
Discussion started by: praneshmishra08
2 Replies

7. UNIX for Advanced & Expert Users

MODIFY DEFAULT TMP Directory

Am using SCO Unix Open Server 5. I am having trouble big running procedures as my / filesystem gets full before the report completes sorting. How do I change the default tmp directory. (1 Reply)
Discussion started by: Waitstejo
1 Replies

8. Solaris

Usage of /var/tmp/ directory on Solaris 10

Hi All, I have some threaded applications. Design of the application is such that one thread will decode some data and put it in data structure, And main thread will wait for another child threads pick up the decoded data. The data will be large decoded files. Once decoded data is picked by... (1 Reply)
Discussion started by: patilmuragesh
1 Replies

9. Red Hat

/tmp directory

i heard once that the /tmp directory was a ramfs (swap) that is cleared at reboot time, is this still the case in redhat EL 3 and 4 ? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

10. UNIX for Dummies Questions & Answers

/tmp directory gets to 100%

Eventhough there is no visible feed to the /tmp dir, when I shut my apps engine it gets down to 4%. Upon restarting my engine, give it about 10-15 minutes and the /tmp gets to a 100% again. My engine is running on AIX 4.3. Engines job is to process metapp (metacode to PDF) completed files and then... (2 Replies)
Discussion started by: buRst
2 Replies
Login or Register to Ask a Question