Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1555081.1
Update Date:2018-01-05
Keywords:

Solution Type  Technical Instruction Sure

Solution  1555081.1 :   Sun Storage 7000 Unified Storage System: How to configure FTP append or proftp AllowStoreRestart  


Related Items
  • Sun ZFS Storage 7320
  •  
  • Sun Storage 7210 Unified Storage System
  •  
  • Sun Storage 7410 Unified Storage System
  •  
  • Sun ZFS Storage 7420
  •  
  • Sun Storage 7310 Unified Storage System
  •  
  • Sun Storage 7110 Unified Storage System
  •  
  • Sun ZFS Backup Appliance
  •  
  • Sun ZFS Storage 7120
  •  
Related Categories
  • PLA-Support>Sun Systems>DISK>ZFS Storage>SN-DK: 7xxx NAS
  •  


By default, when a ZFS appliance is rebooted, the ongoing ftp sessions are not resumed from where the upload has been stopped. 
This document tells how to change this behavior.

In this Document
Goal
Solution
References


Applies to:

Sun ZFS Storage 7420 - Version All Versions to All Versions [Release All Releases]
Sun Storage 7110 Unified Storage System - Version Not Applicable to Not Applicable [Release N/A]
Sun Storage 7210 Unified Storage System - Version All Versions to All Versions [Release All Releases]
Sun Storage 7310 Unified Storage System - Version All Versions to All Versions [Release All Releases]
Sun Storage 7410 Unified Storage System - Version All Versions to All Versions [Release All Releases]
Information in this document applies to any platform.

Goal

To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My Oracle Support Community - Disk Storage ZFS Storage Appliance

This document explains how to set up the 'ftp' service so that uploads can resume from where they have been stopped. On the ZFS appliance, the 'ftp' service is based on 'proftp' with "AllowStoreRestart" not defined. This was mainly chosen by design, for security considerations.   


See http://www.proftpd.org/localsite/Userguide/linked/config_ref_AllowStoreRestart.html :

"Care should be taken to disallow anonymous ftp "incoming" transfers to be restarted, as this will allow clients to corrupt or increase the size of previously stored files (even if not their own)."

Under the 2011.1.* Appliance Firmware Releases, here is what "curl" gives when "AllowAutoRestart" is not defined (or set to "off").
The nas head has been rebooted and we try to resume the interrupted 'ftp' upload.

client # curl -a -T bigfile -u root:mypassword ftp://nasboxIpAddr/archives/mybigfile
  % Total    % Received % Xferd  Average Speed   Time    Time     Time Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0  --:--:-- --:--:-- --:--:-- 0

curl: (25) Failed FTP upload: 451

Solution

In some situations, especially when the 'ftp' upload session cannot be restarted from scratch (video stream), we need the "AllowAutoRestart" parameter to be set to "on".
A workflow is available for the 2011.1 releases.  Please open an Oracle SR to retrieve it and refer to this document.
In the next major release (2012.*), the "AllowAutoRestart" parameter will be set to "on" by default.
Just after the ZFS Storage Appliance reboots, here is what "curl" gives when "AllowAutoRestart" is set to "on" :

client # curl -a -T bigfile -u root:mypassword ftp://nasboxIpAddr/archives/mybigfile
  % Total    % Received % Xferd  Average Speed   Time    Time     Time Current
                                 Dload  Upload   Total   Spent    Left  Speed
  8 29.9M    0     0    8 2686k      0  83079   0:06:17  0:00:33  0:05:44
    ^^^^
    It restarts from where the upload had been stopped

The "proftpd_conf.akwf" workflow is available from Bug 15545622 - SUNBT6811666 appliance ftp: add file transfer resume support 


References

<BUG:15545622> - SUNBT6811666 APPLIANCE FTP: ADD FILE TRANSFER RESUME SUPPORT

Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback