Re: inode usage / file
- From: "Edwin Cooke" <ecoo@xxxxxxxxxxxxxxxxx>
- Date: Fri, 9 Nov 2007 14:10:11 -0800
In message <1193979748.393165.23680@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
zorba <parinay(at)gmail.com> wrote:
Hi,
I have a 1.4 TB Volume exported over NFS, accessed from a Linux
NFS(v3) client. I have to fill all indoes on this volume. One way of
doing it is to create so many files which is time consuming . One more
option to use is Snapmirror/Replication technologies to create this
Data set. Anything else more efficient than either of this ?
Can there be more than one inode per file ? I mean if I create a file
of 100gb for example, will it utilize only one inode or inode +
indirect inodes = total inode count ? And How to see per file inode
usage on linux ?
Please note I am talking about Netapp Wafl FS here.
and in message <fgnprf$rel$1@xxxxxxxxxxxxxxxxx>,
"the wharf rat" <wrat(at)panix.com> replied
|
| >Hi,
| >I have a 1.4 TB Volume exported over NFS, accessed from a Linux
| >NFS(v3) client. I have to fill all indoes on this volume. One way of
| >doing it is to create so many files which is time consuming . One more
|
| [suggested script omitted]
|
| Wafl shoudn't have any problem with the pathologically large
| directory you'll end up with...
Wharf Rat, you must be joking, right?
WAFL's performance will degrade for very large dirctories.
In message <472b5587$0$79949$742ec2ed@xxxxxxxxxxxxxx>,
Bakul Shah <usenet(at)bitblocks.com> wrote
}
} zorba wrote:
}
} > I have a 1.4 TB Volume exported over NFS, accessed from a Linux
} > NFS(v3) client. I have to fill all indoes on this volume. One way of
} > doing it is to create so many files which is time consuming . One more
} > option to use is Snapmirror/Replication technologies to create this
} > Data set. Anything else more efficient than either of this ?
}
} Write a script. In /bin/sh:
}
} x=0; while touch $x; do x=$(($x + 1)); done
}
} > Can there be more than one inode per file ? I mean if I create a file
} > of 100gb for example, will it utilize only one inode or inode +
} > indirect inodes = total inode count ? And How to see per file inode
} > usage on linux ?
}
} One inode is used per file. Use
}
} df -i
}
} to see the inode count.
}
} > Please note I am talking about Netapp Wafl FS here.
} >
} > I am trying my best to find out the answers, if anybody can help cut
} > short the time, will be great full.
}
} I sense a lot of confusion. I am not even sure if it is inodes
} you want. What you wrote seems to make more sense if the word
} "inode" is replaced with the word "block". If I were you I'd focus
} on learning the basic concepts as that will save more time and
} pain in the long run.
NetApp's WAFL, the "write-anywhere file layout", is enough different from
other filesystems (such as ufs, ntfs, or ext2fs) that advice which makes
sense for those filesystems does *not* necessarily apply to WAFL.
By default, NetApp's WAFL filesystem allocates one inode (to store one
file) for every 32K bytes of disk space in a volume.
The "df -i" command will work on a Linux client, but some NFS clients
may not support it. On the other hand, the NetApp filer itself (through
the Data ONTAP command-line interface) does support "df -i".
As Bakul has observed, there does seem to be confusion here.
Zorba, it is not clear what you mean by "I have to fill all indoes"
[presumably "inodes"?]. Does that mean that you want to create a
number of files equal to the "maxfiles" value? (The per-volume
value reported by the filer for the "maxfiles" command output.)
Are you running some kind of performance or NFS stress test?
Did you make some intentional adjustment of "maxfiles"?
While the touch command will create a zero-length file (thus
allocating an inode), this is not a typical usage pattern, so
any results from the test may not apply to real-life operation.
--
Edwin
.
- Follow-Ups:
- Re: inode usage / file
- From: zorba
- Re: inode usage / file
- From: the wharf rat
- Re: inode usage / file
- References:
- inode usage / file
- From: zorba
- inode usage / file
- Prev by Date: Re: inode usage / file
- Next by Date: NetApp shelf-controller firmware update
- Previous by thread: Re: inode usage / file
- Next by thread: Re: inode usage / file
- Index(es):
Relevant Pages
|
|