Giter VIP home page Giter VIP logo

Comments (2)

rposudnevskiy avatar rposudnevskiy commented on August 10, 2024

Hi,
Thank you for the interest to the project.
A few comments on your changes.

Regarding this changes
- util.pread2(["ln", "-s", dev, _dev_name])
+ util.pread2(["ln", "-bs", dev, _dev_name])
If all is normal, the link that is made here shouldn't exist, as it should be deleted on unmap operation. If it exists then something went wrong.
I think it would be better to receive an error and make some investigation than ignore the problem by making the backup copy of existing file using -b option with ln command

The same situation with this changes
+ self.session.xenapi.VDI.remove_from_sm_config(vdi_ref, 'dm')
self.session.xenapi.VDI.add_to_sm_config(vdi_ref, 'dm', dm)
The dm attribute in sm_config is deleted on unmap operation and shouldn't exist before VDI is mapped. So it is not required to delete it before add it to sm_config if all is normal.
And again it would be better to receive error than ignore problem. If VDI is not mapped but sm_config has atttribute dm then something went wrong and some investigation is required.

Thank you.

from rbdsr.

suzj801 avatar suzj801 commented on August 10, 2024

Thanks for reply.
This may happend after the host crushed or power off.
So I find the problem that can't boot the guest vms.

from rbdsr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.