Windows Server 2012 R2: Server Core의 디스크를 원격으로 관리하기(Diskmgmt.msc)

(DC2가 Server Core인데 DC1에서 원격으로 DC2의 디스크 관리를 사용하고 싶음. 구체적으론 컴퓨터 관리 compmgmt.msc를 통해)

먼저 서버 Core 원격 관리 켜기

clip_image001

COM+ 네트워크 액세스(DCOM-In)

(실제로 WMI(Windows Management Instrumentation) 방화벽 설정과 관련 있음)

clip_image002

원격 이벤트 로그 관리 그룹의 모든 규칙을 사용하면 된다고 함.

To configure MMC or other tool remote management over DCOM

  1. Do one of the following to open the Windows Firewall with Advanced Security snap-in.
    • In the Properties area of the Local Server page in Server Manager, click the hypertext value for the Windows Firewall property, and then click Advanced settings.
    • On the Start screen, type WF.msc, and then click the snap-in tile when it is displayed in the Apps results.
  2. In the tree pane, select Inbound Rules.
  3. Verify that exceptions to the following firewall rules are enabled, and have not been disabled by Group Policy settings. If any are not enabled, go on to the next step.
    • COM+ Network Access (DCOM-In)
    • Remote Event Log Management (NP-In)
    • Remote Event Log Management (RPC)
    • Remote Event Log Management (RPC-EPMAP)
  4. Right-click the rules that are not enabled, and then click Enable Rule on the context menu.
  5. Close the Windows Firewall with Advanced Security snap-in.

출처: <https://technet.microsoft.com/en-us/library/hh921475.aspx#BKMK_cmdline>

8. 특정 서비스 허용

a. netsh advfirewall firewall set rule group=”File and Printer Sharing” new enable=yes

b. netsh advfirewall firewall set rule group=”remote desktop” new enable=yes

출처: <https://social.technet.microsoft.com/Forums/ko-KR/58a02324-fb88-4c33-a678-460827c7ae5e/net-advfirewall-firewall-?forum=isaserverko>

clip_image003

DC2에서 규칙을 3개 업데이트함(원격 이벤트 로그 관리 그룹 활성화)

clip_image004

DC2에서 규칙을 4개 업데이트함.(WMI(Windows Management Instrumentation) 그룹 활성화)

Server Manager: Computer cannot be managed …
When using Server Manager to open Computer Management for a hyper-v-server a dialog is displayed showing the message:
Computer SERVER-NAME cannot be managed. Verify that the network path is correct, the computer is available on the network and that the appropriate Windows Firewall rules are enabled on the target computer. To enable the appropriate Windows Firewall rules on the remote computer, open the Windows Firewall with Advanced Security snap-in and enable the following Inbound Rules:
CDOM+ Network Access (DCOM-In)
All rules in the Remove Event Log Management group.
You can also enable these rules by using Group Policy settings for Windows Firewall with Advanced Security. For servers that are running the Server Core installation option, run the Netsh AdvFirewall command or the Windows PowerShell NetSecurity module.
출처: <http://www.cryer.co.uk/brian/windows/hyper-v-server/help_computer_cannot_be_managed.htm>

위 링크에서 도움을 받음.

clip_image005

컴퓨터 관리를 다시 실행.

clip_image006

서비스 등등을 컴퓨터 관리를 통해 관리 가능해짐.

clip_image007

디스크 관리에는 못 들어감. 정리가 더 잘 되어 있는 곳이 있네. https://dirteam.com/sander/2008/04/03/remotely-managing-your-server-core-using-compmgmt-msc/

clip_image008

Vds 서비스를 시작하면 된다고 함.

clip_image009

Vds 서비스를 자동으로 시작하게 만듦.

clip_image007[1]

여전하네? 방화벽 쪽도 찾아보자.

clip_image010

원격 볼륨 관리를 켜주면 된다고 함.

clip_image011

규칙을 업데이트 하고…

clip_image012

들어가보니 RPC 서버를 사용할 수 없다고 나온다.

clip_image013

이번에는 원격으로 조종하는 관리 컴퓨터에서도 규칙 사용함(serverfault 참고함 http://serverfault.com/questions/59735/hyper-v-server-r2-disk-management-mmc-returns-rpc-server-is-unavailable )

clip_image014

드디어 된다! ㅋㅋ

clip_image015

음… 속성 보기 등은 잘 안되네

clip_image016

디스크가 보이긴 하는데 속성 등을 볼 수 없어서 COM+ 원격 관리를 관리 PC에서도 켜줌(켰다가 반응이 없어서 다시 껐음)

clip_image017

재부팅하고 다시 해보니 쓰기 방지되어 있다고 나옴.

clip_image018

Attribute disk 명령으로 읽기 전용 상태임을 확인하고, clear readonly 명령으로 특성을 지움

[참고 자료] Diskpart 명령어로 조치하는 방법

1. 키보드의 [윈도우키+R키]를 눌러 실행창이 열리면, ‘cmd’ 입력하여 관리자 권한으로 실행합니다.

2. 아래 명령어를 차례대로 실행해보시기 바랍니다.

  • Diskpart
  • List disk
  • sel disk 2 (쓰기 방지된 미디어가 포함된 디스크 번호)
  • attribute disk
  • attribute disk clear readonly
  • exit

출처: <http://www.samsungsvc.co.kr/online/faqView.do?domainId=NODE0000033866&node_Id=NODE0000145891&faqId=KNOW0000031844>

야!! 된다! ㅋㅋ 삼성전자 서비스 굿!

clip_image019

후아!

clip_image020

C 드라이브와 D 드라이브의 라벨을 각각 적어 줌. http://www.howtogeek.com/206197/how-to-use-label-to-rename-drives-from-the-windows-command-prompt/ 참고

clip_image021

잘 나오는구나.(여전히 속성을 느리면 잘 안 열림)

clip_image022

Server Core에 디스크를 추가해 Witness 파일을 저장하려고 했다가… 날밤 샜네.

이것도 살펴보세요!

메인 컴퓨터 윈도우 재설치: 프로그램 설치용 winget 스크립트, 그 외 프로그램들(기록용)

마이크로소프트365https://office.com Hyper-V 설치 via. https://learn.microsoft.com/ko-kr/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All 윈겟(Winget) 프로그램 자동 설치 스크립트 …

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다