RockDawg

Members
  • Posts

    1070
  • Joined

  • Last visited

Everything posted by RockDawg

  1. Attached is the SMART report for that drive. Again, I don't understand much of it, but it seems fine, no? Is it safe for me to perform the "Trust My Array" procedure? smart.txt
  2. We had a power outage in the middle of the night last night and today I notice that my array was started and running but one of my drives was showing a red indicator. I have the server connected to a APS UPS with apcupsd and the powerdown script running to allow a proper shutdown when the battery gets low. It's been quite sometime since I tested it, but I assumed it worked as expected since the array was back up and running without my intervention and no parity check was performed. I now have a drive showing a red indicator. I checked the log and nothing jumps out at me, but I can't claim to understand most of it. I have stopped/restarted and rebooted the array mulitple times and this drive always shows red. I've attached a copy of my log. Is my drive bad or is there something I can do? syslog.txt
  3. FYI Tiger Direct is currently showing that SSD as unavailable.
  4. I finally created the button and it works (although I had to change mysql to mysqld in that last line). That's fine for a manual shutdown, but what about the powerdown script for automated shutdown? That still doesn't kill mysql. I use that in conjunction with an APC battery backup because our power goes out quite a bit here. Also is there a command I can run via telnet to initiate the powerdown command?
  5. You tell me... what is active on disk7 It could be a program with an open file A program using it as the current directory A mount point for a different disk A loop device. unMENU will send a TERM signal to processes active on a disk, but they can ignore it. (or, rather that is what I think it will do. I'll review the code for a logic issue that might not have been identified till now) One more thing... What version of unMENU are you running? Well, like I said, disk7 is where my mysql db's reside. According to what you said, I was expecting the unmenu "stop array" button to kill the running processes and allow all the drives to unmount, but that didn't happen. Again, if I manually run 'killall mysqld', disk7 will then unmount. I am running unmenu.awk: Version 1.3 Revision: 139 P.S. I just remembered that I also have a directory on disk7 that is mounted on a two other XBMC linux machines. But if that were the problem, then why would running 'killall mysqld' allow the disk to unmount? My Linux knowledge is almost non-existent, so forgive me if I'm being thick.
  6. Anyone have any idea why this is? If your mysql is on that disk it will stay busy until you stop mysql. There is no way to get around this unless you put some special stuff in place. I think JoeL has a script/something that can detect when the stop button is pushed and then stops the required programs. That's what I figured and that's the reason I was putting the line I previously posted in my go file. But Joe has said that the "Stop Array" button in unMENU's management screen will terminate the processes holding disks active.
  7. That's where my mysql db's reside. root@Tower1:~# fuser -cu /dev/md7 /dev/md7: 10489c(root) If I run killall mysqld, the drive will unmount.
  8. I just tried stopping the array via unmenu and it's still shows disk7 as being mounted. Oct 3 16:23:31 Tower1 kernel: Oct 3 16:23:48 Tower1 unmenu[1519]: umount: /mnt/user: not mounted Oct 3 16:23:50 Tower1 unmenu[1519]: umount: /mnt/disk7: device is busy Oct 3 16:23:50 Tower1 unmenu[1519]: umount: /mnt/disk7: device is busy Oct 3 16:23:50 Tower1 unmenu[1519]: rmdir: /mnt/disk7: Device or resource busy Oct 3 16:23:50 Tower1 kernel: mdcmd (6761): stop Oct 3 16:23:50 Tower1 kernel: md: 2 devices still in use.
  9. You are assuming rc.unRAID is being invoked when you shut down. I do not know that to be a valid assumption. How are you shutting the server down? It may never be getting to the rc.unRAID script. Joe L. Right now I am shutting down the server via the we GUI. I installed the clean powerdown package from within unmenu and also use it with apcupsd. Ultimately I need mysql killed from any possible shutdown method. I was under the impression that the powerdown script invoked the same commands as the 'stop array' and "shutdown' buttons in the GUI.
  10. OK, I redid everything and I now have all my packages installed and configured through unmenu. Now, when I add the sed line it doesn't kill mysql. Any ideas? Here is my go file #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & sleep 30 for i in /dev/md* do blockdev --setra 2048 $i done echo nameserver 192.168.1.1 >/etc/resolv.conf echo 192.168.1.20 tower1 >> /etc/hosts /boot/unmenu/uu installpkg /boot/packages/cxxlibs-6.0.8-i486-4.tgz cd /boot/packages && find . -name '*.auto_install' -type f -print | sort | xargs sed -i "/rc.nfsd stop/a killall mysqld" /etc/rc.d/rc.unRAID
  11. I screwed something up. I've been using unmenu and used it's package manager to install and configure mysql. It was working great except for not allowing me to shut down the array because unraid couldn't unmount the drive mysql was using. I knew about this for some time and finally decided to fix it. After researching how to do it, I added; sed -i "/rc.nfsd stop/a killall mysqld" /etc/rc.d/rc.unRAID to my go script after the line the installs the powerdown script. After rebooting I couldn't get back into unmenu for some reason. Now I've been playing around and thinking I screwed something up. Ultimately I deleted the contents on the unmenu folder and reinstalled it. Now I can get into unemnu, but now there are two identical entries for mysql under package manger. I installed and configured one and then both and they say they will be reinstalled on reboot, but they don't. Can anyone help?
  12. Thanks for the input gborrillo, I'm trying to digest all of that to see what I might be able to apply or use. Being so green in Linux makes a lot of that over my head.
  13. OK, a little twist to this. It turns that this actually was working. What I found is that after I create the mount, I can copy a file via FTP to the Thumbnails folder on the XBMC box and it indeed would show up in the Thumbnails folder I created on unRaid. The same also worked vice versa. The problem seemed to be that when XBMC would try to write to the folder, it couldn't. After thinking about it for a while, I wondered if it was a permissions issue. Indeed it seems to be. When I was initially testing via FTP, I was logging in as root. That's why it worked, but when I logged in as my typical XBMC user ('kevin'), I could no longer manually copy a file to the Thumbnails folder in XBMC. My FTP client returned this error; /home/kevin/.xbmc/userdata/Thumbnails/951328.pdf: open for write: permission denied I assume this is the same problem the XBMC system is facing when it tries to write to that folder. I can write to the mount if I'm logged in to XBMC as root, but if I'm logged in as 'kevin'. So now my question is what do I need to do to allow user "kevin" to write to the mounted folder? I have no user level security enabled in unRaid. Just the default root user which I assigned a password.
  14. I've been told that the lost mount on reboot is expected unless I put it in /etc/init.d/rc.local. I didn't know that. But that still leaves the other problem.
  15. I thought this was working, but it turns out it's not. I just figured out that initially XBMC wouldn't write/save the thumbs to the mounted Thumbnail directory. I wasn't sure why the newly scanned movies didn't show a thumb so I rebooted. Everything then seemed to work fine. It turns out that's because the mount/link is broken after a reboot and XBMC then just writes/saves the thumbs locally in the Thumbnail folder like it normally would. Nothing is written to the server's Thumbnails folder. So still no joy.
  16. Yes, now I feel stupid! I was expecting the command to create the Thumbnails folder like creating a symlink would do. So stupid. Thanks so much for your patience and help!
  17. Sorry, I'm trying a few different suggestions and I didn't respond to yours thoroughly enough. The full target path I am dealing with is /home/kevin/.xbmc/userdata/Thumbnails. root@XBMCLive:/home/kevin/.xbmc/userdata# ls -la / total 84 drwxr-xr-x 21 root root 4096 2010-02-18 21:11 . drwxr-xr-x 21 root root 4096 2010-02-18 21:11 .. drwxr-xr-x 2 root root 4096 2010-02-06 16:36 bin drwxr-xr-x 3 root root 4096 2010-02-18 21:23 boot lrwxrwxrwx 1 root root 11 2010-01-23 22:40 cdrom -> media/cdrom drwxr-xr-x 15 root root 3760 2010-04-27 19:48 dev drwxr-xr-x 85 root root 4096 2010-04-27 19:48 etc drwxr-xr-x 4 root root 4096 2010-04-25 17:04 home lrwxrwxrwx 1 root root 33 2010-02-18 21:11 initrd.img -> boot/initrd.img-2.6.31-19-generic lrwxrwxrwx 1 root root 33 2010-01-23 22:40 initrd.img.old -> boot/initrd.img-2.6.31-16-generic drwxr-xr-x 15 root root 4096 2010-02-18 21:11 lib drwx------ 2 root root 16384 2009-12-26 15:29 lost+found drwxr-xr-x 5 root root 4096 2009-12-26 15:30 media drwxr-xr-x 3 root root 4096 2010-04-27 19:12 mnt drwxr-xr-x 2 root root 4096 2009-12-26 15:30 opt dr-xr-xr-x 120 root root 0 2010-04-27 19:48 proc drwx------ 5 root root 4096 2010-02-18 23:10 root drwxr-xr-x 2 root root 4096 2010-04-26 21:29 sbin drwxr-xr-x 2 root root 4096 2009-10-19 19:05 selinux drwxr-xr-x 2 root root 4096 2009-12-26 15:30 srv drwxr-xr-x 12 root root 0 2010-04-27 19:48 sys drwxrwxrwt 5 root root 4096 2010-04-27 19:48 tmp drwxr-xr-x 12 root root 4096 2009-12-26 15:29 usr drwxr-xr-x 13 root root 4096 2010-01-23 22:41 var lrwxrwxrwx 1 root root 30 2010-02-18 21:11 vmlinuz -> boot/vmlinuz-2.6.31-19-generic lrwxrwxrwx 1 root root 30 2010-01-23 22:41 vmlinuz.old -> boot/vmlinuz-2.6.31-16-generic
  18. Unbelievably this isn't working for me either. I'm miffed! I did every step you list and double-checked them all and still no thumbs show in XBMC. 1. I created /mnt/xbmc on the XBMC machine (also Live installed on HD) 2. I created a 'xbmc' user sharein unRAID with your setting in the Export (NFS) field. 3. I copied my existing Thumbnails folder into the newly created 'xbmc' 4. I edited /etc/fstab and copy/pasted the line you show 5. I created the 'Thumbnails' symlink in /home/kevin/.xbmc/userdata. Not in /home/kevin/.xbmc/userdata/Thumbnails like you show. I assume that was a typo. 6. I rebotted the XBMC machine, but no love. No thumbnails display in XBMC. I have one side question, if/when the symlink is created correctly, should I be able to see the contents when clicking on it in FileZilla FTP client or while navigating to the symlink folder in putty?
  19. The way you fully specified (starting with slash '/' ) the target directory, that means that it is under the root directory. So it doesn't matter from what location you're typing the monut command. But is the target really in your root directory? What do you see when you type: ls -la / (^^these are small 'L's like in lemon) Here is what I get: root@XBMCLive:/home/kevin/.xbmc/userdata# sudo smbmount //192.168.1.20/disk7/xbmc_thumbs/Thumbnails Thumbnails mount error: can not change directory into mount target Thumbnails
  20. Yes, I created an empty folder named 'Thumbnails' on the client computer. From the location where the 'Thumbnails' folder should be, I ran: sudo smbmount //192.168.1.20/disk7/xbmc_thumbs/Thumbnails /Thumbnails That returned the mount error.
  21. I get this error: mount error: can not change directory into mount target /Thumbnails
  22. Also, doesn't that need a 'Thumbnails' folder on the XBMC client? If so, XBMC will just read/write to that folder and negate what I want to do. Unless I'm missing something.
  23. What does that do? I ask because this isn't a typical Ubuntu installation. It's a stripped down version that my media software XBMC uses. Why do you suggest this over a symlink. Will they not work with unRAID?