Debian 10 安装配置samba

samba, smb 在IPMI安装OS的时候非常有用,可以实现远程挂载. 对于远程挂载这种服务来说,可以简单配置一下samba就可以实现.

在debian 10 上安装十分的简单:

apt install samba

编辑samba的配置文件:

删掉/etc/samba/smb.conf文件,用下面的内容代替:

[global]
workgroup = WORDGROUP
netbios name = samba
security = user
map to guest = bad user

[share]
comment = Home Directories
path = /samba/share
browsable =yes
writable = no
guest ok =yes
read only = yes

这个表示目录位于/samba/share. 下面重启samba服务并且写入开机自启动服务:

systemctl restart smbd
systemctl enable smbd

十分的简单,这就完成了

需要挂在OS iso文件,直接放入/samba/share下面就可以了

 

WebNX Utah机房E3-1275V5 1TB SSD服务器benchmark

在webhostingtalk上看到webnx 有一款机器在on sale,配置相当不错,而我又是webnx 的超级粉,立马拿下替换了原来旧的机器,新机器的配置如下:

Intel Xeon E3-1275v5 quadcore 3.6ghz
64gb ddr4 ECC ram
1TB Enterprise SSD
/29 5x usable ip's
30Tb over 1gbps
$65 ** limited time until we burn up the stock on hand!

实话实说,这个机器还是非常有新引力的,再加上webnx 100%的SLA 和 super connected network, 真的是非常爽的价格.

我准备用它来做ESXi 新的vCSA 主控. 

在deploy ESXi之前,先来测试一下这台机器的硬件和network. 

更多

Supermicro 服务器IPMI 安装CentOS问题

现在大部分的美国服务商都是使用的supermicro 的服务器,supermicro 一般都自带IPMI.

但是在使用Intel 的E3 CPU 的时候,确会出现这样那样的问题。

总体来说,对于E3 的CPU,supermicro 有两个系列, X10 和 X11,分别专门应该E3-V3,v4 和E3-V5,V6的CPU,问题也由此而来

  1. 安装centos 7 的时候,预加载完成以后就直接黑屏,这是因为IPMI 自带的Aspeed 显卡驱动的问题,在选择安装centos 7 的时候,press tab, 在kernel 的启动选项里面append nomodeset 就可以了
  2. 除了黑屏问题,还有显示soft lock up 等等,这个也是显卡的问题,需要在kernel 的启动选项里面append nomodeset
  3. https://serverfault.com/questions/889868/centos-installer-hangs-through-ipmi, 如果出现这个页面中的问题,或者hangs on start login service,又或者hangs on XXXXX zRAM什么的,那么真的无解,只能安装centos 7 比较老的版本,比如说1511
  4. 有些以5结尾的E3 的cpu,比如说E3-1245V3,E3-1275V5等等 自带显卡,那么也会和ipmi 的显卡aspeed 2400/2500 冲突,也需要在kernel 的启动选项里面选择append nomodeset

 

国外网站关于此问题的讨论:

https://unix.stackexchange.com/questions/353896/linux-install-goes-to-blank-screen

supermicro 官方给的解决方案:

https://www.supermicro.org.cn/support/faqs/faq.cfm?faq=30162

Fedora 也遇到了这样的问题:

https://mangolassi.it/topic/18685/fedora-29-server-or-28-install-is-stuck

Debian 9 开启 BBR

Debian 9 和 10 的内核自带了google 开发的 BBR 拥塞算法,我们可以很方便的开启BBR 进行访问加速

开启方法:

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p

如果执行之后没有报错,重启一下系统就可以让配置生效.

重启之后,执行如下命令查看内核是否已开启BBR:

sysctl net.ipv4.tcp_available_congestion_control

显示以下即已开启:

root@localhost:~# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno

查看BBR是否启动:

lsmod | grep bbr

显示以下即启动成功:

root@localhost:~# lsmod | grep bbr
tcp_bbr 16384 14

 

修改office365 outlook 的OST文件的位置

outlook中的邮件(除了pop3)都存储在OST文件中,如果你的C盘不够大的话,建议还是放在其他的SSD盘(pop3邮件一般存储在pst文件中)

outlook 的OST文件默认位置是C盘,如果想修改成其他的位置,google了一上午,发现最简单和便捷的办法就是修改注册表. 其他类似于修改profile 的方式太麻烦了

1 彻底关闭outlook 365 或者2016,同时保证OST 文件没有被其他的程序使用.

