- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Not able to write in /tmp file system in Redhat Li...
Operating System - Linux
1819804
Members
3268
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 05:40 AM
тАО09-09-2009 05:40 AM
Not able to write in /tmp file system in Redhat Linux
Hi,
I am not able to write anything on /tmp file system . Please find below the details and pls help me to resolve this issue.
[root@/]# touch /tmp/test1
touch: cannot touch `/tmp/test1': Read-only file system
[root@/]# cd /
[root@ /]# su oracle
$ touch /tmp/test
touch: cannot touch `/tmp/test': Read-only file system
$
-----------
Permissions on /tmp
drwxrwxrwt 8 root root 4096 Sep 7 04:02 tmp
------------
[root@/]# mount |grep -i /tmp
/dev/mapper/vg00-tmp on /tmp type ext3 (rw)
[root@/]#
---
[root@tmp]# pwd
/tmp
[root@ tmp]# ls -ltr
total 24
drwx------ 2 root root 16384 Jul 20 2007 lost+found
drwx------ 2 root root 4096 Jan 15 2008 keyring-F0dxnI
srwxr-xr-x 1 root root 0 Jan 15 2008 mapping-root
drwxr----- 2 oragrid dba 4096 Aug 29 14:53 hsperfdata_oragrid
[root@ tmp]#
Thanks in advance
Gaby
I am not able to write anything on /tmp file system . Please find below the details and pls help me to resolve this issue.
[root@/]# touch /tmp/test1
touch: cannot touch `/tmp/test1': Read-only file system
[root@/]# cd /
[root@ /]# su oracle
$ touch /tmp/test
touch: cannot touch `/tmp/test': Read-only file system
$
-----------
Permissions on /tmp
drwxrwxrwt 8 root root 4096 Sep 7 04:02 tmp
------------
[root@/]# mount |grep -i /tmp
/dev/mapper/vg00-tmp on /tmp type ext3 (rw)
[root@/]#
---
[root@tmp]# pwd
/tmp
[root@ tmp]# ls -ltr
total 24
drwx------ 2 root root 16384 Jul 20 2007 lost+found
drwx------ 2 root root 4096 Jan 15 2008 keyring-F0dxnI
srwxr-xr-x 1 root root 0 Jan 15 2008 mapping-root
drwxr----- 2 oragrid dba 4096 Aug 29 14:53 hsperfdata_oragrid
[root@ tmp]#
Thanks in advance
Gaby
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 06:13 AM
тАО09-09-2009 06:13 AM
Re: Not able to write in /tmp file system in Redhat Linux
issue
df -k /tmp
check system logs for /tmp file system error
grep -i -E "/tmp|file system error" /var/adm/syslog
df -k /tmp
check system logs for /tmp file system error
grep -i -E "/tmp|file system error" /var/adm/syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-09-2009 10:17 AM
тАО09-09-2009 10:17 AM
Re: Not able to write in /tmp file system in Redhat Linux
Your "mount | grep -i /tmp" is essentially the same as "grep -i /tmp /etc/mtab". Its output reflects the options used when the filesystem was mounted (or remounted).
To get up-to-the-second current data, look into /proc/mounts. I'll bet you find the /tmp filesystem now has the "ro" option.
If there is an error accessing the filesystem, the default action of Linux is to set the filesystem to read-only mode. With the proper mount options, you can change this action.
The alternatives are causing a system panic (if you absolutely, positively must be sure that the data in your filesystem is correct and are willing to suffer the downtime to fix it ASAP if it isn't) or to ignore the error (if you're more concerned about uptime than the correctness of your data, e.g. real-time video playback).
You will probably find that you have experienced a disk error on the /tmp filesystem, which caused Linux to mark it read-only. The only way to mount the filesystem normally again is to unmount the filesystem, run a filesystem check on it and then mount it again. If you reboot the system, this will happen automatically.
Now is a good time to make extra sure your backups are up to date. Your disk is probably about to fail. It was lucky that the error happened on the /tmp filesystem and not on anything more critical: count your blessings.
Check the kernel message buffer with "dmesg": you will probably see some disk errors. You might also use the "smartctl" command to check the disk's internal diagnostics, if your LVM PV is an ordinary IDE or SCSI disk.
If your LVM PV is supposed to be a RAID1 mirror set, you've probably already missed the total failure of the first disk. The fact that the error became visible to the OS indicates that the second disk of the set is about to fail too. Lesson learned: mirroring is good, but you should monitor the health of your mirrors!
MK
To get up-to-the-second current data, look into /proc/mounts. I'll bet you find the /tmp filesystem now has the "ro" option.
If there is an error accessing the filesystem, the default action of Linux is to set the filesystem to read-only mode. With the proper mount options, you can change this action.
The alternatives are causing a system panic (if you absolutely, positively must be sure that the data in your filesystem is correct and are willing to suffer the downtime to fix it ASAP if it isn't) or to ignore the error (if you're more concerned about uptime than the correctness of your data, e.g. real-time video playback).
You will probably find that you have experienced a disk error on the /tmp filesystem, which caused Linux to mark it read-only. The only way to mount the filesystem normally again is to unmount the filesystem, run a filesystem check on it and then mount it again. If you reboot the system, this will happen automatically.
Now is a good time to make extra sure your backups are up to date. Your disk is probably about to fail. It was lucky that the error happened on the /tmp filesystem and not on anything more critical: count your blessings.
Check the kernel message buffer with "dmesg": you will probably see some disk errors. You might also use the "smartctl" command to check the disk's internal diagnostics, if your LVM PV is an ordinary IDE or SCSI disk.
If your LVM PV is supposed to be a RAID1 mirror set, you've probably already missed the total failure of the first disk. The fact that the error became visible to the OS indicates that the second disk of the set is about to fail too. Lesson learned: mirroring is good, but you should monitor the health of your mirrors!
MK
MK
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP