#1 2017-10-04 14:38:37

Mark Warren
Member
Registered: 2017-10-04
Posts: 2

How to change datastore with spaces

I've read that in order to use XSIBackup, datastore and vm names cannot have spaces, and unfortunately I have many of them.  What do I need to do to change them?  Here is a sample of what I am dealing with:

[root@il-esxi-01:~] ls -l /vmfs/volumes
total 4096
drwxr-xr-x    1 root     root             8 Jan  1  1970 04b5e77f-ff0f4574-2ba8-54b14a8e874f
drwxr-xr-x    1 root     root             8 Jan  1  1970 42c15c7d-ce0a347f-7629-17dbbc9397ea
drwxr-xr-x    1 root     root             8 Jan  1  1970 5756220e-4ba28a98-2457-3ca82a223f24
drwxr-xr-t    1 root     root          1260 Jun  7  2016 57562219-128cce58-dddf-3ca82a223f24
drwxr-xr-x    1 root     root             8 Jan  1  1970 5756221a-9745f560-3326-3ca82a223f24
drwxr-xr-t    1 root     root          2800 Aug 11 18:50 575f022a-8b18e798-d883-3ca82a223f24
drwxr-xr-t    1 root     root          2240 Aug 11 12:42 575f0251-54eb47f8-eed0-3ca82a223f24
lrwxr-xr-x    1 root     root            35 Oct  4 14:38 Releng 1 -> 575f022a-8b18e798-d883-3ca82a223f24
lrwxr-xr-x    1 root     root            35 Oct  4 14:38 Releng 2 -> 575f0251-54eb47f8-eed0-3ca82a223f24
lrwxr-xr-x    1 root     root            35 Oct  4 14:38 datastore1 -> 57562219-128cce58-dddf-3ca82a223f24

Is there a problem with the symlink names "releng 1" and Releng 2", or are spaces there OK?

Next level lower than this, I have (one example):

[root@il-esxi-01:~] ls -l /vmfs/volumes/575f0251-54eb47f8-eed0-3ca82a223f24/releng\ tools/
total 692279312
-rw-------    1 root     root     6442450944 Aug 25 00:50 releng tools-03c76a88.vswp
-rw-------    1 root     root     1099511627776 Oct  4 14:43 releng tools-flat.vmdk
-rw-------    1 root     root          8684 Aug 25 06:00 releng tools.nvram
-rw-------    1 root     root           536 Jul 15  2016 releng tools.vmdk
-rw-r--r--    1 root     root             0 Jun 30  2016 releng tools.vmsd
-rwxr-xr-x    1 root     root          3070 Jul 15  2016 releng tools.vmx
-rw-------    1 root     root             0 Jul 15  2016 releng tools.vmx.lck
-rw-------    1 root     root            47 Jun 30  2016 releng tools.vmxf
-rwxr-xr-x    1 root     root          3068 Jul 15  2016 releng tools.vmx~
-rw-r--r--    1 root     root         61560 Jun 30  2016 vmware-1.log
-rw-r--r--    1 root     root        397030 Jun 30  2016 vmware-2.log
-rw-r--r--    1 root     root        205121 Jul  1  2016 vmware-3.log
-rw-r--r--    1 root     root        325801 Jul 15  2016 vmware-4.log
-rw-r--r--    1 root     root        667921 Aug 25 06:03 vmware.log
-rw-------    1 root     root     180355072 Jul 15  2016 vmx-releng tools-63400584-1.vswp
[root@il-esxi-01:~]

So, before trying to use XSIBackup, what is the safe way to re-name all these files and directories without confusing the vSphere or any other vmware utilities?

Last edited by Mark Warren (2017-10-04 14:39:22)

Offline

#2 2017-10-04 14:46:46

Mark Warren
Member
Registered: 2017-10-04
Posts: 2

Re: How to change datastore with spaces

Well, I managed to answer PARTIALLY, by using the vSphere client to change datastore and vm names, but I am still left with lots of file names with spaces.  For example:

[root@il-esxi-01:~] ls -l /vmfs/volumes/Releng_2/il-retools/
total 692279312
-rw-------    1 root     root     6442450944 Aug 25 00:50 releng tools-03c76a88.vswp
-rw-------    1 root     root     1099511627776 Oct  4 14:46 releng tools-flat.vmdk
-rw-------    1 root     root          8684 Aug 25 06:00 releng tools.nvram
-rw-------    1 root     root           536 Jul 15  2016 releng tools.vmdk
-rw-r--r--    1 root     root             0 Jun 30  2016 releng tools.vmsd
-rwxr-xr-x    1 root     root          3070 Jul 15  2016 releng tools.vmx
-rw-------    1 root     root             0 Jul 15  2016 releng tools.vmx.lck
-rw-------    1 root     root            47 Jun 30  2016 releng tools.vmxf
-rwxr-xr-x    1 root     root          3068 Jul 15  2016 releng tools.vmx~
-rw-r--r--    1 root     root         61560 Jun 30  2016 vmware-1.log
-rw-r--r--    1 root     root        397030 Jun 30  2016 vmware-2.log
-rw-r--r--    1 root     root        205121 Jul  1  2016 vmware-3.log
-rw-r--r--    1 root     root        325801 Jul 15  2016 vmware-4.log
-rw-r--r--    1 root     root        667921 Aug 25 06:03 vmware.log
-rw-------    1 root     root     180355072 Jul 15  2016 vmx-releng tools-63400584-1.vswp
[root@il-esxi-01:~]

As you can see, the datastore name (symlink) and the top level vm name no longer have spaces, but the filenames under the vm directory still do.  Will this be OK for XSIBackup?

Offline

#3 2017-10-05 02:17:35

admin
Administrator
Registered: 2017-04-21
Posts: 1,366

Re: How to change datastore with spaces

You can have spaces in the VM names (that is extensible to its constituent files), no problem with that.
From the Man Page at: https://33hops.com/xsibackup-help-man-page.html

CONSTRAINTS - PLEASE DO READ

- XSIBACKUP-FREE cannot handle datastores with spaces in its name. XSIBACKUP-PRO can use datastores with spaces as a backup target, but cannot handle VMs stored in a datastore with spaces.
- XSIBACKUP (FREE & PRO) cannot handle special chars in data store names nor in e-mail subject: ()"|><
- XSIBACKUP (FREE & PRO) cannot handle VMs that have special characters in its name: ()"|><
- XSIBACKUP (FREE & PRO) use double hyphen as an argument prefix. Thus, double hyphens cannot be used inside any argument value, including VM names.

Offline

Board footer