Solved

file read/write - when moved to external device.

Posted on 2004-09-17
3
168 Views
Last Modified: 2010-04-22
Hi all,

  have one problem, n I'm not getting the solution.
 I have one nfs server, which has exported some directories to the nfs clients.

Wht ever files the clients read/writes, it gets written to this nfs exported directory (on the server) giving each of them the feel of local storage.

Now here is the twist, in the nfs server also the files does'nt remains it gets stored onto some external storage.

Now suppose the "client1" has stored a file "FILE1" on the server, after moving the file onto the external device, still the "client1" shld able to see
"FILE1" with proper stats (as per stored).

Now my problem is when I move the file from server to SAN, i.e I need to physically remove the file from the server disk.
So no longer the file is available. But I maintain the metadata, which contains the stats n other info about the file.

How is this to be displayed onto the shell on say on "ls" --- > does this indicate I need to get into filesystem stuff.
Can linking (soft links) be of some help ??????  any ioctls.

n Displaying is not only the purpose, if smhow we display it, the client shld be able to read the file as normal.
One solution I came:

We mount the nfs (server) exported directory on the device, which runs on our block driver.
So when ever some operation read/write etc happens onto the directory the control gets passed to our driver, later for writing the file n reading the file

control could be passed to our application daemon executing the APIs.
But getting the file info, filesystem comes into picture, I think the driver won't be of much help.

Some filesyetm driver wrapper could be the solution.
Please Help. Throw sm light

Pankaj.

0
Comment
Question by:pankaj_thapa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 500 total points
ID: 12099825
Hi Pankaj,

Do you have to absolutely move the files? Would having incremental backups or synching the server with SAN be viable options?

You have also figured out a feasible alternative ....
"We mount the nfs (server) exported directory on the device" ... You should not have to write any wrapper for it ... You need to proivde a netowrk share on the device, mount it from nfs server and then export the share to nfs clients

cheers
sunnycoder
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Is init file for an application part of rpm 3 50
Replication of Nagios surveilance data 2 103
php session folder question (Code Igniter) 3 111
php56-php-mcrypt for rhel7 php56 1 173
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question