nasac:users_documentation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nasac:users_documentation [2023/05/24 13:40] – [How to manage SMB ACLs (AKA permissions)] Plone's "Affectation des droits" is for CIs-only Luca Capello | nasac:users_documentation [2025/06/11 12:27] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 30: | Line 30: | ||
| * // | * // | ||
| * //Mac or Linux//: \\ => enter the '' | * //Mac or Linux//: \\ => enter the '' | ||
| + | |||
| + | |||
| + | ==== Replication ==== | ||
| + | |||
| + | **NB**, this originates from (( https:// | ||
| + | |||
| + | To assure the service continuity in case of problems in the primary UNIGE DC at UniDufour, a **nightly** replication is automatically done at the secondary UNIGE DC at the Campus Biotech. | ||
| + | |||
| + | The main differences for the NAS infrastructure at the Campus Biotech are: | ||
| + | - 2 old nodes (4080 models //vs.// the 5300 at UniDufour) | ||
| + | - nor **4hourly** neither **weekly** snapshots, but **daily** ones (automatically taken **before** the nightly replication starts) | ||
| + | - no end-user access | ||
| Line 48: | Line 60: | ||
| </ | </ | ||
| ===== Data transfer ===== | ===== Data transfer ===== | ||
| + | |||
| + | |||
| + | ==== Migrate data to UNIGE tape solution ==== | ||
| + | |||
| + | **NB**, this originates from (( https:// | ||
| + | |||
| + | If you want to migrated NAS data (actually, **any data**...) to the UNIGE tape solution (cf. https:// | ||
| + | - calculate the size of the source folder | ||
| + | - calculate the MD5 hashes for each file in the source folder | ||
| + | - create a 2GB-by-default **split** (AKA multiple-file) '' | ||
| + | - list the destination folder content | ||
| + | - delete the source folder and all its content | ||
| + | |||
| + | <note important> | ||
| + | Given that InfoZip '' | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | $ ug-nas-create-zip-archive-from-folder.sh -h | ||
| + | UG-NAS: Create a split ZIP archive from a NAS folder | ||
| + | Usage: ug-nas-create-zip-archive-from-folder.sh [-h] [-s < | ||
| + | |||
| + | Options: | ||
| + | -h : display this help and exit | ||
| + | -s : split at GB (defaults to 2) | ||
| + | |||
| + | $ ug-nas-create-zip-archive-from-folder.sh \ | ||
| + | "/ | ||
| + | "/ | ||
| + | 2>&1 | \ | ||
| + | tee "/ | ||
| + | Thu 16 Nov 2023 11:48:49 AM CET | ||
| + | ===== | ||
| + | I: calculating source folder size... | ||
| + | 3.9G | ||
| + | ===== | ||
| + | Thu 16 Nov 2023 11:48:49 AM CET | ||
| + | ===== | ||
| + | I: generating MD5 checksum for each file in source folder... | ||
| + | [...] | ||
| + | |||
| + | real 1m3.094s | ||
| + | user 0m7.158s | ||
| + | sys | ||
| + | ===== | ||
| + | Thu 16 Nov 2023 11:49:52 AM CET | ||
| + | ===== | ||
| + | I: creating the split ZIP archive... | ||
| + | splitsize = 2147483648 | ||
| + | [...] | ||
| + | total bytes=4098480958, | ||
| + | |||
| + | real 2m48.380s | ||
| + | user 2m30.320s | ||
| + | sys | ||
| + | ===== | ||
| + | Thu 16 Nov 2023 11:52:40 AM CET | ||
| + | ===== | ||
| + | I: listing archive folder '/ | ||
| + | total 3768321 | ||
| + | [...] | ||
| + | ===== | ||
| + | Thu 16 Nov 2023 11:52:40 AM CET | ||
| + | ===== | ||
| + | I: deleting the source folder... | ||
| + | |||
| + | real 0m0.073s | ||
| + | user 0m0.004s | ||
| + | sys | ||
| + | ===== | ||
| + | Thu 16 Nov 2023 11:52:40 AM CET | ||
| + | ===== | ||
| + | I: all done! | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | ==== Access from outside the UNIGE network ==== | ||
| + | |||
| + | **NB**, this originates from (( < | ||
| + | |||
| + | The UNIGE central NAS is available only from within the UNIGE internal network (including the VPN access). | ||
| + | |||
| + | Depending on the access type you need from the outside world, you should: | ||
| + | - ask to activate the share in your **EduCloud** account (cf. https:// | ||
| + | - ask for an **external UNIGE ISIs account** (cf. https:// | ||
| + | - duplicate the data stored on the UNIGE central NAS to the UNIGE central S3 service and then create pre-signed S3 URLs (cf. https:// | ||
| + | | ||
| + | <note important> | ||
| + | If you need to **regularly** transfer data from/to the UNIGE central NAS, the **external UNIGE ISIs account** is currently the best option, please contact us to set up the [[# | ||
| + | </ | ||
| ==== rsync ==== | ==== rsync ==== | ||
| - | **NB**, the following instructions come from (( https:// | + | **NB**, the following instructions come from (( https:// |
| If you need to synchronize data to another folder, you can let `rsync` **3.1.0+** saves in the log file the MD5 checksum of any transferred file (cf. https:// | If you need to synchronize data to another folder, you can let `rsync` **3.1.0+** saves in the log file the MD5 checksum of any transferred file (cf. https:// | ||
| Line 79: | Line 181: | ||
| ===== Utilisation d'un partage SMB ===== | ===== Utilisation d'un partage SMB ===== | ||
| - | **NB**, this partly | + | **NB**, this partly |
| - | Lorsqu' | + | There are 3 different actors involved in the life of an SMB share: |
| + | - the **DiSTIC RISE storage team** \\ => the infrastructure administrators and share configurators (allocated space, ACL administrative access and pass-through access) | ||
| + | - the share **owner** (AKA '' | ||
| + | - the share **administrators** (AKA '' | ||
| + | |||
| + | Please follow the links on the [[https:// | ||
| + | |||
| + | <note important> | ||
| + | Please check the [[# | ||
| + | </ | ||
| + | |||
| + | Lorsqu' | ||
| <note important> | <note important> | ||
| Line 148: | Line 261: | ||
| === Command line === | === Command line === | ||
| - | | + | **NB**, this originates from (( https:// |
| + | |||
| + | | ||
| root@harlock: | root@harlock: | ||
| root@harlock: | root@harlock: | ||
| Line 161: | Line 276: | ||
| root@harlock: | root@harlock: | ||
| </ | </ | ||
| - | - via GVfs/Gio (//i.e.// the same " | + | - via GVfs/Gio (//i.e.// the same " |
| capello@harlock: | capello@harlock: | ||
| Password required for share adm_home on nasac-faculty.isis.unige.ch | Password required for share adm_home on nasac-faculty.isis.unige.ch | ||
| Line 252: | Line 367: | ||
| ==== How to manage SMB ACLs (AKA permissions) ==== | ==== How to manage SMB ACLs (AKA permissions) ==== | ||
| - | **NB**, part of the following instructions come from (( https:// | + | **NB**, part of the following instructions come from (( https:// |
| - | You must set the access rights directly from Windows | + | You need at least **2 AD groups** for an SMB share to be created: |
| + | - an '' | ||
| + | - a '' | ||
| - | - if you are a **Correspondant Informatique**, | + | These 2 groups will then be used to set the ACLs of the share itself |
| - | - if you are a **end-user**, | + | Once the share has been created, you must set the ACLs at least for the 1st-level content, directly from Windows: |
| + | * if you are a **Correspondant Informatique**, | ||
| + | * if you are a **end-user**, | ||
| <note important> | <note important> | ||
| If you simply want to **check** the existing ACLs from a Linux machine, you can do it via '' | If you simply want to **check** the existing ACLs from a Linux machine, you can do it via '' | ||
| </ | </ | ||
| - | ==== rsync ==== | ||
| - | If you are encountering network errors when copying a gvfs mount, you should use a tool dedicated to network copy | ||
| - | such as rsync, gio copy or scp. | ||
| - | When copying CIFS data from and to linux using Rsync, you can use this rsync example | + | ===== How to manage an NFS share ===== |
| - | < | + | |
| - | rsync --partial --stats --progress –A –a –r –v --no-perms src dest | + | |
| - | </ | + | |
| + | **NB** , the following instructions come from (( https:// | ||
| - | ===== How to manage an NFS share ===== | + | <note important> |
| - | + | To know which client/IP can connect | |
| - | **NB** , the following instructions come from <https:// | + | </note> |
| Nowadays most of the GNU/Linux distribution defaults to NFSv4, which is a big step forward and differs quite a lot from NFSv3 (cf. http:// | Nowadays most of the GNU/Linux distribution defaults to NFSv4, which is a big step forward and differs quite a lot from NFSv3 (cf. http:// | ||
nasac/users_documentation.1684935651.txt.gz · Last modified: (external edit)