Move /tmp and /var/log off SSD and on to HDD

Hi guys,
I would like to move the above filesystems off my SSD boot drive and on to my HDD in order to reduce numerous small write/erase cycles.
I'm a unix dummy, so if someone can help me out with this, that would be great.
I found a link via google for using a RAM disk, but I do not want to go that route... and also didn't really get what they were doing enough to modify it to work the way I'd like.
Thanks for any help.
10.6.7.... Lion next month

I'm not so sure. MLC flash only has 3000 estimated erase cycles. And even a small file like a 20kb log file, if it needs to be erased, will be erased in 512KB chunks. So lots of small writes to the drive will do two things:
1. With wear leveling, every time that 20kb file is updated or rotated, it'll be written to an unused or least used Flash cell.
2. Eventually the original location and the "Wear leveled" cells are going to be needed as so 512KB of cells will needlessly be erased for the sake of 20KB.
/tmp isn't so bad, most of my data in there hasn't been hit in a few days.
But the things in /var/log get hit many times a day. Thats a lot of writes.
To be honest, I don't even need logging. I don't recall the last time I read a log! If there were a way to disable logging entirely during boot, I'd even do that.

Similar Messages

  • 2 TB MyCloud filesystems "/tmp" and "/var/log" both at 100%

    Now, this is just plain weird...  here's the output from "df -k": Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 1968336 685956 1182392 37% /
    /dev/root 1968336 685956 1182392 37% /
    tmpfs 40960 20992 19968 52% /run
    tmpfs 40960 64 40896 1% /run/lock
    tmpfs 10240 0 10240 0% /dev
    tmpfs 5120 0 5120 0% /run/shm
    tmpfs 102400 102400 0 100% /tmp                                           <<<<<<<<<<<<<---------------
    /dev/root 1968336 685956 1182392 37% /var/log.hdd
    ramlog-tmpfs 20480 20480 0 100% /var/log                             <<<<<<<<<<<<<---------------
    /dev/sda4 1918220368 26235484 1853008884 2% /DataVolume
    /dev/sda4 1918220368 26235484 1853008884 2% /CacheVolume
    /dev/sda4 1918220368 26235484 1853008884 2% /nfs/TimeMachineBackup
    /dev/sda4 1918220368 26235484 1853008884 2% /nfs/Public
    /dev/sda4 1918220368 26235484 1853008884 2% /nfs/SmartWare (pls. excuse the formatting but you can see at the arrows that /var/log and /tmp are at 100%) "/tmp" is filling up with *hundreds* of files with the form -rw------- 1 www-data www-data 0 Jul 14 00:43 sess_pdh5c9g907vqvusb3mdsvtlum3
    -rw------- 1 www-data www-data 0 Jul 14 00:43 sess_2a7v2di677ra43sh76lonm3de1
    -rw------- 1 www-data www-data 0 Jul 14 00:43 sess_o6kh3i4iggg78evs53kp6enpf6
    -rw------- 1 www-data www-data 0 Jul 14 00:43 sess_o0ahso52sef3h0if3ifpo4dno3
    -rw------- 1 www-data www-data 0 Jul 14 00:43 sess_bvn1o9v4b4ldgoq9uvtn2n24i0-rw------- 1 www-data www-data 0 Jul 14 00:43 sess_h01fbr9o1pte3ud2s9ainth7b6 all similarly named "sess_[somethingorother] And "/var/log" is filling up due to file "/var/log/user.log", with gazillions of error messages of the form Jul 14 00:02:06 WDMyCloud REST_API[6751]: 192.168.1.101 ORION_LOG /var/www/rest-api/api/Auth/src/Auth/User/UserSecurity.php ISAUTHENTICATED [ERROR] dbgvar0: Array\n(\n [_] => 1436857244438\n [RequestScope] => RequestScope Object\n (\n )\n\n)\n and file "/var/log/apache2/error.log", that has more gazillions of error messages in it of the form [Tue Jul 14 00:07:25.715561 2015] [:error] [pid 7107] [client 192.168.1.101:3844] PHP Fatal error: Uncaught exception 'Zend\\Log\\Exception\\RuntimeException' with message 'No log writer specified' in /var/www/rest-api/lib/Zend/Log/Logger.php:245\nStack trace:\n#0 /var/www/rest-api/lib/Zend/Log/Logger.php(396): Zend\\Log\\Logger->log(4, 'Unknown: open(/...', Array)\n#1 [internal function]: Zend\\Log\\Logger::Zend\\Log\\{closure}(2, 'Unknown: open(/...', 'Unknown', 0, Array)\n#2 {main}\n thrown in /var/www/rest-api/lib/Zend/Log/Logger.php on line 245 ooookay... something has clearly gone bezoomny...  Anybody seen this?  before I go off on Yet AnotherMad Debian Bug Hunt?  

    Hey WD...  Y'all's got a BUG... When I access the MyClod from my laptop running XP with FireFox, I get the thousands of  "sess_*" files written to /tmp, and I get groups of messages of the form Jul 14 22:36:26 WDMyCloud REST_API[23951]: 192.168.1.101 ORION_LOG /var/www/rest-api/api/Auth/src/Auth/User/UserSecurity.php ISAUTHENTICATED [ERROR] Authentication failure for /api/2.1/rest/mediacrawler_status?_=1436938574613
    Jul 14 22:36:26 WDMyCloud REST_API[23951]: 192.168.1.101 ORION_LOG /var/www/rest-api/api/Auth/src/Auth/User/UserSecurity.php ISAUTHENTICATED [ERROR] dbgvar0: Array\n(\n [_] => 1436938574613\n [RequestScope] => RequestScope Object\n (\n )\n\n)\n
    Jul 14 22:36:26 WDMyCloud REST_API[23951]: 192.168.1.101 ORION_LOG /var/www/rest-api/api/Auth/src/Auth/User/UserSecurity.php ISAUTHENTICATED [ERROR] dbgvar0: Array\n(\n [_] => 1436938574613\n [RequestScope] => RequestScope Object\n (\n )\n\n)\n written to /var/log/user.log. But when I access it similarly from the desktop machine, also running XP with FireFox, I just get *one* of the "sess_*" whatever files written to /tmp, and just one set of messages of the form Jul 14 22:40:26 WDMyCloud REST_API[24325]: 192.168.1.100 OUTPUT DlnaServer\Controller\Database GET SUCCESS
    Jul 14 22:40:29 WDMyCloud REST_API[23952]: 192.168.1.100 OUTPUT System\Configuration\Controller\FactoryRestore GET SUCCESS
    Jul 14 22:40:29 WDMyCloud Zend\Log[23877]: 8192
    Jul 14 22:40:51 WDMyCloud REST_API[23952]: 192.168.1.100 OUTPUT Alerts\Controller\Alerts GET SUCCESS written to /var/log/user.log. So the MyClod is playing nice with some computers and not others... My guess is this could be happening more than WD knows about and could be producing all manner of mysterious behavior, since not only does it only happen on some machines but it does *not* crash the MyClod - at least not right away.  The main effect is to fill /tmp and /var/log with garbage so nothing can write to them, which will probably affect some things and not others... https://www.youtube.com/embed/2Gwnmb6P-3k  

  • Do I need to Log off iMessage and iTune before erasing MacBook?

    I am selling my MacBook with Yosemite installed. I have been using iMessage and iTune, but erased the hard disk before logging off iMessage and iTune. It now starts in a setup screen as factory setting. Do I still need to setup and manually log off?

    What to do before selling or giving away your Mac - Apple Support

  • I try to restore ipad to ios 7.0.4 but the tunes show error ,the ipad could not be restore because the firmware file was corrupt, i have the latest update from itunes and windows and i turn off antivirus and firewall and the error is the same , what i do?

    i try to restore ipad to ios 7.0.4 but the tunes show error ,the ipad could not be restore because the firmware file was corrupt, i have the latest update from itunes and windows and i turn off antivirus and firewall and the error is the same , what i do?, my ipad is show apple logo
    please what i do

    Hello JD_NINJA,
    Thanks for using Apple Support Communities.
    Error 9006 when restoring your iOS device indicates that there is security software on your computer which is preventing connection to the Apple server or your device.  To troubleshoot this issue please follow the directions below.
    Check your security software
    Related errors: 2, 4, 6, 9, 1611, 9006. Sometimes security software can stop your device from communicating with either the Apple update server or with your device.
    Check your security software and settings to make sure that they aren't blocking a connection to the Apple servers.
    Get help with iOS update and restore errors - Apple Support
    When restoring your iPhone, please make sure to follow the directions in the link below to properly restore.
    Restore your device from an iCloud or iTunes backup - Apple Support
    Take care,
    Alex H.

  • My  BEATS speakers are connected to my Mac but I have no audio and do not understand how to turn off the speaker. I press the power button and not shut off. And the white light behind me indicating that this synchronized, does not turn off ever.

    My  BEATS speakers are connected to my Mac but I have no audio and do not understand how to turn off the speaker. I press the power button and not shut off. And the white light behind me indicating that this synchronized, does not turn off ever.

    Hello Sabroso007
    Check out the article below to troubleshoot the sound output to your Bluetooth speaker. Check in System Preferences > Sound to see what the output is set to.
    OS X Mavericks: Set up Bluetooth audio devices
    http://support.apple.com/kb/PH14217
    Regards,
    -Norm G.

  • I have the Iphone 5, and it shuts off randomly and the screen glitches. I have taken it into verizon and had it reset but the problem still continues. Is the only way to fix the problem to get a new phone?

    I have the Iphone 5, and it shuts off randomly and the screen glitches. I have taken it into verizon and had it reset but the problem still continues. Is the only way to fix the problem to get a new phone? Also, why is it if I do need a new phone I can only get a refurbished one when I am paying insurance every month?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If the issue persists, take the device to Apple for evaluation.

  • Can't log off/restart, and other related issues.

    I wrote the following with a lot of detail, intending to give it straight to Apple... but I don't think they have an option for that. Let me know if I'm wrong. Also, excuse my numbering scheme - it was trimming out my spaces and I wanted to preserve the layout somehow. =[
    This all starts with my MacBook having been on for is that, when I open my MacBook and it comes back from sleep, I see the usual black screen. It brings up the unlock dialog, but that disappears almost instantly. Neither moving the cursor nor pressing keys brings it back. However, sleeping the laptop again and then reopening it shows the dialog normally. However, after then, I've noticed the following other symptoms after that point (until restart):
    1) Gmail Notifier (in the menu bar) stops updating, even when "Check now" is clicked manually. Restarting the program doesn't fix this.
    2) Screensaver doesn't come on automatically or with hot corner, only when "test" is pressed in the screensaver preference.
    3) Not closing applications before logging out or shutting down produces an error (after a delay of a couple minutes) about the OS not being able to close the applications. However, they all appear to be closed (no white dot, right clicking on them doesn't show "Not Responding"). At that point, opening the programs and closing them manually seems to prevent the error message for that program. Then, ... (see next item)
    4) Even if all applications are closed manually beforehand, it doesn't shut down or log off. A few observations:
    a) Everything but the dock goes disappears.
    b) Dashboard/expose/desktop hot keys and keyboard shortcuts still work.
    c) Clicking a dock item brings the menu bar back, but doesn't reactivate Finder (or show the desktop icons, consequently).

    I'm having this exact same problem, except I don't use GMail Notifier. The being unable to log out, shut down, or restart issue I've had intermittently in the past; the broken screensaver is new.

  • My Macbook Pro hang and cannot log off in Lion 10.7.1

    Ocassionally, I log off my Macbook Pro early 2008, running Lion 10.7.1. This never be a problem in SNow Leopard
    But now, when I hit log out from Apple Menu, my Mac just hang on the gray screen having mouse arrow on the screen. Mouse can be moved using trackpad, but it just hang there
    I have to press power button to force shut down and reboot.
    Why this stupid and annoying problem occurred? Fix please
    And if any friend and expert here have solution, please help and advise

    part of the reason it hangs a little may be because of the new Resume feature in Lion try quiting all applications before logging out and see if that changes anything my only other solution is my login hang/freeze fix which can be found at this link
    https://discussions.apple.com/message/16013708#16013708

  • HT1689 Why is my money gone my sister just gave me a card for $25.00 and I loaded it on iTunes and it logged me out and my money's gone PLEASE HELP!!

    hy is my money gone my sister just gave me a card for $25.00 and I loaded it on and I got out of my account and now the money's gone PLEASE HELP!?!

    Sounds like either the Display or Graphics chip, that will not be cheap to fix. Because it is a 2006 and getting on in years, it might be best to move whatever you want to keep over to your newer iMac using Firewire Target Disk Mode and let it rest in peace.
    see > How to use and troubleshoot FireWire target disk mode

  • Session time out and automatic log off

    hi,
    I have been using JSC for a while but I am not JSC guru.
    I want to implement automatic logoff when the session timesout. I know that I can set session time out in tomat web.xml file. but I cant understand how to check if the session time is out and logOff the user.
    When user logs in, username is stored in the database, so when the user logoff the username has to be deleted from the database and he should be redirected to the login page. I want all this to be done automatically when session times out(i.e if the user is inactive for specified amount of time).
    Any help is greatly appreciated. Please reply ASAP, i need to get this working by tommorow.
    chees
    satish

    I think you might find this thread interesting:
    http://swforum.sun.com/jive/thread.jspa?threadID=50520&messageID=183099

  • Strange error in /var/log/messages and /var/log/warn

    Hi,
    I get following error continuosly:
    kernel: sg_write: data in/out 404/404 bytes for SCSI command 0xd--guessing data in;
    kernel: program java not setting count and/or reply_len properly
    Any idea?
    Ty
    Bye

    Hi,
    #h1:35:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1 </dev/null
    by commenting above line in initttab file would stop messaging, is this would have any adverse affect on the database. As its a production server, so i am really taking time to resolve it. Your suggestions are welcome. If there is no harm in commenting the above line then i would go forward to comment that line.
    Thanks
    Jafar>

  • Sometimes my screen starts to move on my iMac.    It's like it's trying to turn the page and it gets off center and the mouse doesn't work when it happens.  It usually lasts about 15 seconds or so and happens often.

    Sometimes the screen on my imac starts to shake like it it trying to "go to the next page".   When this happens it usually freezes up for 15 seconds or so and the mouse doesn't work.

    Have you tried a hard reset of the iPod to see if that helps?  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear. 
    Otherwise, work through each of the troubleshooting suggestions in this Apple support document as necessary.
    iOS: Troubleshooting Wi-Fi networks and connections
    B-rock

  • Slow Transfer and Downloads with new SSD and Fresh OS

    I have a brand new Solid State Drive and maxed out the RAM in my Mid 2010 15 inch MacBook Pro. The new hard drive made all the difference in the world. But having never done a clean install since the start, I was having issues with some of my older applications. I decided to clear the hard drive and reinstall the OS and discs for Final Cut Studio and my Adobe products. Everything runs smoothly, but only now, when I try to copy from a external drive, whether FireWire or USB it takes exponentially longer to transfer. Same goes for downloading content from a FTP server. Basically anything that is generating new files/data onto my hard drive. This wasn't the case until I re-installed the OS (Had Mavericks before and after the install).
    Any idea what this issue might be?
    My hard drive is a Samsung Electronics 840 Pro Series 2.5-Inch 512 SATA Solid State Drive MZ-7PD512BW
    And as I stated, it worked perfectly before.

    Jay,
    my thoughts were that with Trim command support disabled,  when you’d reïnstalled OS X and your apps and personal files, that your SSD might have gone over 75% full, at which point SSDs’ performance start to slow down. (Without Trim command support, the SSD needs to be “told” manually to reuse space which has been freed up by deletion.) If that is the cause of your current slowdown, then you wouldn’t start noticing a difference until your SSD has run out of previously unused space; at that point, a Trim command would be run on the SSD to make available that previously used space. In the interim, I guess that you could try selecting your SSD in Disk Utility, then select the Erase tab, then press the Erase Free Space… button to see if that would work as a manual substitute for a Trim command. Alternatively, you could try creating dummy files to purposely fill up your SSD nearly to capacity, and then delete them to see if the Trim command will make available all of the space for all of the previously deleted files (i.e. not just for the deleted dummy files).

  • TS1404 since i updated ios6 my ipod when i connected to the computer frozed up and then it turns off/on and then white screen and then turn off/on and sometimes it does like if a tv doesnt have signal or watever it does that ... im scared of losing my ipo

    since i updated ios6 on my ipod directly from it it started all fine but then i pludget on the computer and it froze ... it only shows the apple it doesnt go even to lock screen have being like a day with 3 hrs since my ipod froze and sometimes shows a white screen.. i had tried to like turn off but cant its all time turn off/on what i have to do? please help me!

    how long have you had your ipod? mine did the same but after a while you need to get a new one because of the battery...

  • HT1414 I tried to do an update in the settings mode and now my ipad is frozen with a black screen with itunes app in the middle and showing to plug in the charger. Nothing is happening and tried turning off device and still nothing.

    Ipad locked up while trying to do an update. Don't know how to fix and can't use ipad at all. Black screen with itunes app in the middle of screen and it shows picture of charger that it wants me to plug in. Nothing works.

    You are in recovery mode, you need to restore it through iTunes on your computer. Follow the article you linked from.

Maybe you are looking for

  • How to make use of the swf made by alchemy?

    Most of the examples are about compiling C/C++ to swc, then make use of it. As the alchemy introduction said, we can also compile into swf file. so i tried it. But i cann't get the CLibInit class. How to make it successful? The codes is below:     pr

  • DVD won't play in player, only on pc?

    I made a dvd through DSP and it doesn't play on my DVD player. I can see the burn in in the DVD itself but the player just doesn't seem to load it up to the menu. In DSP, I set the Target for the Disc in Property Inspector to the Menu. What else do I

  • How do i verify i have sufficient privileges to start system services?

    How do I verify I have sufficient privileges to start system services?  This comes up as an error when trying to install the newest iTunes version.  It says Service 'Apple Mobile Device' (Apple Mobile Device) failed to start. Verify that you have suf

  • My firefox won t open, eider delete?? what to do?

    I have Firefox instaled long ago, it was my defolt browser, but when he asked to be upgradet something happend and now I can t use it anymore, I can not open it I can not delet it from programs. What do u suggest?

  • Help!  Image in an applet

    Hi, I'm having some trouble displaying an image in my applet. I drew something in MS Paint, saved it as a gif, and want to draw it in my applet. I have tried using two methods to load the image: map = getImage(getCodeBase(),"cheese.gif"); and Toolkit