Openfiler as a file server, Windows, Linux mounts NFS for sharing, and Windows, Linux implementations smb/cifs

Source: Internet
Author: User
Tags ftp protocol

Landing

First login Openfiler Web interface, configure the IP is 192.168.1.111, so the browser address bar input https://192.168.1.111:446/user name: openfiler Password: password

Login successfully entered the status interface, which shows the basic information of the server, system status, hardware information, network, memory and mounted disk.

You can also see that the Web management tool consists of seven parts, namely system, Volume, Quato, Share, Server, Accounts

?

?

System

Click System entry, which is part of the overall system configuration and management, including network settings, ha cluster settings, always set up, UPS management, backup and security controls. Backup uses a snapshot technology, a snapshot of the server for users to download for backup, to perform the recovery, just upload, relatively simple function.

Network Setup

The network settings are divided into three parts: the network configuration to configure networking information, the net Interface configuration to configure the NIC information (dynamic DHCP and static statics), and the networks Access Configuration is set to allow which IP segments can access the host server, for which the settings directly affect iSCSI using iSCSI target in the network ACL control is the setting here, For FTP and SMB services there is no effect on the user set here and the user set in accounts is different. As shown in the following:

Volumes

This section provides soft raid, iSCSI, and LVM volume management features, click Volumes, and if you want to raid a disk, you should set up a soft raid before adding the volume.

Block Device

Block device manages the disk in the house, partitions the disk, and clicks on the block device to enter the configuration:

Click on the selected physical disk to enter the partition interface, I choose/DEF/SDB:

Partitions are divided into physical volume and RAID array member. If you want to do a soft raid, you need to select RAID array member.

Software RAID is not detailed, if you want to create a soft raid, you must select the RAID array member type when partitioning, and then the management interface will display all types of RAID array member without creating a soft raid partition. You can select the partition where you want to create the soft raid and select the RAID level and block size, then click Add Array to create the soft raid:

Volume Group

The Volume group is managed on the volume group, and if physical partitions are created, these physical volumes are seen in the management interface. Select the physical volume you want to add, then give the volume Group a name and click Add Volume Group.

ADD Volume

Once the volume group has been successfully added, you can create a logical volume on the volume Group and click Add Volume to access the Admin interface:

First select the volume group for the logical volume that you want to create in the Select Volume group, and then click Change to select the volume group.

In Create a volume, fill in the logical volume name, the logical volume description, the size that needs to be assigned to the logical volume, and the file type of the logical volume click Create. If you choose XFS and the ext* type, you can create files on the logical volume and provide file sharing services; If you choose block for a long time, you need to set up information on iSCSI targets to provide iSCSI services.

Share

Click Share to enter:

The share in Openfiler is the sharing setting for the file, which first has to create a file. Click on the volume group to eject the option to create a subfolder. After creating a folder, it will be displayed, click on the subfolder name, the configuration interface will pop up:

?

Here you can continue to create more subfolders and also set up the share, click Make share to enter the sharing settings.

A total of three places need to be set: Share access Control Mode, Group access configuration, and host access configuration.

Share Access Control mode: There are two modes: public guest access modes users do not need directory/permissions server Authentication to access shared and controlled access mode users need group Access and host access can be federated in order to be accessible to the share.

Group Access Configuration: at Openfiler level higher than host access, for the FTP protocol, the role of Host access is limited to controlling whether the user can access Openfiler, if none , can not access, using RO or RW, will be able to access, using FTP, RO and RW are the same, for host access, read and write by the group access configuration decision, meaning that when using FTP, RO and RW permissions are configured with group access.

About Primary Group (PG), because the user of Openfiler can join multiple groups, therefore must have the PG attribute, and then through the host access authentication, the role of the PG attribute will be reflected, the actual PG properties of the group has any permissions to the folder.