2 打开注册表,可以在run中输入regedit

3 打开路径: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook, 在右边空白处右击,选择New -> Expandable String Value

4 键名写”ForceOSTPath”, 然后双击这个键,在”Edit String” 中,填写你想要的 文件路径,然后点击“OK”

5 关闭注册表,然后重启电脑即可.

英文版参见: https://www.isumsoft.com/it/change-data-file-pst-ost-location-in-outlook-2016/

Sept 2019 Updated: 我发现添加ForceOSTPath的办法只能应用于exchange/hotmail/outlook/msn的邮箱,对于IMAP 的邮箱不起任何作用。搜索了半天发现了下面两篇文章:

https://social.technet.microsoft.com/Forums/en-US/f8cf7ce8-ca4c-4619-be32-f9f1a4ffa5fe/forceostpath-not-fully-working-bug-office-2016?forum=outlook

How to move IMAP data files

原来从Outlook 2013年开始, IMAP 和 EAS *.ost 使用的是ForcePSTPath, 而不是ForceOSTPath,尽管data file 是以.ost 结尾的!!!

这个需要注意!

 

 

Windows LTSC 2019 各个版本

大家一般都喜欢在工作中部署LTSC 2019,简洁,稳定!

但是很多人在下载LTSC的时候,很容易被各种iso 弄混。其实说白了网上流传的这些iso都是微软发布的,只是不是版本而已,下面一一陈述:

2018年10月3号版本:

Product (Full Name): Windows 10 Enterprise LTSC 2019 (x64) - DVD (English)
File Type: DVD
Language: English (EN)
Architecture: x64
File: en_windows_10_enterprise_ltsc_2019_x64_dvd_74865958.iso
SHA1: 0b8476eff31f957590ade6fe671f16161037d3f6
File Size (MB): 3.61 GB
Date release: 2018-10-03
 
这个ISO 也是网上流传的最多的iso,应该是LTSC最早的版本,但是有个关于文件删除的大bug,所以微软很快就在11月发布了新版:
 
2018 Nov 版本:
简体中文 – 企业版 LTSC 2019
cn_windows_10_enterprise_ltsc_2019_x64_dvd_d17070a8.iso (4 GB)
ed2k://|file|cn_windows_10_enterprise_ltsc_2019_x64_dvd_d17070a8.iso|4290967552|9E80DED85693E8E4E0D76E55B1207221|/
SW_DVD5_WIN_ENT_LTSC_2019_64-bit_Chinese_Simplified_MLF_X21-96413.ISO (4 GB)
ed2k://|file|SW_DVD5_WIN_ENT_LTSC_2019_64-bit_Chinese_Simplified_MLF_X21-96413.ISO|4290967552|9E80DED85693E8E4E0D76E55B1207221|/
 
 
(English) Windows 10 Enterprise 2019 LTSC Version 1809 (Nov 2018) (x64) - DVD
File: SW_DVD5_WIN_ENT_LTSC_2019_64-bit_English_MLF_X21-96425.iso
File:en_windows_10_enterprise_ltsc_2019_x64_dvd_be3c8ffb.iso

en_windows_10_enterprise_ltsc_2019_x64_dvd_be3c8ffb.iso (3.78 GB)
ed2k://|file|en_windows_10_enterprise_ltsc_2019_x64_dvd_be3c8ffb.iso|4056717312|17B62BAE00F77F162247008710F55AF0|/
SW_DVD5_WIN_ENT_LTSC_2019_64-bit_English_MLF_X21-96425.ISO (3.78 GB)
ed2k://|file|SW_DVD5_WIN_ENT_LTSC_2019_64-bit_English_MLF_X21-96425.ISO|4056717312|17B62BAE00F77F162247008710F55AF0|/
 
 
MSDN 和VLSC 虽然名字不一样,但是其实是同一个文件,通过md5 查询验证了这一点.
 
2019 Feb 版本:
中文x64:
cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso (4.17 GB)]cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso (4.17 GB)
ed2k://|file|cn_windows_10_enterprise_ltsc_2019_x64_dvd_9c09ff24.iso|4478906368|E7C526499308841A4A6D116C857DB669|/
英文x64:
en_windows_10_enterprise_ltsc_2019_x64_dvd_5795bb03.iso (4.03 GB)
ed2k://|file|en_windows_10_enterprise_ltsc_2019_x64_dvd_5795bb03.iso|4330432512|87DB27A367A86E56D62EA9ADA7F0D57B|/
 

WebNX Utah 服务器benchmark

/dev/sda:

=== START OF INFORMATION SECTION ===
Model Family: Intel 730 and DC S35x0/3610/3700 Series SSDs
Device Model: INTEL SSDSC2BA400G4
Serial Number: BTHV513606YB400NGN
LU WWN Device Id: 5 5cd2e4 04b7c7e4a
Firmware Version: G2010160
User Capacity: 400,088,457,216 bytes [400 GB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: Solid State Device
Form Factor: 2.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-3 T13/2161-D revision 5
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Wed Sep 18 22:16:03 2019 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

可以看到SSD 是intel 的DC S3710

----------------------------------------------------------------------
CPU model            : Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz
Number of cores      : 8
CPU frequency        : 1000.233 MHz
Total size of Disk   : 359.3 GB (1.1 GB Used)
Total amount of Mem  : 32129 MB (162 MB Used)
Total amount of Swap : 7627 MB (0 MB Used)
System uptime        : 0 days, 21 hour 29 min
Load average         : 0.01, 0.03, 0.00
OS                   : Debian GNU/Linux 10
Arch                 : x86_64 (64 Bit)
Kernel               : 4.19.0-6-amd64
----------------------------------------------------------------------
I/O speed(1st run)   : 418 MB/s
I/O speed(2nd run)   : 418 MB/s
I/O speed(3rd run)   : 417 MB/s
Average I/O speed    : 417.7 MB/s
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        205.234.175.175         105MB/s
Linode, Tokyo2, JP              139.162.65.37           18.7MB/s
Linode, Singapore, SG           139.162.23.4            12.8MB/s
Linode, London, UK              176.58.107.39           18.9MB/s
Linode, Frankfurt, DE           139.162.130.8           17.0MB/s
Linode, Fremont, CA             50.116.14.9             71.7MB/s
Softlayer, Dallas, TX           173.192.68.18           30.1MB/s
Softlayer, Seattle, WA          67.228.112.250          33.6MB/s
Softlayer, Frankfurt, DE        159.122.69.4            8.31MB/s
Softlayer, Singapore, SG        119.81.28.170           7.09MB/s
Softlayer, HongKong, CN         119.81.130.170          7.78MB/s

第二遍测试:

----------------------------------------------------------------------
CPU model : Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz
Number of cores : 8
CPU frequency : 1277.243 MHz
Total size of Disk : 359.3 GB (1.1 GB Used)
Total amount of Mem : 32129 MB (164 MB Used)
Total amount of Swap : 7627 MB (0 MB Used)
System uptime : 0 days, 21 hour 32 min
Load average : 0.07, 0.07, 0.01
OS : Debian GNU/Linux 10
Arch : x86_64 (64 Bit)
Kernel : 4.19.0-6-amd64
----------------------------------------------------------------------
I/O speed(1st run) : 419 MB/s
I/O speed(2nd run) : 418 MB/s
I/O speed(3rd run) : 418 MB/s
Average I/O speed : 418.3 MB/s
----------------------------------------------------------------------
Node Name IPv4 address Download Speed
CacheFly 205.234.175.175 105MB/s
Linode, Tokyo2, JP 139.162.65.37 17.0MB/s
Linode, Singapore, SG 139.162.23.4 13.0MB/s
Linode, London, UK 176.58.107.39 19.6MB/s
Linode, Frankfurt, DE 139.162.130.8 16.8MB/s
Linode, Fremont, CA 50.116.14.9 85.3MB/s
Softlayer, Dallas, TX 173.192.68.18 31.6MB/s
Softlayer, Seattle, WA 67.228.112.250 32.7MB/s
Softlayer, Frankfurt, DE 159.122.69.4 8.59MB/s
Softlayer, Singapore, SG 119.81.28.170 7.08MB/s
Softlayer, HongKong, CN 119.81.130.170 8.86MB/s
----------------------------------------------------------------------

/dev/sdb:

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 3.5
Device Model: ST2000DM006-2DM164
Serial Number: Z560FAW9
LU WWN Device Id: 5 000c50 0a1e182e7
Firmware Version: CC26
User Capacity: 2,000,398,934,016 bytes [2.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Form Factor: 3.5 inches
Device is: In smartctl database [for details use: -P show]
ATA Version is: ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is: SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Wed Sep 18 22:21:57 2019 EDT
SMART support is: Available - device has SMART capability.
SMART support is: Enabled