*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Usb drive not available after suspend resume

Filesystems(UFS, EXT2, FAT, NTFS, ZFS), mount points, partitions
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Elclaudio
NewUser
NewUser
Posts: 12
Joined: 10 Dec 2012 01:28
Status: Offline

Usb drive not available after suspend resume

#1

Post by Elclaudio » 29 Jul 2018 18:51

I've a second partition on my usb embedded install for storing thinks like scripts or little apps which are run at boot time. My system is configured to go in S3 suspend mode at night or when no clients are connected to save energy. this works but when system is resumed from suspend, the second partition on the usb drive is not available. I'm forced to log in via the web interface and go to Disks > Mount Point > Tools, select my usb disk, exec umount et then mount again. I would like this to be executed automatically either by script or by other means when system is resumed fromm suspend.
Could you give me tips to achieve this ??

User avatar
Maurizio
Starter
Starter
Posts: 57
Joined: 05 Jul 2018 21:49
Location: Linate (MIlan)
Status: Offline

Re: Usb drive not available after suspend resume

#2

Post by Maurizio » 30 Jul 2018 15:02

Please look at the 2 files: /etc/rc.suspend and /etc/rc.resume.
in /etc/rc.suspend you can read:

Code: Select all

# If a device driver has problems suspending, try unloading it before
# suspend and reloading it on resume.  Example:
# kldunload usb
.
In /etc/rc.resume:

Code: Select all

# If a device driver has problems resuming, try unloading it before
# suspend and reloading it on resume.  Example:
# kldload usb
Uncomment the 2 lines: kldunload usb and kldload usb, reboot the server and test if suspend/resume works.
XigmaNAS 11.2.0.4 on Dell R710 144GB RAM - RootOnZFS zroot on 2x 64GB 15k HDDs in mirror, zdata on 3x 1TB SSD in RAIDZ1.
2x XigmaNAS 11.2.0.4 - RootOnZFS on HPE Proliant Microserver gen10 X3216 - 3x 4TB WD RED. In mirror with zrep.

Elclaudio
NewUser
NewUser
Posts: 12
Joined: 10 Dec 2012 01:28
Status: Offline

Re: Usb drive not available after suspend resume

#3

Post by Elclaudio » 31 Jul 2018 10:13

thanks for your help on this Maurizio;
I'm afraid that it won't work this way because usb is not loaded as a module but is part of the kernel, so I can't unload it.
if I run :

Code: Select all

kldunload usb
I got :

Code: Select all

kldunload: can't find file usb
but perhaps I can use theses scripts to run unmount and mount command. The question is : what's the command executed by the gui to mount and unmount the drives ?

User avatar
lux
Advanced User
Advanced User
Posts: 200
Joined: 23 Jun 2012 11:37
Location: Bielefeld, Germany
Contact:
Status: Offline

Re: Usb drive not available after suspend resume

#4

Post by lux » 31 Jul 2018 11:09

Home:11.2.x.6743/emb@32GB USB|1270v2@X9SCA-F|ECC32GB|i340-T4[lagg@GS108Tv2&smb-mch]|M1015@IT|9HDD~40TB@3xRaidZ1+1HDD+2SSD i335&i520+1xi800P@ZIL|~44W idle@SS-400FL2|Nanoxia Deep Silence 6B|24/7
Services: CIFS, FTP, TFTP, SSH, NFS, Rsync, Syncthing, Webserver, BitTorrent, VirtualBox | Extensions: OBI, TheBrig[Emby, certbot, Asterisk] | Extensions self installed: Streamripper, Pi-hole@Debian9 VM
Test:12.x/emb@16GB USB|X3 420e@M4A88TD-V|16GB|i350-T2|M1015@IT|7xHDD+1xSSD[different Size&Brand]RaidZ1+2|for TESTing only

Elclaudio
NewUser
NewUser
Posts: 12
Joined: 10 Dec 2012 01:28
Status: Offline

Re: Usb drive not available after suspend resume

#5

Post by Elclaudio » 31 Jul 2018 11:38

I know the mount and unmount commands and how to look for the man pages...I've already tried it manually but it doesnt work, plus, there no entries in fstab. my question was what is executed by the nas4free gui to mount and unmount drives ?

Post Reply

Return to “Basic storage concept”