HostAccess configuration: Host access is configured for specific access to a client, by protocol, CIFS/SMB, NFS, HTTP, and FTP. And can configure 3 access levels, none, RO and RW. It is important to note that after each change, the restart services is selected to determine the modification, otherwise the modification may fail, which is partly after group access, that is, if a user's group has been authenticated by groups access, Then any client on the network can get the appropriate permissions. If you set up host access, the permissions are also limited by the settings in host access when the user logs on to the host that is configured in host access.

?

Here we're going to open the smb/cifs in addition to the NFS service???? Service, in the previous configuration also adapt to the SMB service, check the RW permissions click Update, so that our shared folder is built, click Shares again to see the shared information, and can also be modified:

Windows Client Mounts NFS

Installation of Openfiler content is not explained in detail here, another article is described separately, here only the NFS share and other basic operations, as well as Windows and Linux mounted shared directory

Win7 Ultimate and Enterprise version with NFS client, open Control Panel to find "Turn Windows features on or off" (default is not turned on). Check that NFS is OK and ready to use.

Note: If you do not turn on NFS client, in cmd under Execution Mount command can appear when you the Mount not an internal command or an external command error "

It is important to note that Win7 does not have Windows Server 2008 and other versions of some services, such as user Name Mapping, Active Directory Domain Services, which inevitably leads to permissions problems, and then the solution.

?

Open cmd can mount NFS, the server is created by Openfiler share provided, shared a directory, all permissions are Nginx permissions uid=499 gid=498, this one will be used.

?

Server-side:

Check that the NFS service and the Portmap service are turned on:

# Service NFS status or/ETC/INIT.D/NFS status

#service portmap Status

?

#showmount-E (can view shared-mount directories and network segments that can be connected)

?

Windows Client mount:

C:\users\wmy>?mount 192.168.1.111:/mnt/volsdb/nfs-share/nfs_share N: note: my server ip:192.168.1.111

As shown above 192.168.1.111 the directory on this server has been mounted on the N-disk, and CMD continues to enter the Mount command to view the mounted file system.

C:\users\ares>mount

?

Note: If the drive letter for the mounted Windows already exists, as shown in:

?

To hang:

After performing the mount operation, you can share the Windows implementation, but you need to do a mapping, right-click on the computer, select the mapped network drive:

The network location is displayed at the computer location after mapping:

?

Windows side:

Server-side:

Arbitrarily add a file, found that the server side and the client's data is synchronized, the NFS service is OK.

Linux Client Mount NFS

Linux as a client, the NFS shared directory as a file to handle, first create a mount point:

#mkdir/wmy

#mkdir/wmy/nfs

Then use the Mount command to mount:

Mount-t NFS 192.168.1.111:/mnt/volsdb/nfs-share/nfs_share/wmy/nfs

You can see that the mount is successful and the server-side data is synchronized to the client.

View mount information: Showmount–e 192.168.1.111

Uninstall command:

#umount/wmy/nfs

Sometimes the equipment is busy: device is busy uninstall, Umount-l/wmy/nfs can be forced to uninstall, but it is not recommended to do so. You can first use:

# Fuser-km/wmy/nfs (Fuser can show which program is currently using a file on disk, mount point, or even network port, and give details of the program process)

# Umount/wmy/nfs

If not, you can use: Umount-l/wmy/nfs

Note: Sometimes there is a problem with hanging up. Permissions issue, just modify the folder permissions to 755.

There is also the Portmap (port mapping Server) is not started.

Appendix

By the way, mention the smb/cifs. This is very simple, the other places are the same, the specific operation is described in the 3Volume section, the difference is to open the share settings smb/cifs Read and Write permissions, and set the service interface Smb/cifs services to open:

The Windows-side connection is simple: \\192.168.1.111

Linux side:

First, we're going to look through the smbclient in Linux/ubuntu:

#smbclient –n–l \\192.168.1.111

This is the result of the check, and then we will use the Red Area section to achieve SMB/CIFS:

# mount–t CIFS//192.168.1.111/volsdb.nfs-share.nfs_share/wmy/nfs/-o Username=openfiler,password=password

Openfiler as a file server, Windows, Linux mounts NFS for sharing, and Windows, Linux implementations smb/cifs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.