Go to documentation repository
NAS(네트워크 연결 스토리지)에 메타데이터를 저장하려면 다음을 수행하세요.
Linux OS의 서버에서 netdir 폴더를 만듭니다. 예를 들어, /media 폴더에서
To store the metadata in a network attached storage (NAS), do the following:
On the Server in Linux OS, create the netdir folder. For example, in the /media folder:
Code Block |
---|
sudo mkdir /media/netdir |
Install the cifs-utils utility 유틸리티를 설치합니다.
Code Block |
---|
sudo apt-get install cifs-utils |
Attach the shared network folder to the created netdir folder생성된 netdir 폴더 에 공유 네트워크 폴더를 연결합니다.
Code Block |
---|
sudo mount -t cifs //IP address/common /media/netdir -o user=User,password=123,uid=1001,gid=1002,vers=2.0 |
where,여기
uid, gid—id of the user and ngp group. They can be obtained using the following command:사용자와 ngp 그룹의 id입니다. 다음 명령을 사용하여 얻을 수 있습니다.
Code Block |
---|
id ngp |
After you restart Linux OS, the attached folder will be deleted. To configure the network folder to be attached on the OS loading, do the following:Linux OS를 다시 시작하면 첨부된 폴더가 삭제됩니다. OS 로딩에 첨부할 네트워크 폴더를 구성하려면 다음을 수행합니다.
Open the /etc/fstab filefstab 파일을 엽니다.
Code Block |
---|
sudo nano /etc/fstab |
Add the following string to the file:다음 문자열을 파일에 추가합니다.
Code Block |
---|
//IP address/common /media/netdir cifs user=User,password=123,uid=1001,gid=1002,vers=2.0 0 0 |