Aos Report (Group Ambot)
Aos Report (Group Ambot)
SYSTEM
LESSON 6 :
RAID
REDUNDANT ARRAYS OF INEXPENSIVE DISKS
Modern hard drives are very reliable. We measure the
reliability in terms of the mean time between failures
or MTBF. However, we can improve on this reliability to
give even longer life times by using multiple drives in
special ways.
RAID 2 - ERROR
RAID 0 - STRIPED DISK RAID 1 - MIRRORING
CORRECTING
ARRAY ( a.k.a DUPLEXING )
CODING
Dedicated See Figure 5.11. If a data fails, the parity data is used
to create a replacement disk. A disadvantage to RAID 4 is
Parity Drive that every time a block is written the parity block must
also be read, recalculated, and rewritten. The parity disk
therefore becomes an A/O bottleneck. It provides almost
the same reliability as RAID 1, but if a drive fails the
performance hit will be much worse.
RAID 4 -
Dedicated
Parity Drive
WITH DOUBLE See Figure 5.13. The two different parity blocks are
shown as P&Q functions of the blocks (or strips) in the
PARITY stripe and are shown in contrasting shades. RAID 6
requires an extra disk drive (ove RAID 5) but it will
tolerate the loss of two drives at the same time.
RAID 6 -
INDEPENDENT
DATA DISKS
WITH DOUBLE
PARITY
In this configuration two RAID 0 stripes
are created, and a RAID 1 mirror is
created over them.
0 (a.k.a RAID
10) - STRIPE
OF MIRRORS
RAID FAILURES
RAID 0 Configuration:
In RAID 0, data is striped across multiple drives without redundancy.
If one drive fails, all data is lost because each stripe depends on data from all drives.
RAID 1 Configuration:
RAID 1 mirrors data across drives, so failure of one drive doesn’t lead to data loss.
However, replacing a failed drive involves rebuilding data, which can be time-consuming.
Performance Implications:
Rebuilding or using standby drives can temporarily reduce system performance.
However, these configurations are essential for balancing data safety and system availability.
This covers the basics of RAID configurations, their resilience to failure, and considerations
for performance during recovery.
APPLIED IN OPERATING
SYSTEM
UNIT 4 :
FILE
MANAGEMENT
LESSON 1 : FILES AND FILE SYSTEMS
The file systems permits users to create data collections, called
files, with desirable properties, such as :
SHARABLE BETWEEN
LONG-TERM STRUCTURE
PROCESSES
EXISTENCE
Depending on the
Files are stored on Files have names file system, a file
disk or other and can have can have an internal
secondary storage associated access structure that is
and do not permissions that convenient for
disappear when a permit controlled particular
user logs off. sharing. applications.
TYPICAL OPERATIONS INCLUDE THE FOLLOWING :
CREATE A NEW FILE IS DEFINED AND POSITIONED WITHIN THE STRUCTURE OF FILES.
CLOSE THE FILE IS CLOSED WITH RESPECT TO A PROCESS, SO THE PROCESS NO LONGER
MAY PERFORM FUNCTIONS ON THE FILE, UNTIL THE PROCESS OPENS THE FILE
AGAIN.
2. RECORD 4. DATABASE
Is a collection of related data. The essential
Is a collection of related aspects of a database are that the
fields that can be treated as relationships that exists among elements of
a unit by some application data are explicit, and that the database is
program. designed for use by a number of different
applications. A database may contain all of
the information related to an organization
or a project such as a business or a
scientific study.
TYPICAL OPERATIONS THAT MUST BE
SUPPORTED INCLUDE THE FOLLOWING :
RETRIEVE_ALL: Retrieved all the records of a file. This will be required for an
application that must process all of the information in the file at one time.
RETRIEVE_NEXT : This requires the retrieval of the record that is “next” in some logical
sequence to the most recently retrieved record. Some interactive applications, such as
filling in forms, may require such an operation.
UPDATE_ONE : Retrieve a record, update one or more of it’s fields, and rewrite the updated
record back into the file. Again, it may be necessary to preserve sequencing with this
operation. If the length of the record has changed, the update operation is generally more
may wish to retrieve all records that satisfy a certain set of criteria.
- is that set of system software that
provides services to users and
applications in the use of files. Typically,
the only way a user or application may
access files is through the file FILE
management system.
MANAGEMENT
- This relieves the user or or
programmer of the necessity of
developing special purpose software for
SYSTEMS
each application and provides the
system with a consistent, well-defined
means of controlling it’s most important
asset.
( Grosshans, D. File Systems: Design and
Implementation. Englewood Cliffs, NJ: Prentice Hall,
1986) suggests the following objectives for a file
management system:
To meet the data management needs and requirements of the user, which include storage of
data and the ability to perform the aforementioned operations.
To guarantee, to the extent possible, that the data in the file are valid.
To optimized performance, both from the system point of view in terms of overall throughput,
and from the user’s point of view in terms of response time.
To provide I/O support for a variety of storage device types.
To minimize or eliminate the potential for lost or destroyed data.
To provide I/O support for multiple users, in the case of multiple-user systems.
For an Interactive, general-purpose system, the
following constitute a minimal set of
requirements :
1. Each user should be able to create, delete, read, write, and modify files.
2. Each user may have controlled access to other user’s files.
3. Each user may control what types of accesses are allowed to the user’s files.
4. Each user should be able to move data between files.
5. Each user should be able to back up and recover the user’s files in case of damage.
6. Each user should be able to access his or her files by name rather than by numeric identifier.