To Create Shared Storage in Linux Server:
Login as root
And add the following entry(like the following one and save the file)
# vi /etc/exports
/mnt/shared *(rw,sync)
Assuming that you want to create mount point for /mnt/shared folder.
Then , restart the nfs service
# /etc/init.d/nfs restart
Then, in the client where you want to mount the same, goto /mnt and create
directory called shared(mkdir –p shared), then issue the following command
# mount -t nfs -o rw 172.16.10.133:/mnt/shared /mnt/shared
if you want to make this mount as permanent , then create entry into /etc/fstab file
# vi /etc/fstab
Add the entry like below and save the file
172.16.10.133:/mnt/shared /mnt/shared nfs defaults 0 0
Login as root
And add the following entry(like the following one and save the file)
# vi /etc/exports
/mnt/shared *(rw,sync)
Assuming that you want to create mount point for /mnt/shared folder.
Then , restart the nfs service
# /etc/init.d/nfs restart
Then, in the client where you want to mount the same, goto /mnt and create
directory called shared(mkdir –p shared), then issue the following command
# mount -t nfs -o rw 172.16.10.133:/mnt/shared /mnt/shared
if you want to make this mount as permanent , then create entry into /etc/fstab file
# vi /etc/fstab
Add the entry like below and save the file
172.16.10.133:/mnt/shared /mnt/shared nfs defaults 0 0
No comments:
Post a Comment