Skip to content

Commit b7c1a0b

Browse files
committed
add tabs
1 parent 75c5e98 commit b7c1a0b

File tree

1 file changed

+35
-9
lines changed

1 file changed

+35
-9
lines changed

articles/storage/files/glusterfs-migration-guide.md

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Organizations using GlusterFS should migrate to supported alternatives, such as
2626

2727
For Windows clients, use Robocopy. For Linux clients, use rsync.
2828

29+
# [Windows](#tab/windows)
30+
2931
### For Windows clients: Robocopy
3032

3133
Robocopy is a built-in Windows command-line tool designed for copying SMB file shares.
@@ -44,6 +46,8 @@ robocopy <GlusterFS_Source> <AzureFiles_Destination> /MIR /Z /MT:8 /W:1 /R:3 /LO
4446
- `/R:3`: Number of retries on failed copies
4547
- `/LOG`: Creates a detailed log file
4648

49+
# [Linux](#tab/linux)
50+
4751
### For Linux clients: rsync
4852

4953
rsync is a fast, versatile file copy tool available on Linux systems.
@@ -61,6 +65,7 @@ rsync -avz --progress --stats --delete <GlusterFS_Source>/ <AzureFiles_Destinati
6165
- `--progress`: Shows progress during transfer
6266
- `--stats`: Provides transfer statistics
6367
- `--delete`: Removes files from destination that don't exist in source
68+
---
6469

6570
## Step-by-step migration procedure
6671

@@ -95,6 +100,8 @@ rsync -avz --progress --stats --delete <GlusterFS_Source>/ <AzureFiles_Destinati
95100

96101
Before migrating the data, you must mount the Azure file share(s). This article shows how to mount the Azure file share using NTLMv2 authentication (storage account key). In non-administrative scenarios, using identity-based authentication is preferred for security reasons. You can find your storage account key in the [Azure portal](https://portal.azure.com/) by navigating to the storage account and selecting **Security + networking** > **Access keys**, or you can use the `Get-AzStorageAccountKey` PowerShell cmdlet.
97102

103+
# [Windows](#tab/windows)
104+
98105
#### For Windows clients (SMB):
99106

100107
Be sure to replace `<storage-account-name>`, `<share-name>`, and `<storage-account-key>` with your actual values.
@@ -103,36 +110,45 @@ Be sure to replace `<storage-account-name>`, `<share-name>`, and `<storage-accou
103110
net use Z: \\<storage-account-name>.file.core.windows.net\<share-name> /u:AZURE\<storage-account-name> <storage-account-key>
104111
```
105112

113+
# [Linux](#tab/linux)
114+
106115
#### For Linux clients (NFS):
107116

108117
Be sure to replace `<storage-account-name>`, `<share-name>`, and `<mount-point>` with your actual values.
109118

110119
```bash
111120
sudo mount -t nfs <storage-account-name>.file.core.windows.net:/<storage-account-name>/<share-name> <mount-point> -o vers=4.1,sec=sys
112121
```
122+
---
113123

114124
### Step 4: Perform data migration
115125

126+
Once you've mounted the Azure file share, you can perform the data migration.
127+
128+
# [Windows](#tab/windows)
129+
116130
#### For Windows workloads using Robocopy:
117131

118-
1. Open a command prompt or PowerShell window with administrator privileges.
132+
Open a command prompt or PowerShell window with administrator privileges, and run the following command:
119133

120-
1. Run the following Robocopy command:
121-
122-
```powershell
123-
robocopy X:\GlusterFSData Z:\AzureFilesData /MIR /Z /MT:8 /W:1 /R:3 /LOG:C:\migration_log.txt
124-
```
134+
```powershell
135+
robocopy X:\GlusterFSData Z:\AzureFilesData /MIR /Z /MT:8 /W:1 /R:3 /LOG:C:\migration_log.txt
136+
```
137+
138+
# [Linux](#tab/linux)
125139

126140
#### For Linux workloads using rsync:
127141

128-
Execute the following rsync command:
142+
Execute the following command:
129143

130144
```bash
131145
rsync -avz --progress --stats --delete /mnt/glusterfs/ /mnt/azurefiles/
132146
```
133147

134148
For large datasets, consider using the `--exclude` parameter to perform the migration in phases.
135149

150+
---
151+
136152
### Step 5: Verify that migration succeeded
137153

138154
1. Compare file counts and sizes:
@@ -152,29 +168,39 @@ For large datasets, consider using the `--exclude` parameter to perform the migr
152168

153169
## Optimize performance
154170

155-
- For SMB shares:
171+
# [Windows](#tab/windows)
172+
173+
For SMB shares:
156174
- Enable [SMB Multichannel](smb-performance.md#smb-multichannel) for higher throughput.
157175
- Consider using SSD file shares for IO-intensive workloads.
158176

159-
- For NFS shares:
177+
# [Linux](#tab/linux)
178+
179+
For NFS shares:
160180
- Make sure you provision enough capacity to get the performance you need.
161181
- Configure appropriate read/write cache sizes on clients.
182+
---
162183

163184
## Troubleshooting
164185

165186
Follow these instructions to troubleshoot common migration issues.
166187

188+
# [Windows](#tab/windows)
189+
167190
### Common issues with Robocopy
168191

169192
- **Error 5 (Access Denied)**: Verify permissions on source and destination.
170193
- **Error 67 (Network name not found)**: Check network connectivity and share name.
171194
- **Error 1314 (Not enough quota)**: Increase Azure Files quota or free space.
172195

196+
# [Linux](#tab/linux)
197+
173198
### Common issues with rsync
174199

175200
- **Permission denied**: Check file permissions and mount options.
176201
- **Connection timeout**: Verify network connectivity and firewall settings.
177202
- **Partial transfer**: Use `--partial` flag to resume interrupted transfers.
203+
---
178204

179205
## Migration support
180206

0 commit comments

Comments
 (0)