Comments (9)
It might not be unreasonable to allow this to be enabled more easily than modifying a config file, e.g. via a key in the xapi database and then customers could enable (at their own risk) to ascertain whether it works correctly in their environment.
from sm.
It is set to 0 by default due to data corruption caused by SANs that implement the discard functionality incorrectly so it isn't safe to have on by default.
The performance issue is also valid. Some SANs are understood to lock an entire LUN or RAID set in order to complete discard which is obviously undesirable with active dynamic workloads.
Even if it could be proved that neither of these issues affected any of the current storage that we have available in our test labs or storage certified on the HCL it would potentially be embarrassing to impact a customer with a previously working environment.
from sm.
Thanks. Is there a known list of such SANs?
from sm.
Thanks. Is there a known list of such SANs?
Not that I'm aware of, this predates my involvement so all I have to go on is the reasons I was given when asking the same questions of previous maintainers.
from sm.
Is that a setting that could be enabled on a per storage basis?
from sm.
Is that a setting that could be enabled on a per storage basis?
It could, by optionally passing (something like) to the lvremove command
--config devices{issue_discards=1}
this is exposed in the command api by the config_param parameter to the lvutil.remove method, so a call of lvutil.remove(<path>, config_param="issue_discards=1")
would probably do the right thing.
from sm.
Would the trim plugin help here?
from sm.
That's sort of what the trim plugin does but it's a manual operation and it trims the empty space of the VG by creating an LV that fills the entire freespace and then discarding it and removing it.
from sm.
It might not be unreasonable to allow this to be enabled more easily than modifying a config file, e.g. via a key in the xapi database and then customers could enable (at their own risk) to ascertain whether it works correctly in their environment.
Any updates on that? SCSI discard is implemented for VMware IMHO and should really belog to supported features in the 21st century. It's fine if not enabled by default, but a switch via XAPI management (to be used by Xen Center/XOA...) should really be offered.
from sm.
Related Issues (20)
- mpath_dmp.py spends 10 seconds in meaningless wait for multipath devices HOT 3
- nfs sr-probe fails with QNAP NFS devices HOT 2
- Missing branch `release/stockholm/lcm` and tag v2.29.1 HOT 2
- Save time of last GC in XAPI
- Make sm works with IPv6 HOT 12
- Remove OCFS SR implementations
- LVM and performance (locks) HOT 13
- Support NFSv4+ only storage repositories HOT 5
- GC issue preventing SR deletion with LVHDSR driver HOT 7
- IntelliCache and SMB SR HOT 2
- Resolve IP family of hostname in NFSSR.py HOT 3
- dev_requirements.txt points to old unusable pylint version HOT 1
- Missing tags? HOT 1
- partitions not properly wiped HOT 4
- set archive=1 in /etc/lvm/lvm.conf?
- PERC H965i and all Dell PERC 12 controllers are only supporting 4K sectors HOT 6
- SMAPIv3 community kickoff HOT 5
- MSA2050/2060 MP support HOT 1
- ISCSI reconnection when not necessary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sm.