Create a CIFS system case "Implementing Windows Disk Sharing to Linux"

Source: Internet
Author: User

Original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source, otherwise hold the copyright legal responsibility.

Deep Blue Blog:http://blog.csdn.net/huangyanlong/article/details/47720429

"Background description"

For customers to develop a database backup scheme, the use of RMAN Backup, you need to share the backup server storage under the database server.

1. Database environment:CentOS6.5 64BIT

2. Backup server environment:Windows2008 64bit

"Workaround"

In order to share the backup storage of Windows connections to the database system, you plan to use the cifs file System (Common Internetfile system, the network filesystem). The cifs Protocol, formerly known as the SMB protocol, is supported by most Windows, commercial servers, and storage applications.

"Operation Record"

1. On windows2008 , create a shared directory where the backup directory rman-backup is set to shared.

Operation (slightly).

2. Installing Samba -related packages with yum

[email protected] yum.repos.d]# Yum install-y samba-*

3, check the installation of the package

[Root[email protected] yum.repos.d]# Rpm-qa |grep Samba

Samba-winbind-clients-3.6.9-151.el6.x86_64

Samba-client-3.6.9-151.el6.x86_64

Samba-winbind-3.6.9-151.el6.x86_64

Samba-common-3.6.9-151.el6.x86_64

Samba4-libs-4.0.0-55.el6.rc4.x86_64

Samba-3.6.9-151.el6.x86_64

4. Turn on SMB Services

[[Email protected] yum.repos.d]# service SMB start

Starting SMB services: [OK]

5. Create a shared Mount directory

[Email protected] yum.repos.d]# Mkdir/backup

6. Share the shared folder under Windows to Linux

[Email protected]/]# mount-t cifs//192.168.10.22/rman-backup/backup-o USERNAME=ADMINISTRATOR,PASSWORD=MIMA,RW, dir_mode=0777,file_mode=0777

mount-t CIFS : User Mounts CIFS File system Commands

//192.168.10.22 : Windows of the IP Address

/rman-backup : Windows shared folder name

/backup : Backup directory for database server

username= user name of remote access backup server

password= password for remote access backup server

RW : Read and Write Permissions

dir_mode= directory mode, access to directory permissions settings

file_mode= file mode, access to file permissions settings

Note: If you do not Dir_mode , File_mode settings, only read-only permissions will be granted for access

Small knowledge, essays and notes.

The Blue Growth Kee series _20150817*************************************

original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source ( Http://blog.csdn.net/huangyanlong ).

The growth of Blue-chase DBA (1): Rushing to the road and into Shandong

Blue Growth Kee-Chase DBA (2): Install! Installation! A long-lost memory that caused me to re-perceive the DBA

The growth of Blue-Chase DBA (3): antique operation, data import and export become a problem

The growth of Blue-Chase DBA (4): Recalling the youth, and then explore Oracle installation (Linux 10g, 11g)

The growth of Blue-Chase DBA (5): No talking about business, annoying application system

The growth of Blue-Chase DBA (6): Work and life: small skills, great people

The growth of Blue-Chase DBA (7): Basic Command, foundation stone

The growth of Blue-chase DBA (8): Regain SP report, recall Oracle's Statspack experiment

The growth of Blue-Chase DBA (9): National Day, chasing DBA, new plan, new departure

The growth of the Blue-Chase DBA (10): flying knives to defend themselves, not expertise: fiddling with middleware WebSphere

The growth of Blue-chase DBA (11): The ease of coming home, the dizzy wake up

The growth of Blue-chase DBA (12): Seven days seven harvested SQL

The growth of blue-chasing DBAs (13): Coordinating hardware vendors, six stories: what you see and feel "servers, storage, switches ..."

The growth of Blue-chase DBA (14): An unforgettable "cloud" side, starting Hadoop deployment

The growth of Blue-Chase DBA (15): Think FTP is very "simple", who chengxiang twists

The growth of Blue-Chase DBA: The DBA also drank and was 捭阖

Blue Growth-chasing DBAs: sharing, or spending, learning to grow in the post-IoE era

The growth of Blue-chase DBA (18): A cluster failure on a small machine, caused by an IP replacement

******************************************************************************************************* ***********

Soccer and Oracle Series _20150528***********************************

original works, from the "Blue Blog" blog, Welcome to reprint, please be sure to indicate the source ( Http://blog.csdn.net/huangyanlong ).

Soccer and Oracle Series (1): 32 Way Princes soldiers of, Oracle32 Process Alliance Group A bigger picture of the Brazilian Smon process

Soccer and Oracle Series (2): Brazil opener Preview, Oracle architecture Talk

Soccer and Oracle Series (3): Oracle process ranking, World Cup round is about to be fought!

Soccer with Oracle Series (4): From Brazil fiasco in Germany, think of the difference in RAC topology comparison!  

Soccer and Oracle Series (5): Fifa14 game The missing DirectX Library is analogous to the RPM package from Oracle!

Soccer and Oracle Series (6): The Asian Cup with the library--Refueling Chinese team

****************************************************************************************************** ************

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Create a CIFS system case "Implementing Windows Disk Sharing to Linux"

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.