mount smb fs in linux

SUSE 12.5 Linux

zypper install smb-client

smbtree 可用

mount -t cifs -o username=xinyong-dell  //192.168.11.60/Acronis /home/smb
Password for xinyong-dell@//192.168.11.60/Acronis:  ******

Fedora core 33.0:同上 不用提前输入密码

Ubuntu 18.04& Redhat & Centos V7 Linux:

apt install smbclient

mount -t cifs -o username=xinyong-dell,password=12345  //192.168.11.60/Acronis /home/smb

标签

ServeRAID M5110 and M5210 SAS/SATA Controllers

he ServeRAID M5110 and M5110e SAS/SATA controllers are 6 Gb SAS/SATA internal RAID controllers.

https://lenovopress.com/tips0857-serveraid-m5110-m5110e

The ServeRAID M5210 and M5210e SAS/SATA Controllers are high performance 12 Gb SAS controllers 

https://lenovopress.com/tips1069-serveraid-m5210-sas-sata-controller

标签

安装 卡巴斯基 在 Centos linux

kernel-devel-2.6.32-642.el6.i686
yum install kernel-headers-2.6.32-642.el6.i686
kernel-devel-2.6.32-642.el6.i686

标签

Gluster volume 编辑 on SUSE linux

gluster> volume info

Volume Name: vol00
Type: Distribute
Volume ID: 66a73e46-fabf-4cb3-b2b1-54b8f12dfc9c
Status: Started
Snapshot Count: 0
Number of Bricks: 3
Transport-type: tcp
Bricks:
Brick1: linux-acronis:/home/gvol
Brick2: linux-12sp5-1:/home/gvol
Brick3: linux-133:/home/gvol
Options Reconfigured:
performance.client-io-threads: on
nfs.disable: on
transport.address-family: inet
 

 

标签

suse 12SP5 安装Gluster 6.10 需要安装 python3-requests

SUSE 12SP5 安装GLUSTER 6.10 要点

rpm -ivh glusterfs-6.10-100.1.x86_64.rpm
warning: glusterfs-6.10-100.1.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 4b432c0e: NOKEY
error: Failed dependencies:
        python3-requests is needed by glusterfs-6.10-100.1.x86_64

提示需要安装 PYTHON3-REQUESTS

安装pip
python3 -m ensurepip --default-pip

升级pip
pip install --upgrade pip 

安装python3

zypper in python3 python3-base

安装python3-requests库 单单是这个还不够,gluster提示没有找到
python3 -m pip install requests

标签

deepsea stage run ceph.stage.0 1 2 3 4

node130:~ #  deepsea stage run ceph.stage.0
Starting orchestration: ceph.stage.0
Parsing orchestration ceph.stage.0 steps... â³

[parsing] on master
            |_ ceph.stage.0

[parsing] on node130.gbca.cn
            |_ ceph.salt.crc.master
               ceph.salt-api
               ceph.repo
               ceph.metapackage
               ceph.updates
               ceph.sync

标签

Python pip 安装与使用

pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。

目前如果你在 python.org 下载最新版本的安装包,则是已经自带了该工具。

Python 2.7.9 + 或 Python 3.4+ 以上版本都自带 pip 工具。

pip 官网:https://pypi.org/project/pip/

你可以通过以下命令来判断是否已安装:

pip --version # Python2.x 版本命令 pip3 --version # Python3.x 版本命令

如果你还未安装,则可以使用以下方法来安装:

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py # 下载安装脚本 $ sudo python get-pip.py # 运行安装脚本

标签

find 文件内容 注意引号

从根目录开始查找所有扩展名为.py的文本文件,并找出包含"deepsea-0.9.22"的行

find / -type f -name "*.py"  | xargs grep "deepsea-0.9.22"


find /usr/bin -type f -name "*"  | xargs grep "deepsea-0.9.22"

find ./ -type f -name "*" |xargs grep "My active courses"
 

标签

salt-run state.orch ceph.stage.0 错误

admin:~ # salt-run state.orch ceph.stage.0
[ERROR   ] Exception caught loading ext_pillar 'stack':
  File "/usr/lib/python3.6/site-packages/salt/pillar/__init__.py", line 982, in ext_pillar
    key)
  File "/usr/lib/python3.6/site-packages/salt/pillar/__init__.py", line 910, in _external_pillar_data
    *val)
  File "/srv/modules/pillar/stack.py", line 384, in ext_pillar
    'pillar': partial(salt.utils.traverse_dict_and_list, pillar),

标签

vCenter 和vSphere 复制虚拟机的不同

vCenter 速度更快,空虚拟机就是 0字节

而vSphere 复制虚拟机按照硬盘实际大小,相当于后置备

标签
订阅