View previous topic :: View next topic |
Author |
Message |
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Sat Dec 14, 2013 3:33 am Post subject: [solved]stale /tmp files not flushed |
|
|
upon reboot i discover this system is not flushing /tmp out. i would mount bind it to /run/tmp but its got funky permissions. any ideas?
fstab
Code: |
/dev/sda1 / jfs noatime 0 1
/swap none swap sw 0 0
|
rc-update
Code: |
NetworkManager | default
bootmisc | boot
devfs | sysinit
dmesg | sysinit
fsck | boot
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
local | default
localmount | boot
loopback | boot
modules | boot
mount-ro | shutdown
netmount | default
procfs | boot
root | boot
savecache | shutdown
swap | boot
swapfiles | boot
sysctl | boot
sysfs | sysinit
termencoding | boot
tmpfiles.dev | sysinit
tmpfiles.setup | boot
udev | sysinit
udev-mount | sysinit
urandom | boot
xdm | default
|
init 2.88
openrc 12.4
since im JFS this cascades into other problems leaving the / read only and not setting host name.
Last edited by 666threesixes666 on Sat Dec 14, 2013 7:35 am; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Dec 14, 2013 4:04 am Post subject: |
|
|
grep wipe_tmp /etc/conf.d/bootmisc |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Sat Dec 14, 2013 4:10 am Post subject: |
|
|
same as the other known working system..... im stumped on this one....
Code: |
# List of /tmp directories we should clean up
clean_tmp_dirs="/tmp"
# Should we wipe the tmp paths completely or just selectively remove known
# locks / files / etc... ?
wipe_tmp="YES"
# Write the initial dmesg log into /var/log/dmesg after boot
# This may be useful if you need the kernel boot log afterwards
log_dmesg="YES"
|
if i completely delete /tmp via rm -rf /tmp
the system can boot, next boot... then upon reboot it fails more. bootmisc fails to start but the rest of the system starts fine. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Sat Dec 14, 2013 4:22 am Post subject: |
|
|
it started after shutdown -h 30 last night, the problem is starting the machine. starting the machine fails unless /tmp is completely deleted the previous run of the os.
Last edited by 666threesixes666 on Sat Dec 14, 2013 4:26 am; edited 1 time in total |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Dec 14, 2013 4:23 am Post subject: |
|
|
666threesixes666 wrote: |
if i completely delete /tmp via rm -rf /tmp
|
And bootmisc is not there to remove /tmp but to remove files in it. Did you check bootmisc is able to recreate /tmp before doing that ? |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Sat Dec 14, 2013 4:28 am Post subject: |
|
|
bootmisc has to fail at startup or another problem happens where it cant touch files in /tmp and stale files are still there. later on bootmisc creates the /tmp & populates on good runs.
touch /tmp/stalefile & shutdown -r now shows stalefile is still in /tmp
so right now sudo rc-service bootmisc status
* status: started
touch /tmp/stalefile && shutdown -r now
when it comes up unable to create something temp moves too fast read only (none): login prompt |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Sat Dec 14, 2013 4:37 am Post subject: |
|
|
ebegin "Wiping $dir directory"
ebegin message, so you can just look at it when booting or enable rc log |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Sat Dec 14, 2013 5:12 am Post subject: |
|
|
ok with rc log enabled and a few things figured out....
some boot ordering is wrong for swap file setups, and jfs setups
Code: |
* Checking local filesystems ...
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 12/13/2013 23:51:52
The current device is: /dev/sda1
Block size in bytes: 4096
Filesystem size in blocks: 78142798
**Phase 0 - Replay Journal Log
Filesystem is clean.
[ ok ]
* Activating swap devices ...
swapon: /swap: swapon failed: Read-only file system
[ ok ]
* Mounting local filesystems ...
[ ok ]
* Configuring kernel parameters ...
[ ok ]
mkdir: cannot create directory ‘/tmp’: Read-only file system
* failed to create needed directory /tmp
[ !! ]
* ERROR: bootmisc failed to start
* Setting hostname to satan ...
[ ok ]
* Remounting root filesystem read/write ...
|
ok adding need root to swap & bootmisc init.d files has it booting consistantly now with no need to delete tmp.... now ill check if the original "stale files" still play in /tmp across boots...
(and thanks jaglover & krinn) (thanks again jaglover for swap file tip) |
|
Back to top |
|
|
|