- 论坛徽章:
- 0
|
怎样才能让HPUX中的文件系统加载到IBM-AIX下
1、 在HPUX下建立文件系统;
a、create logic volume
#lvcreate –L 100 –n exportlv /dev/vg00
b、create filesystem
# newfs –F hfs /dev/vg00/rexportlv
c、create mount point
# mkdir /exportlv
d、mount filesystem
# mount /dev/vg00/exportlv /exportlv
2、 在SAM中导出文件系统。
a、 用export TREM=vt100
Ksh –o vi 设置终端。
b、 SAM
c、 选取 networking and communications
d、 选取 networked file systems
e、 选取 exported local file systems
f、 选取 MENU 上面的Action
g、 选取 add exported file system
h、 Local-Directory Name: /exportlv
i、 Allow Asynchronous Writes: 选取yes
j、 其它默认。
3、 验证是否导出成功:
# strings /etc/exports
/exportlv -anon=65534,async
这样就表示导出成功了。
4、 在IBM—AIX机器上执行
#mkdir /exportlv
#smitty nfs
选取 network file system(NFS)
选取 add a file system for mounting
* Pathname of mount point [/exportlv] * Pathname of remote directory [/exportlv]
* Host where remote directory resides [192.168.168.4]
Mount type name []
* Security method [sys]
这样就可以了。
5、 用#df –k 检查一下看,有没有 /exportlv 这个nfs文件系统。
6、 用touch aaaa 建一个文件试一下,看是否有写的权限,如有就表示OK了。
7、 当然如果你想用主机名(hostname)而不是用IP,那就要在两边编辑/etc/hosts 。 |
|