Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Samba and Disk spin down
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Samba and Disk spin down
1st Oct, 2014, 10:16 PM
Post: #1
halibut Offline
Registered
Posts: 5
Joined: Sep 2014
Reputation: 0
Samba and Disk spin down
Apologies if this has been answered before and I can't find it, or if it's because I'm still on 1.0RC2...

The samba share for my external disk keep vanishing. My Pi Model B boots fine and makes the share for the external disk available, but after a short time they disappear.

I'm assuming this is because I have configured the disk to spin down in in the xbian / xbmc menu's. Is there a way to configure Samba to leave the share up and have disk spin back up if they are accessed?

Cheers,

Hal.
Find all posts by this user
Quote this message in a reply
8th Oct, 2014, 01:16 PM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Samba and Disk spin down
@halibut

the shares are "hot" - like usbstorage below them. Share is set to be removed if system generates event saying storage was removed. Spin down event should not be trigger for such event.

can you after system boots log into ssh, and as sudo start udev event monitoring ?
Code:
sudo udevadm monitor

then please try to send the piece of log showing events generated with the share disappearing.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
12th Oct, 2014, 04:01 AM
Post: #3
halibut Offline
Registered
Posts: 5
Joined: Sep 2014
Reputation: 0
RE: Samba and Disk spin down
(8th Oct, 2014 01:16 PM)mk01 Wrote:  @halibut

the shares are "hot" - like usbstorage below them. Share is set to be removed if system generates event saying storage was removed. Spin down event should not be trigger for such event.

can you after system boots log into ssh, and as sudo start udev event monitoring ?
Code:
sudo udevadm monitor

then please try to send the piece of log showing events generated with the share disappearing.

Thanks mk01, is this any help?
[sudo] password for xbian:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[5517.128881] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
KERNEL[5517.134324] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV [5517.137534] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
UDEV [5517.181798] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[5521.474807] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
KERNEL[5521.478200] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
UDEV [5522.221289] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV [5522.712994] remove /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
KERNEL[5532.233796] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
KERNEL[5532.237917] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)
UDEV [5532.241902] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2 (usb)
UDEV [5532.287868] add /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0 (usb)

Not sure what triggers all the 'add's, as the drive was on since boot.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Samba disk space problem danell 3 14,304 15th Jun, 2013 11:48 AM
Last Post: mk01

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 08:56 AM Powered By MyBB, © 2002-2025 MyBB Group.