You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "itobin (via GitHub)" <gi...@apache.org> on 2025/12/22 22:55:37 UTC

[I] Local Storage not mounted at host reboot [cloudstack]

itobin opened a new issue, #12322:
URL: https://github.com/apache/cloudstack/issues/12322

   CS Version 4.22.0
   Management Server OS Ubuntu 24.04.3 LTS
   KVM Host OS Ubuntu 24.04.3 LTS
   Storage
   1 x OS NVME 
   1 x local NVME for VMs
   1 x local SSD for VMs
   
   We have a strange issue that when we reboot the KVM hypervisor host, the 2 x local storage drives for VMs are not mounted in CloudStack.  When browsing the primary storage and using the browser option, there is no data shown in both datastores.  
   
   To get round this problem, we have to place both local storage drives into maintenance, then take out of maintenance.  Then we can browse the datastores and start the VMs.
   
   We have had this issue since we started doing a POC in previous versions of CS.
   
   We also have a NFS share mounted as a primary shared storage that exhibits a similar issue.  If we place the datastore into maintenance, then take it out of maintenance, there is no data available.  To get round this issue, we have to completed reboot the host then the data is available again.
   
   Ive seen comments about virsh in other posts but not sure how this works with CS and not really helped much. 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3685550112

   @itobin , this is the first time I hear of such an issue. Can you also see the problem from the KVM hosts themselves? If so this would sound like a libvirt issue. (It would still need fixing!)
   Can you add the qemu and libvirt versions to your description for people to check against their envs?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3991365163

   @itobin are you still investing in this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3742882903

   ok @itobin ,
   just to be sure you are not missing a step. If you want to contribute you need to
   1. fork the repo
   2. create a branch in your fork
   3. make the changes in the new branch
   4. create a PR from your fork/branch to the apache repo
   
   if that doesn’t work there is something seriously wrong


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3688218207

   ok, made some progress, it seems we were missing the extra UUIDs and paths for /mnt/ssd and /mnt/nvme in the /etc/cloudstack/agent/agent.properties file, so after adding the following and rebooting the local storage is available after reboot. 
   
   local.storage.uuid=5d51a3d7-7807-4921-bbb0-c969fa49b766,64727ad9-c3ee-4e8c-b474-3db4bb0073ce,da5bd125-3afc-4bd0-9edd-def3f7310809
   local.storage.path=/var/lib/libvirt/images,/mnt/ssd,/mnt/nvme
   
   For the NFS shared storage, this isnt resolved but we found doing the following is a work around without rebooting.
   
   After enabling maintance on the NFS primary storage
   run service cloudstack-agent restart
   Then cancel maintenance and the NFS storage is now showing the data.
   
   So not sure if this is specifc to us or a bug?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3685753217

   > [@itobin](https://github.com/itobin) , this is the first time I hear of such an issue. Can you also see the problem from the KVM hosts themselves? If so this would sound like a libvirt issue. (It would still need fixing!) Can you add the qemu and libvirt versions to your description for people to check against their envs?
   
   ive added the vesions into the description.  Just a bit more info, the 2 local drives are mounted at /mnt/ssd and /mnt/nvme on the KVM host, and the NFS share is mounted at /mnt/nfs-storage/cloudstack/primary
   
   its an odd issue but has held us back going live with it as obviously its significant enough to cause problems such as VMs getting stuck in a startup state.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3701734199

   @itobin , can you isolate the NFS issue and create a new issue ticket for it? 🙏 
   
   the original issue (from the title) is no longer there is it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3689023972

   @itobin , I think the local part is expected. The NFS part I would say should just work, i think.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3709078427

   > [@DaanHoogland](https://github.com/DaanHoogland) not sure what you mean? updating the main install doc?
   
   Yes, either that or an extra note somewhere around the KVM hosts configuration docs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3996025092

   > [@itobin](https://github.com/itobin) are you still investing in this?
   
   no, this was resolved by making those changes to the agent.properties file
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3702374621

   > Just an FYI for anyone else, although the doc says when using local storage to use either set the local storage in the agent file or use the GUI, both are still needed.
   > 
   > I also found that they need to be set in the correct order when using multiple local storage volumes
   > 
   > i.e
   > 
   > local.storage.uuid=uuid of volume1,uuid of volume 2,uuid of volume 3 local.storage.path=path of volume1,path of volume 2,path of volume 3
   
   worth a doc PR, no?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3740932189

   @DaanHoogland i tried but it kept saying i wasnt a collaborator.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland closed issue #12322: Local Storage not mounted at host reboot
URL: https://github.com/apache/cloudstack/issues/12322


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3722896203

   > [@DaanHoogland](https://github.com/DaanHoogland) not sure i would have access to edit the documentation?
   
   nobody has @itobin , this is done with PRs. see [the new pr button on the doc repo](https://github.com/apache/cloudstack-documentation/compare).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3701898854

   @DaanHoogland sure, we can close this one off and ill open a new one for NFS
   
   Just an FYI for anyone else, although the doc says when using local storage to use either set the local storage in the agent file or use the GUI, both are still needed.
   
   I also found that they need to be set in the correct order when using multiple local storage volumes
   
   i.e
   
   local.storage.uuid=uuid of volume1,uuid of volume 2,uuid of volume 3
   local.storage.path=path of volume1,path of volume 2,path of volume 3
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3689299190

   @weizhouapache 
   
   we reviewed the local storage requirements and after settings the extra UUIDs the local storage mounted after reboot.
   
   The remaining issue is the NFS share, after placing it into maintenance, then taking it back out of maintance (in the GUI), the NFS share does not contain any volumes/data when viewing in the browser section.
   
   If we place the NFS share into maintenance
   restart the cloudstack agent on the KVM host
   then cancel maintenance, the NFS share then shows all the data/volumes in the browser


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3721003536

   @DaanHoogland not sure i would have access to edit the documentation?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3684461718

   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3689157912

   @DaanHoogland that would make sense, i have looked over the instructions for NFS and doesnt say anywhere about having to add entries to config files for so to me this does look like an issue somewhere with the agent/virsh
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3689204957

   > ok, made some progress, it seems we were missing the extra UUIDs and paths for /mnt/ssd and /mnt/nvme in the /etc/cloudstack/agent/agent.properties file, so after adding the following and rebooting the local storage is available after reboot.
   > 
   > local.storage.uuid=5d51a3d7-7807-4921-bbb0-c969fa49b766,64727ad9-c3ee-4e8c-b474-3db4bb0073ce,da5bd125-3afc-4bd0-9edd-def3f7310809 local.storage.path=/var/lib/libvirt/images,/mnt/ssd,/mnt/nvme
   > 
   > For the NFS shared storage, this isnt resolved but we found doing the following is a work around without rebooting.
   > 
   > After enabling maintenance on the NFS primary storage run service cloudstack-agent restart Then cancel maintenance and the NFS storage is now showing the data.
   > 
   > So not sure if this is specifc to us or a bug?
   
   maybe not a bug
   
   the [doc](https://docs.cloudstack.apache.org/en/latest/adminguide/storage.html#using-multiple-local-storages-kvm-only) mentions 
   
   <img width="1534" height="1428" alt="Image" src="https://github.com/user-attachments/assets/0d9a9383-647c-4b58-9945-86901ecb003b" />
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Local Storage not mounted at host reboot [cloudstack]

Posted by "itobin (via GitHub)" <gi...@apache.org>.
itobin commented on issue #12322:
URL: https://github.com/apache/cloudstack/issues/12322#issuecomment-3702513453

   @DaanHoogland not sure what you mean? updating the main install doc?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org