Fedora pNFS Client Setup
From Linux NFS
m (wikify section headers) |
|||
Line 1: | Line 1: | ||
- | + | ==Select Hardware== | |
<p> | <p> | ||
Select hardware that is capable of running 64-bit os and at a minimum of two GigE copper NIC ports. Connect all necessary network ports to VLAN. For iSCSI target access, it is recommended that you use separate subnets for the backbone and iSCSI. | Select hardware that is capable of running 64-bit os and at a minimum of two GigE copper NIC ports. Connect all necessary network ports to VLAN. For iSCSI target access, it is recommended that you use separate subnets for the backbone and iSCSI. | ||
</p> | </p> | ||
- | + | ==Installing Fedora== | |
<p>The Install Guide at http://docs.fedoraproject.org/ describes | <p>The Install Guide at http://docs.fedoraproject.org/ describes | ||
a numerous ways in which to install Fedora. Choose the best method for you.</p> | a numerous ways in which to install Fedora. Choose the best method for you.</p> | ||
Line 18: | Line 18: | ||
</ul> | </ul> | ||
</ul> | </ul> | ||
- | + | ==Installing pNFS Enabled Fedora kernel== | |
There are two way to install the pNFS enabled kernels. Either using | There are two way to install the pNFS enabled kernels. Either using | ||
a yum repository or directly downloading. | a yum repository or directly downloading. | ||
- | + | ===Yum repository=== | |
<p>For Fedora 12 (kernel-2.6.32) and Fedora 13 (kernel-2.6.33) kernels | <p>For Fedora 12 (kernel-2.6.32) and Fedora 13 (kernel-2.6.33) kernels | ||
use the used the http://steved.fedorapeople.org/pnfs.repo</p> | use the used the http://steved.fedorapeople.org/pnfs.repo</p> | ||
Line 46: | Line 46: | ||
Note: For development kernels use '--enablerepo=pnfs-rawhide-XXX' | Note: For development kernels use '--enablerepo=pnfs-rawhide-XXX' | ||
- | + | ===Direct download=== | |
You can directly download the pNFS kernel rpms from http://steved.fedorapeople.org/repos/pnfs. | You can directly download the pNFS kernel rpms from http://steved.fedorapeople.org/repos/pnfs. | ||
Line 52: | Line 52: | ||
figure the dependencies. | figure the dependencies. | ||
- | + | ==Load pNFS modules== | |
Load the needed modules with the following commands: | Load the needed modules with the following commands: | ||
modprobe nfslayoutdriver | modprobe nfslayoutdriver | ||
Line 62: | Line 62: | ||
nfs 353047 3 blocklayoutdriver,nfslayoutdriver | nfs 353047 3 blocklayoutdriver,nfslayoutdriver | ||
- | + | ==Mount Filesystem== | |
Use the '-o minorversion=1' mount option when mounting the server, | Use the '-o minorversion=1' mount option when mounting the server, | ||
similar to: | similar to: | ||
Line 70: | Line 70: | ||
grep LAYOUT /proc/self/mountstat | grep LAYOUT /proc/self/mountstat | ||
- | + | ==Generate Traffic== | |
Generate some I/O using “dd” or run “Connectathon ”. You may download Connectathon from http://www.connectathon.org. All tests are expected to pass without errors. | Generate some I/O using “dd” or run “Connectathon ”. You may download Connectathon from http://www.connectathon.org. All tests are expected to pass without errors. |
Revision as of 19:39, 27 August 2010
Contents |
Select Hardware
Select hardware that is capable of running 64-bit os and at a minimum of two GigE copper NIC ports. Connect all necessary network ports to VLAN. For iSCSI target access, it is recommended that you use separate subnets for the backbone and iSCSI.
Installing Fedora
The Install Guide at http://docs.fedoraproject.org/ describes a numerous ways in which to install Fedora. Choose the best method for you.
- Select local disk and take default disk partitions for /boot, /swap LVM etc
- If your block device is accessed through iSCSI then click on “Advanced disk configuration” tab and select iSCSI. If you are using FC you are recommended to unplug Fiber cable before installation and connect back before reboot. Do not initialize Block devices if you are using EMC Unified storage devices (Celerra NAS)
- In order to run the Connectathon test suite you will need the “software development” package.
- Click on the "Software Development" button in the package install screen similar to this
- Its also advisable to added in the 'Fedora' repository on the same page.
- Finally it's also a good idea to do a 'yum -y update' first thing after the install completes. This will ensure you have the most up to date bits available.
Installing pNFS Enabled Fedora kernel
There are two way to install the pNFS enabled kernels. Either using a yum repository or directly downloading.
Yum repository
For Fedora 12 (kernel-2.6.32) and Fedora 13 (kernel-2.6.33) kernels use the used the http://steved.fedorapeople.org/pnfs.repo
For Fedora development kernels (kernel-2.6.32) repository http://steved.fedorapeople.org/pnfs-rawhide.repo
Download the appropriate repository into /etc/yum.repo.d direcotry. Then use one of the following commands to installed the kernel of choice (including the dependencies):
To install non-debug kernels:
yum --disablerepo='*' --enablerepo=pnfs install kernel\*
To install debug enabled kernels:
yum --disablerepo='*' --enablerepo=pnfs-debug install kernel\*
To install debuginfo rpms , which aid with debugging:
yum --disablerepo='*' --enablerepo=pnfs-debug install kernel\*
Note: For development kernels use '--enablerepo=pnfs-rawhide-XXX'
Direct download
You can directly download the pNFS kernel rpms from http://steved.fedorapeople.org/repos/pnfs. With the direct downloads you will need periodicity check for updates as well as figure the dependencies.
Load pNFS modules
Load the needed modules with the following commands:
modprobe nfslayoutdriver modprobe blocklayoutdrive
To verify pNFS modules are loaded correctly do the following:
lsmod | grep nfslayout nfslayoutdriver 18423 0 nfs 353047 3 blocklayoutdriver,nfslayoutdriver
Mount Filesystem
Use the '-o minorversion=1' mount option when mounting the server, similar to:
mount -t nfs4 -o minorversion=1 <server>:/export /mnt
To Verify pNFS is up and working, grep for the word 'LAYOUT' in /proc/self/mountstat
grep LAYOUT /proc/self/mountstat
Generate Traffic
Generate some I/O using “dd” or run “Connectathon ”. You may download Connectathon from http://www.connectathon.org. All tests are expected to pass without errors.