vmware:comparecid
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
vmware:comparecid [2012/11/08 17:51] – external edit 127.0.0.1 | vmware:comparecid [2012/11/12 03:50] (current) – naccad | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to find empty delta files ====== | ||
+ | |||
When you have a large number of delta files caused by a rogue snapshot, in some cases, we end up with lots of delta files that are empty. | When you have a large number of delta files caused by a rogue snapshot, in some cases, we end up with lots of delta files that are empty. | ||
Line 16: | Line 18: | ||
If CID and ParentCID values are identical, we can bypass that file and go to the previous one, in case of a small number of deltas you can easily //cat// each file and see the values, but when dealing with hundreds of file, you need to script it, and this is what I did: | If CID and ParentCID values are identical, we can bypass that file and go to the previous one, in case of a small number of deltas you can easily //cat// each file and see the values, but when dealing with hundreds of file, you need to script it, and this is what I did: | ||
- | <code> | + | <file bash comparecid.sh> |
#!/bin/bash | #!/bin/bash | ||
# | # | ||
Line 29: | Line 31: | ||
fi | fi | ||
done | done | ||
- | </code> | + | </file> |
This should spit out a list of delta files that can be bypassed, in some instances you will find that all of them can be bypassed and in this case you can just point the VMX to the flat file and move on. | This should spit out a list of delta files that can be bypassed, in some instances you will find that all of them can be bypassed and in this case you can just point the VMX to the flat file and move on. |
vmware/comparecid.1352397080.txt.gz · Last modified: 2012/11/08 18:16 (external edit)