[Solved] Not able to delete/create file in /tmp


 
Thread Tools Search this Thread
Operating Systems AIX [Solved] Not able to delete/create file in /tmp
# 1  
Old 01-20-2014
[Solved] Not able to delete/create file in /tmp

This is AIX box and I am not able to create or delete file in /tmp though space is there
Code:
root@ttcols01/ #touch /tmp/test_file
touch: 0652-046 Cannot create /tmp/test_file.
root@ttcols01/ #mkdir /tmp/test_dir
mkdir: 0653-358 Cannot create /tmp/test_dir.
/tmp/test_dir: Invalid file system control data detected.
root@ttcols01/ #id
uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),11(lp),203(avdefs)
root@ttcols01/ #ls -ld /tmp
drwxrwxrwt   28 bin      bin            8192 Jan 18 04:30 /tmp
root@ttcols01/ #mount  | grep tmp
         /dev/hd3         /tmp             jfs2   Sep 26 14:26 rw,log=/dev/hd8
root@ttcols01/ #

# 2  
Old 01-20-2014
Possible hardware issue. What does the errpt report show. What does lsvg -p rootvg show? What about other file systems? What does fsck /tmp show?
# 3  
Old 01-20-2014
I can create/edit files in /, opt and var. It is only /tmp where I am getting this error
Code:
root@ttcols01/ #errpt
IDENTIFIER TIMESTAMP  T C RESOURCE_NAME  DESCRIPTION
BFE4C025   1119195913 P H sysplanar0     UNDETERMINED ERROR
root@ttcols01/ #lsvg -p rootvg
rootvg:
PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0            active            558         512         111..91..87..111..112

# 4  
Old 01-20-2014
Hello,

If you are getting like IO error as well as you are not able to delete or create files in /tmp then there is a chance that it would have become read only. If this is the case then reboot should work.


NOTE: Don't reboot server before confirmation.


Thanks,
R. Singh
# 5  
Old 01-20-2014
Code:
#mount | grep tmp
         /dev/hd3         /tmp             jfs2   Sep 26 14:26 rw,log=/dev/hd8

I can see, it is mounted it rw
# 6  
Old 01-20-2014
You gave the answer yourself already:

Quote:
Code:
mkdir: 0653-358 Cannot create /tmp/test_dir.
/tmp/test_dir: Invalid file system control data detected.

Your filesystem is damaged, unmount and repair it (via "fsck"). As "/tmp" is supposed to hold no vital data anyway you could also recreate (=format) it.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 7  
Old 01-20-2014
I will arrange for the downtime and will fix as suggeted. Thanks
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 error "-sh: /tmp/outfile: cannot create"

Hello, Each time a user log on to host, they receive below error: -sh: /tmp/outfile: cannot create Example: $ ssh host user@host's password: Last login: Fri Dec 4 08:17:28 2015 from client.ref |-----------------------------------------------------------------| -sh:... (2 Replies)
Discussion started by: feroccimx
2 Replies

2. UNIX for Dummies Questions & Answers

How to create a file even root user also cant delete?

Is there any way to create a file in linux that root user also can't delete? (8 Replies)
Discussion started by: palani13dec
8 Replies

3. Red Hat

[Solved] FTP 553 Could not create file.

Hi, We have one server - "ftpserver", just setup with RedHat 5.7. ftpserver is able to get & put from another server, however, other server are unable to get or put in the ftpserver. # su - ftpuser $ pwd /home/ftpuser $ cd .. $ ls -ltr drwxrwxrwx 3 ftpuser ftpuser 4096 Sep 10 09:19... (0 Replies)
Discussion started by: beginningDBA
0 Replies

4. UNIX for Dummies Questions & Answers

[Solved] delete character in vi file

I have a file with lots of unnecessary double quotes ("). I tried to remove them but not successful. Please assist. Thanks! (3 Replies)
Discussion started by: onlinelearner02
3 Replies

5. Shell Programming and Scripting

I need to make a script to delete files not in use in /tmp

I need to make a script to delete files not in use in /tmp Thanks! (4 Replies)
Discussion started by: raulochi
4 Replies

6. Shell Programming and Scripting

Delete one Line from Main File and Create another

Hi I need to write a script which will search for some text in some CSV files and will delete the record/line with the matching text and will insert that record/line into some other file. Can you please help? Here is what I want: - Contents of MainFile.csv: - 1,2,3,Loan,4,5,6... (3 Replies)
Discussion started by: kapilk
3 Replies

7. Shell Programming and Scripting

Script for delete tmp files older than 15 days and owned by "xxx" id

Hi All , I want to delete files from /tmp directory created by "xxxx" id. because i got the list says more than 60 thousand files were created by "xxxx" id since 2002. The /tmp directory has lot of files created by different user ids like root,system etc.. But, i need a script to... (2 Replies)
Discussion started by: vparunkumar
2 Replies

8. Linux

/var/tmp/slapd.log.swp delete?

Hi All, Can I delete the above file? It's big, about 1G. It's on a redhat ent 4 with ldap on it. Is that safe to delete? It wasn't been used for already a month and it's in the backup storage. Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

9. Solaris

Auto delete files in /tmp dir ???

I have a Solris 9 box my problem is when I restart my box all my files and dirs in /tmp dir will be deleted exept 2 directories I found them since installation phase !!!! How to keep my files at that dir " /tmp " even after restarting ??? (1 Reply)
Discussion started by: DarkSoul
1 Replies

10. UNIX for Dummies Questions & Answers

monitoring /tmp and /var/tmp for suspicous activity

Hello, does anyone have a script that can check the contents of the /tmp directory and for example e-mail the directory content if anything other than session files are present? Maybe there are better ways to monitor suspicous /tmp and /var/tmp activity, if so I'm listening :) (1 Reply)
Discussion started by: jamesbond
1 Replies
Login or Register to Ask a Question