Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with a through h . Answer correctly with explanation. Image is better. Problem 1 : A bunch of distributed file systems questions. In

Please help with a through h. Answer correctly with explanation. Image is better.
Problem 1 : A bunch of distributed file systems questions.
In this problem you will explore the strengths (and weaknesses) of two commercially successful dis-
tributed file systems - AFS and NFS. Specifically, you will look at the implications of state (or lack thereof)
at the server when several clients are writing to the same file.
Recalling from the lecture the semantics of NFS server (the original version, i.e., no leases), it does not
know when a client opens a file for writing nor when the client is done writing and closes the file. Because
of that, NFS requires that the client writes thorough all changes i.e., every time a client writes a byte to the
file, the client sends the appropriate block (e.g.,4 KB) to the server that writes it synchronously to the disk.
The AFS server, on the other hand, keeps a list of all clients that have a file open. The client modifies
a local copy of a file and only when it closes the file are the dirty blocks sent to the server. The server then
looks up all the clients that have a local copy of the same file and sends them an invalidation message via a
callback. This message lists all the blocks that have been modified. The clients have to contact the server if
they want to get the latest version of the data.
Assume a sequence of system calls (listed below) at four elients that all open the same file stored on
a file server. The file is initially empty. The time increases such that fdfdfld9flIg9t6t7lgt4t5lgt4t5t1. The syscall
write (fd, data) means that the data is written to the file whose descriptor isfd. Answer the following
questions. Give all scenarios whenever possible and briefly explain your answer.
(a) Assuming file flis stored onanNFS server, what is its content atd9?
(b) Assuming file flis stored onan AFS server, what is its content atIg9?
Assume a network failure occurred between t6 and t7 and it never recovered(i.e., the elose system call failed
on client 4).
(c) What is the content of the file atlgonanNFS server?
(d) What is its content onan AFS server?
Assume a network failure occurred between t4 and t5 and it never recovered (i.e., the write failed on client
3 and close failed on clients 1,2, and 4).
(e) What is the content of the file atlgonanNFS server?
(f) What is its content onan AFS server?
Now assume that the server went down between t4 and t5, but everything else was functioning well. It took
sufficiently long for the server to come back upso that all the clients finished their applications (since they
didn't handle a failed write and close system calls) happily believing their data was saved.
(g) What is the content of the file when the NFS server came finally up?
(h) When the AFS server came finally up?
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Records And Database Management

Authors: Jeffrey R Stewart Ed D, Judith S Greene, Judith A Hickey

4th Edition

0070614741, 9780070614741

More Books

Students also viewed these Databases questions

Question

List some sources of input data.

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago