AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-474192

vrms's questions

Martin Hope
vrms
Asked: 2021-11-11 03:55:48 +0800 CST

pg_hba.conf - 没有密码的 psql 本地登录

  • 1

我pg_hba.conf的 PostgreSQL-12.6 安装中有这些设置

# "local" is for Unix domain socket connections only
local   all             all                                     md5
local   all             postgres                                trust   # ident
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust   # md5
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     trust
host    replication     all             127.0.0.1/32            trust
host    replication     all             ::1/128                 trust

我local all postgres trustexecpt shoudl 允许我在本地登录psql 而无需postgres以unix 用户身份查询密码。

然而:

postgres@my-vm:/opt/db/postgres/bin> psql
Password for user postgres:

postgres用户还没有现有的 psql 密码

user-management postgresql
  • 1 个回答
  • 1326 Views
Martin Hope
vrms
Asked: 2021-10-07 00:49:46 +0800 CST

ansible - 如何克服“冲突的行动声明”错误?

  • 0

我有一个用于创建和调整逻辑卷大小的 Ansible 剧本

# playbook lvol.yml
- hosts: step
  tasks:
  - name: 'create /dev/sdb1 -> 20GB (of 35GB)'
    community.general.parted:
    device: /dev/sdb
    number: 1
    state: present
#    fs_type: ext4


  - name: "resize vgsys by /dev/sdb1"
    community.general.lvg:
    vg: vgsys
    pvs: /dev/sdb1

  - name: "extend lv 'name' to 10GB from /dev/sdb (35GB)"
    community.general.lvol:
      vg: vgsys
      lv: name
      size: 10g

yaml 语法似乎很好(通过 onlineyamltools.com 检查)但我在执行时收到此错误:

ERROR! conflicting action statements: community.general.parted, device

The error appears to be in '/path/to/lvol.yml': line 4, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
  - name: 'create /dev/sdb1 -> 20GB (of 35GB)'
    ^ here

如果我注释掉第一个(community.general.parted)任务,第二个(lvol)任务会出现相同的错误。

任何人都可以为我指出如何克服这个问题的正确方向吗?

ansible yaml
  • 1 个回答
  • 8618 Views
Martin Hope
vrms
Asked: 2018-07-07 03:51:01 +0800 CST

从本地网络中删除旧 SBS 服务器后域控制器错误

  • 1

我正在将 a 迁移Windows SBS 2008到 aWindows Server 2016并认为我在最后一英里,关闭源 SBS 服务器。

不过,我的域似乎仍然依赖于旧版 SBS。当我从网络中删除旧服务器时(通过将其关闭或仅拉网线),我遇到了 2 个问题:

在目标服务器上启动“仪表板”时出错

Windows Server Essentials:
    Networking domain controller server ist not accessible, some operations in Dashboard may not succeed. 
    Please check your network and make sure you can access the domain controller server.

在目标服务器上启动“Active Directory 用户和计算机”时出错

Active Directory Domain Services:
    Naming information can not be located because the specified domain  
    either does not exist or could not be contacted.  

实际上,一旦源服务器与本地网络断开,这将导致无法看到任何域用户帐户。也许在后台运行的其他东西也可能会受到影响,我不知道。

到目前为止,我已经删除DNS Manager了源服务器上的一些条目,指向它自己。但这两者都没有帮助,谷歌搜索结果也没有真正返回任何解决方案。我仍然在目标服务器 @ 中找到源服务器的一个条目>Active Directory Users and Computers >[domain] >Domain Controllers。

知道如何克服这两个问题吗?


编辑:

C:\Users\admin>netdom query fsmo   
Schema master           [newserver].[mydomain].local   
Domain naming master    [newserver].[mydomain].local   
PDC                     [newserver].[mydomain].local
RID pool manager        [newserver].[mydomain].local
Infrastructure master   [newserver].[mydomain].local   
The command completed successfully.

将 fsmo 角色转移到 [newserver] 是一个相当坎坷的过程,因为在我们尝试使用的操作指南中没有任何效果。但最后 netdom 查询输出就像上面发布的一样(据我所知应该是这样)

编辑 2: 我得到了查看目标服务器中条目的提示,DNS Manager实际上得到了对源服务器的一些引用

  • >Forward-Lookupzones >myDomain>_msdcs有一个仍然指向 SBS 的名称服务器 (NS) 条目 - 我想我在这里更改了 ip 地址,所以它指向新服务器,对吗?
  • >Forward-Lookupzones>[myDomain] >/sites >/Default-First-Site-Name >/_tcp有 2 个条目(一个用于旧服务器,一个用于新服务器)用于_gc, _kerbereos&_ldap
  • >Forward-Lookupzones>[myDomain] >/_tcp有 2 个条目(一个用于旧服务器,一个用于新服务器)用于、_gc和另外_kerbereos_ldap_kpasswd
  • 类似的情况(DNS 管理器中的 [oldserver] 和 [newserver]_udp<以及其他条目的双重条目 - 我应该删除指向旧 SBS 服务器的版本吗?

编辑 3:

我可以相互ping 2 个服务器ping [hostname].local(返回IPv6地址,ping (hostname)返回 IPv4 地址),但不能通过ping [domain].[hostname].local. 如果我理解正确,这是同类问题的另一个指标。这是否指向解决方案?

编辑 4: @expx

使用等效的德语术语搜索系统日志,服务器实际返回了 3 个条目(其中 2 个只是确认,而不是错误)

Protokollname: System
Quelle: Microsoft-Windows-GroupPolicy
Datum: 06.07.2018 11:12:48
Ereignis-ID: 1058
Aufgabenkategorie:Keine
Level: Error
keywords:
User: SYSTEM
Computer: [oldserver].[domain].local
Description:

Error while processing the Group policy. The attempt to read the file "\so6.local\SysVol\so6.local\Policies{3474E153-5F07-4EC3-B816-9C0405CCF68F}\gpt.ini" from a Domaincontroller was not successful.
Group policiy settings can't be applied until this event is resolved. This could be a temporay problem which could have at least one of the following causes:
a) name resolution/network connection with the current Domaincontroller
b) Waiting period of the File Replication Service
c) the DFS-Clilent has been deactivated

Event-XML:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-GroupPolicy" Guid="{aea1b4fa-97d1-45f2-a64c-4d69fffd92c9}" />
<EventID>1058</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>0</Task>
<Opcode>1</Opcode>
<Keywords>0x8000000000000000</Keywords>
<TimeCreated SystemTime="2018-07-06T09:12:48.941Z" />
<EventRecordID>1643448</EventRecordID>
<Correlation ActivityID="{C8828C15-D9E9-4FC6-8DE1-927F01129AB1}" />
<Execution ProcessID="520" ThreadID="1260" />
<Channel>System</Channel>
<Computer>SO6SERVER.so6.local</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="SupportInfo1">4</Data>
<Data Name="SupportInfo2">840</Data>
<Data Name="ProcessingMode">1</Data>
<Data Name="ProcessingTimeInMilliseconds">3027</Data>
<Data Name="ErrorCode">53</Data>
<Data Name="ErrorDescription">Der Netzwerkpfad wurde nicht gefunden. </Data>
<Data Name="DCName">\SO6SERVER.so6.local</Data>
<Data Name="GPOCNName">cn={3474E153-5F07-4EC3-B816-9C0405CCF68F},cn=policies,cn=system,DC=so6,DC=local</Data>
<Data Name="FilePath">\so6.local\SysVol\so6.local\Policies{3474E153-5F07-4EC3-B816-9C0405CCF68F}\gpt.ini</Data>
</EventData>
</Event>

实际上我可以读取访问时提到的文件(作为域管理员)

active-directory
  • 3 个回答
  • 1021 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve