Skip to content

Commit 61621e7

Browse files
committed
[line 109]
the switch for truncate is --size, not - size, also there should be a space between two parameters. remove supoernumerary hyppen character in "- copy" in an English sentense. [line 110] Dollar sign is not part of the command and should be removed from the beginning of the command. It also makes it more aligned with the rest of the document. [lines 208-212] The correct command is useradd, not useadd. Bash commands are case sensitive. I fixed it for useradd, passwd, su and cp commands. define and use variable, instead of repeating storage account name several times.
1 parent 5307e40 commit 61621e7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

articles/storage/files/storage-troubleshoot-linux-file-connection-problems.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ To close open handles for a file share, directory or file, use the [Close-AzStor
106106
- [Fpart](https://github.com/martymac/fpart) - Sorts files and packs them into partitions.
107107
- [Fpsync](https://github.com/martymac/fpart/blob/master/tools/fpsync) - Uses Fpart and a copy tool to spawn multiple instances to migrate data from src_dir to dst_url.
108108
- [Multi](https://github.com/pkolano/mutil) - Multi-threaded cp and md5sum based on GNU coreutils.
109-
- Setting the file size in advance, instead of making every write an extending write, helps improve copy speed in scenarios where the file size is known. If extending writes need to be avoided, you can set a destination file size with `truncate - size <size><file>` command. After that, `dd if=<source> of=<target> bs=1M conv=notrunc`command will copy a source file without having to repeatedly update the size of the target file. For example, you can set the destination file size for every file you want to copy (assume a share is mounted under /mnt/share):
110-
- `$ for i in `` find * -type f``; do truncate --size ``stat -c%s $i`` /mnt/share/$i; done`
111-
- and then - copy files without extending writes in parallel: `$find * -type f | parallel -j6 dd if={} of =/mnt/share/{} bs=1M conv=notrunc`
109+
- Setting the file size in advance, instead of making every write an extending write, helps improve copy speed in scenarios where the file size is known. If extending writes need to be avoided, you can set a destination file size with `truncate --size <size> <file>` command. After that, `dd if=<source> of=<target> bs=1M conv=notrunc`command will copy a source file without having to repeatedly update the size of the target file. For example, you can set the destination file size for every file you want to copy (assume a share is mounted under /mnt/share):
110+
- `for i in `` find * -type f``; do truncate --size ``stat -c%s $i`` /mnt/share/$i; done`
111+
- and then copy files without extending writes in parallel: `find * -type f | parallel -j6 dd if={} of =/mnt/share/{} bs=1M conv=notrunc`
112112

113113
<a id="error115"></a>
114114
## "Mount error(115): Operation now in progress" when you mount Azure Files by using SMB 3.x
@@ -205,10 +205,11 @@ The force flag **f** in COPYFILE results in executing **cp -p -f** on Unix. This
205205

206206
Use the storage account user for copying the files:
207207

208-
- `Useadd : [storage account name]`
209-
- `Passwd [storage account name]`
210-
- `Su [storage account name]`
211-
- `Cp -p filename.txt /share`
208+
- `str_acc_name=[storage account name]`
209+
- `sudo useradd $str_acc_name`
210+
- `sudo passwd $str_acc_name`
211+
- `su $str_acc_name`
212+
- `cp -p filename.txt /share`
212213

213214
## ls: cannot access '&lt;path&gt;': Input/output error
214215

@@ -317,4 +318,4 @@ sudo mount -t cifs $smbPath $mntPath -o vers=3.0,username=$storageAccountName,pa
317318

318319
## Need help? Contact support.
319320

320-
If you still need help, [contact support](https://portal.azure.com/?#blade/Microsoft_Azure_Support/HelpAndSupportBlade) to get your problem resolved quickly.
321+
If you still need help, [contact support](https://portal.azure.com/?#blade/Microsoft_Azure_Support/HelpAndSupportBlade) to get your problem resolved quickly.

0 commit comments

Comments
 (0)