Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Guide]: Remap volumes #763

Open
2 tasks done
mndti opened this issue Jun 11, 2024 · 0 comments
Open
2 tasks done

[Guide]: Remap volumes #763

mndti opened this issue Jun 11, 2024 · 0 comments
Labels
question Further information is requested

Comments

@mndti
Copy link

mndti commented Jun 11, 2024

Is your question not already answered in the FAQ?

  • I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • I am sure my question is not about a technical issue.

Question

Hey guys,

I believe that many have already been through this situation with virtual dsm, where depending on the tests and the addition/removal of disks, it maps to volume_4 for example, even though volume_2 is available. This is normal, as it saves this path to the disk that was previously mounted, even though it has the same address 0xa/0xb/etc.

What's the problem? None, however if you have services or container files, for example with the path /volume_2 and this path changes to /volume_3 you will need to change all compose paths.

ATTENTION: REMEMBER THAT THIS MAY CAUSE PROBLEMS IF YOU REMAP UNITS THAT ARE BEING USED FOR SYNOLOGY PACKAGES, FOR EXAMPLE. MAKE BACKUP.

Solution:
Login via ssh:

sudo -i
spacetool --synoblock-enum

All disks will appear, we need Syno-Block /dev/sdX
Assuming your virtual disk is like:

- ****** Syno-Block of /dev/sdc ******
- Space Path: /volume3

Let's remap it to /volume2, of course volume2 cannot be in use.

synospace --synoblock -s /dev/sdc -v volume_2
reboot

What if the path /volume2 is being used by sdb and you want to use it?

synospace --synoblock -s /dev/sdb -v volume_5
reboot

After restart, map sdc to volume_2:

synospace --synoblock -s /dev/sdc -v volume_2
reboot

After restarting, return sdb to the volume you want and have available:

synospace --synoblock -s /dev/sdb -v volume_3
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant