07
2011
06

Quantum StorNext 4.01的安装及配置:Linux客户端的配置

Quantum StorNext 4.01对linux提供了丰富的支持,悲剧的是32位系统开始渐渐消失,redhat的RHEL5已经不支持32位系统了。具体兼容情况请查看:昆腾Quantum StorNext 4.1 支持平台兼容列表(操作系统及磁带库) ,在这里我选用的suse 11的64位版本作为linux客户端测试

linux版本如下:

suse-a:~/Desktop # uname -a
Linux suse-a 2.6.27.19-5-default #1 SMP 2009-02-28 04:40:21 +0100 x86_64 x86_64 x86_64 GNU/Linux

挂载iscsi磁盘后的磁盘状态

suse-a:/tmp # fdisk -l

Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000814d0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         191     1534176   82  Linux swap / Solaris
/dev/sda2   *         192        2610    19430617+  83  Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 32.2 GB, 32212254720 bytes
256 heads, 63 sectors/track, 3900 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Disk identifier: 0x692d1d0c

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        3901    31455270   ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 32.2 GB, 32212254720 bytes
256 heads, 63 sectors/track, 3900 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Disk identifier: 0x692d1d02

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        3901    31455270   ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd: 10.7 GB, 10737418240 bytes
256 heads, 63 sectors/track, 1300 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Disk identifier: 0x692d1d0f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1        1300    10482412+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sde: 32.2 GB, 32212254720 bytes
256 heads, 63 sectors/track, 3900 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Disk identifier: 0x692d1d0d

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1        3901    31455270   ee  GPT
suse-a:/tmp #

将Quantum StorNext 4.01客户端上传到服务器tmp目录

sftp> pwd
/tmp
sftp> put snfs_client_SuSE110ES_26x86_64.tar.gz
Uploading snfs_client_SuSE110ES_26x86_64.tar.gz to /tmp/snfs_client_SuSE110ES_26x86_64.tar.gz
  100% 10795KB   1199KB/s 00:00:09    
sftp>

解压安装包

suse-a:/tmp # tar -xvf snfs_client_SuSE110ES_26x86_64.tar.gz
snfs-client-SuSE110ES_262719-4.0.1.15478.x86_64.rpm
snfs-client-SuSE110ES_262719-4.0.1.15478.x86_64.rpm.md5sum
snfs-SuSE110ES-4.0.1.15478.x86_64.rpm
snfs-SuSE110ES-4.0.1.15478.x86_64.rpm.md5sum
suse-a:/tmp #

注意Quantum StorNext 4.01 linux客户端的安装需要gcc编译包的支持

开始安装snfs内核

suse-a:/tmp # rpm -ivh snfs-SuSE110ES-4.0.1.15478.x86_64.rpm
Preparing...                ########################################### [100%]
   1:snfs                   ########################################### [100%]
make -C ../../../linux-2.6.27.19-5 O=/usr/src/linux-2.6.27.19-5-obj/x86_64/default/. clean
ln -f cvfs_bin.o_cmd_shipped .cvfs_bin.o.cmd
make -C ../../../linux-2.6.27.19-5 O=/usr/src/linux-2.6.27.19-5-obj/x86_64/default/. modules
  CC [M]  /usr/cvfs/install/linuxif_fs.o
  CC [M]  /usr/cvfs/install/linuxif_fs_common.o
  CC [M]  /usr/cvfs/install/linuxif_fsctl.o
  SHIPPED /usr/cvfs/install/cvfs_bin.o
  LD [M]  /usr/cvfs/install/cvfs.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/cvfs/install/cvfs.mod.o
  LD [M]  /usr/cvfs/install/cvfs.ko
make -C ../../../linux-2.6.27.19-5 O=/usr/src/linux-2.6.27.19-5-obj/x86_64/default/. modules_install
  INSTALL /usr/cvfs/install/cvfs.ko
  DEPMOD  2.6.27.19-5-default
cvfsbuild                 0:off  1:off  2:off  3:on   4:on   5:on   6:off
cvfs                      0:off  1:off  2:off  3:on   4:on   5:on   6:off
suse-a:/tmp #

开始安装Quantum StorNext 4.01客户端程序

suse-a:/tmp # rpm -ivh snfs-client-SuSE110ES_262719-4.0.1.15478.x86_64.rpm
Preparing...                ########################################### [100%]
   1:snfs-client            ########################################### [100%]
suse-a:/tmp #

指定服务器端的name servers地址

suse-a:/tmp # vi /usr/cvfs/config/fsnameservers

启动Quantum StorNext 4.01服务

suse-a:/tmp # service cvfs start
Initializing StorNext Filesystem (SNFS)
Loading SNFS modules
net.core.rmem_max = 1048576
Starting /usr/cvfs/bin/fsmpm .
net.core.rmem_max = 131071
Starting /usr/cvfs/bin/cvfsd ...
Waiting for CVFS mounts to complete

SNFS Initialized
suse-a:/tmp #

创建Quantum StorNext 4.01挂载目录

suse-a:/tmp #mkdir /snfs
suse-a:/tmp #chmod 777 /snfs

挂载Quantum StorNext 4.01文件系统

suse-a:/tmp # mount -t cvfs fs1 /snfs/
mount.cvfs: Filesystem fs1 mounted on /snfs
suse-a:/tmp #

修改/etc/fstab文件使linux开机自动挂载Quantum StorNext 4.01文件系统

/dev/sda1            swap                 swap       defaults              0 0
/dev/sda2            /                    ext3       acl,user_xattr        1 1
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
fs1                  /snfs                cvfs       verbose=yes           0 0 

到这里Quantum StorNext 4.01 Linux客户端配置完成。

« 上一篇下一篇 »

评论列表:

1.卢松松  2011-6-7 20:58:51 回复该留言
挺难的、。。。。。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。