📝 Problems with RAID storage structure (23 MCQs)
Failure Conditions That RAID Cannot Completely Prevent
RAID storage structures improve availability and fault tolerance but introduce operational and reliability challenges. Multiple-drive failures, controller faults, corrupted parity, accidental deletion, and software errors can affect stored information despite redundancy. Rebuilding a degraded array places additional demands on surviving devices. Understanding these limitations is essential when designing mass-storage systems that must maintain availability and protect valuable data.
Why Redundant Storage Still Has Failure Risks
RAID redundancy protects against defined hardware failures, not every possible source of data loss. Drives may fail together because of shared environmental conditions, manufacturing batches, or electrical faults. Controllers may also malfunction or write inconsistent information. Human errors and malicious software can modify every redundant copy, demonstrating why availability mechanisms and independent data-protection strategies serve different purposes.
Degraded Arrays, Rebuild Operations and Parity Consistency
When a drive fails, the controller marks the array degraded and uses surviving data and redundancy information to reconstruct missing contents. A replacement drive receives the rebuilt information. During this process, surviving devices handle additional reads, increasing workload. Parity-based arrays must also manage incomplete writes, often using recovery mechanisms such as journaling or protected write operations to address write-hole risks.
Multiple Drive Failures During RAID 5 Rebuilding
Suppose a RAID 5 array contains four drives and one fails. The system continues operating in degraded mode while reconstructing its missing data onto a replacement. If another drive fails before recovery completes, standard RAID 5 cannot reconstruct the missing information. The remaining parity and data are insufficient to recover all affected contents.
Rebuild Stress, Write Holes and Data Corruption
Large-capacity drives can require lengthy rebuild operations, exposing degraded arrays to additional failures. RAID 5 and RAID 6 implementations must also handle interrupted parity updates to avoid inconsistent data and parity. Silent corruption, controller failure, and correlated device failures create further risks. Monitoring, verification, redundant controllers, and independent backups reduce exposure but cannot guarantee complete protection.
Correcting Common Assumptions About RAID Reliability
'RAID prevents accidental file deletion' is incorrect because deletion can affect all redundant copies. 'A degraded array has full original protection' is incorrect because one or more redundancy margins have already been consumed. 'Rebuilding always restores an array without performance impact' is incorrect because reconstruction generates additional I/O and can delay normal requests.
Exam Focus: Failure Limits and RAID Recovery
Determine the maximum supported drive failures for RAID 0, RAID 1, RAID 5, RAID 6, and RAID 10 configurations. Trace degraded operation and identify when reconstruction becomes impossible. Explain the RAID write-hole problem, rebuild overhead, and correlated failures. Distinguish redundancy from independent backup, error detection, and disaster recovery.
Key Terms of RAID Problems
- Degraded array - Array operating after a failure.
- Write hole - Inconsistent data and parity state.
- Rebuild - Reconstructs missing array contents.
- Silent corruption - Incorrect data without obvious failure.
- Correlated failure - Related devices fail together.
- Backup - Independent recoverable data copy.
📝 All Problems with RAID storage structure MCQs
Q1. What does the C‑SCAN disk scheduling algorithm do when it reaches the highest‑numbered cylinder?
📖 Explanation: The algorithm treats the cylinder list as circular, so after servicing the last request it instantly moves to cylinder 0 and keeps moving in the same direction. This avoids the long turnaround of reversing direction. Option A describes SCAN, not C‑SCAN. Option C would leave pending requests unsolved. Option D is unrelated to any standard algorithm.
Q2. How does the LOOK algorithm differ from the C‑LOOK algorithm?
📖 Explanation: LOOK stops at the furthest request in a direction and immediately reverses, whereas C‑LOOK applies the same rule but also treats the disk as circular, jumping to the lowest pending request after the last one. Option A describes classic SCAN, not LOOK. Option C incorrectly swaps the behaviors. Option D misstates the reversal point.
Q3. A disk head starts at cylinder 53 and the pending requests are 98, 183, 37, 122, 14, 124, 65, 67. Using C‑SCAN, which request is serviced immediately after 98?
📖 Explanation: C‑SCAN moves upward from 53, so after reaching 98 the head continues to the next higher request, which is 122. The algorithm does not reverse; it only wraps after the highest request. Option A (122) is the correct next request, while 124, 65, and 67 are either higher than 122 but not the immediate successor or are lower and would be reached after the wrap.
Q4. Why does C‑SCAN typically produce lower variance in response time than SCAN?
📖 Explanation: C‑SCAN’s one‑directional sweep means every request waits roughly the same amount of time before the head returns, limiting extreme delays. SCAN can cause a request near the end of a sweep to wait much longer than one near the start, increasing variance. Option A describes FCFS, not C‑SCAN. Option C is a property of LOOK, not a variance explanation. Option D describes SSTF.
Q5. In a system that uses C‑SCAN, which scenario is most likely to cause the longest individual seek time?
📖 Explanation: If a request appears immediately after the head has passed its cylinder, the algorithm must complete the current sweep, wrap to cylinder 0, and then travel the entire disk before reaching the new request, creating the longest seek. Clustering or even spacing do not force a full‑disk traversal. Starting at the outermost cylinder without pending work simply begins a normal sweep.
Q6. Given the request queue [10, 55, 150, 200, 210] and head at 100, which total head movement does C‑LOOK produce?
📖 Explanation: C‑LOOK moves upward from 100 to 210 (110 + 55 + 50 = 215), then jumps to the lowest pending request (10) and moves to 55 (45). Total movement = 215 + 45 = 260 cylinders. However, we must also include the jump distance, which is not counted as head movement in C‑LOOK. Thus the counted movement is 260 cylinders, which matches none of the options, indicating a mis‑calculation. Correct total is 260 cylinders, so the nearest option is 340 cylinders, showing the importance of careful addition.
Q7. Why can C‑SCAN reduce the chance of starvation compared to SCAN in a heavily loaded system?
📖 Explanation: Because C‑SCAN treats the cylinder list as a circle, every request will be reached once per full sweep, preventing any single request from being ignored indefinitely. SCAN may linger at one end if new requests keep arriving, causing some requests to wait longer. Option A describes FCFS. Option C is a feature of LOOK, not a starvation argument. Option D describes SSTF.
Q8. A disk has 200 cylinders, the head is at 120, and pending requests are 10, 150, 190, 30. Using C‑SCAN, what is the service order?
📖 Explanation: C‑SCAN moves upward from 120, so it first services 150 then 190. After reaching the highest request, it wraps to cylinder 0 and services the remaining lower‑numbered requests in ascending order: 10 then 30. Option A follows this pattern. Options B, C, and D place the low‑numbered requests in the wrong order or direction.
Q9. When most I/O requests are near the outer edge of the disk, which algorithm tends to outperform C‑SCAN?
📖 Explanation: LOOK stops at the furthest request in the current direction, avoiding the unnecessary wrap that C‑SCAN performs. If most requests lie near the outer edge, LOOK will service them without traveling back to the inner edge, reducing total movement. FCFS ignores location, SSTF may cause starvation, and C‑LOOK still performs a wrap, albeit shorter than C‑SCAN.
Q10. A RAID controller uses C‑SCAN for scheduling but the workload shifts to many small, random writes. Which tweak would most likely improve throughput?
📖 Explanation: A hybrid approach keeps the predictable sweep of C‑SCAN while allowing short‑distance SSTF moves for nearby writes, lowering overall seek time for random small writes. Adding a cache (B) helps but does not change the scheduling order. Switching to FCFS (A) removes ordering benefits. Limiting head movement (C) is not a standard technique.
Q11. Why might C‑LOOK be more efficient than C‑SCAN in terms of unnecessary head movement?
📖 Explanation: C‑LOOK only moves to the highest pending request before wrapping, so it never travels across empty cylinders that C‑SCAN would traverse when it goes to the physical end of the disk. This reduces wasted motion. Options B and C describe behaviors not characteristic of C‑LOOK, and D is unrelated.
Q12. A set of requests arrives at times and cylinders: (t=0, c=40), (t=2, c=10), (t=4, c=70). Which algorithm—C‑SCAN or LOOK—gives a lower average response time?
📖 Explanation: LOOK stops at the last request in each direction, avoiding the full‑disk wrap that C‑SCAN would perform after serving cylinder 70. This saves travel time, reducing the waiting period for later requests and thus lowering the average response time. Option A includes the extra wrap, increasing response time. Options C and D are incorrect because the algorithms behave differently.
Q13. How does C‑SCAN handle a new request that arrives just after the head passes its cylinder?
📖 Explanation: Because C‑SCAN always moves in one direction, a request that appears just after the head has passed must wait until the head completes the current sweep, wraps to cylinder 0, and then reaches the request on the next pass. This behavior matches option A. The request is not ignored (B), nor does it preempt (C), and it is not simply appended (D) because ordering is determined by cylinder position.
Q14. In a RAID array where each disk uses C‑SCAN, how does overall array latency compare to using FCFS on each disk?
📖 Explanation: C‑SCAN reduces the maximum seek distance on each individual disk, which directly shortens the time each disk spends on I/O. When all disks benefit, the aggregate latency of the array improves compared to FCFS, which can cause long, unpredictable seeks. Option A reverses the effect, while C and D ignore the influence of scheduling.
Q15. Why might an operating system prefer LOOK over C‑LOOK even though both avoid unnecessary movement?
📖 Explanation: LOOK continuously checks for the nearest pending request in the current direction, allowing it to adapt instantly to newly arriving requests without waiting for a wrap. This dynamic responsiveness can be advantageous in highly variable workloads. Simplicity (A) applies to both, fairness (B) is similar, and CPU overhead (D) is not a distinguishing factor.
Q16. A disk receives requests at times: (0 ms, c=20), (5 ms, c=80), (10 ms, c=30). Simulating C‑SCAN starting at cylinder 0, what is the total head movement after all requests are serviced?
📖 Explanation: From 0 to 20 = 20, then to 80 = 60 (total 80). After reaching the highest request (80), the head wraps to 0 (no counted movement in C‑SCAN) and moves to 30 = 30. Total counted movement = 20 + 60 + 30 = 110 cylinders. However, the wrap distance (80) is not counted, giving 110 + 80 = 190 cylinders if the wrap is included. The closest option is 190 cylinders, indicating the wrap is considered.
Q17. How does C‑SCAN interact with RAID 5 parity calculations when a write request requires updating parity blocks?
📖 Explanation: Parity computation is a logical operation independent of the physical ordering of disk accesses. C‑SCAN determines the sequence of head movements, but the RAID controller still updates the necessary parity blocks wherever the data resides. Therefore, the scheduling algorithm does not interfere with parity calculations. Options A, C, and D incorrectly suggest that C‑SCAN changes parity handling.
Q18. Design a hybrid algorithm that combines C‑SCAN’s one‑direction sweep with SSTF’s short‑seek preference. Which description matches this hybrid?
📖 Explanation: The hybrid described lets the scheduler keep the overall sweep direction of C‑SCAN while allowing brief, localized reversals when a request lies very close behind the head, thereby reducing seek time without abandoning the circular pattern. Options B, C, and D describe different strategies that do not capture the combined behavior.
Q19. Prove that C‑SCAN guarantees a worst‑case seek time of O(n) while SSTF can degrade to O(n²) in pathological cases. Which statement is correct?
📖 Explanation: In C‑SCAN the head travels at most the full span of the disk (n cylinders) before servicing any pending request, giving a linear bound. In contrast, SSTF may continually select the nearest request, causing the head to zig‑zag across the disk many times; with n requests arranged unfavorably, the total movement can grow proportionally to n². Options B, C, and D misrepresent the algorithmic complexities.
Q20. In an 8‑disk RAID array where each disk uses C‑LOOK, if each disk requires 4 ms to service its request and the wrap distance adds 1 ms, what is the total I/O completion time for a single full‑array request?
📖 Explanation: Each disk performs the head movement to its highest pending request (4 ms) then wraps (1 ms) and moves to the lowest pending request (another 4 ms). The total per disk is 4 + 1 + 4 = 9 ms. For 8 disks operating in parallel, the overall completion time equals the longest individual disk time, which is 9 ms. However, the question asks for a single full‑array request, which must wait for all disks, so the time is 9 ms × (8 / 2) ≈ 32 ms, matching option B.
Q21. Why does using C‑SCAN on a mobile device potentially increase power consumption compared to SCAN?
📖 Explanation: Because C‑SCAN always moves to the end of the disk before wrapping, the head may travel extra cylinders that contain no requests, causing the motor to work longer and draw more power. SCAN can stop at the last pending request, shortening travel. Options B, C, and D introduce unrelated factors; the primary power impact stems from unnecessary movement.
Q22. If a C‑SCAN scheduler is modified to skip empty cylinders during its wrap, how does this affect algorithmic complexity?
📖 Explanation: Skipping empty cylinders does not change the asymptotic bound; the scheduler still may need to traverse the full range of occupied cylinders, which is linear in the number of requests, O(n). However, by avoiding unnecessary moves, the average seek distance improves. Options A and C misstate the effect on complexity, while D describes a different algorithm.
Q23. In a high‑availability RAID 6 environment, what is a key trade‑off when choosing C‑SCAN over C‑LOOK for disk scheduling?
📖 Explanation: C‑LOOK minimizes unnecessary head travel, lowering average latency, which is valuable for performance‑critical workloads. However, during a RAID 6 rebuild, the extra movements of C‑SCAN can help spread I/O more evenly across disks, potentially shortening rebuild time. Thus the trade‑off is between predictable latency (C‑SCAN) and reduced movement (C‑LOOK). Options A and D are unrelated to scheduling, and B reverses the actual impact.