当前位置: 首页 > 文档资料 > 技术文档 Cookbook >

INFRA

优质
小牛编辑
115浏览
2023-12-01

术语表

Table 1. 术语表
术语全称中文说明

MBR

Master Boot Record

主引导记录

最大支持 4 个主分区;在 Linux 上可以通过扩展和逻辑分区达到最大 15 个分区;一个分区的最大容量是 2T。

GPT

GUID Partition Table

GUID 磁盘分割表

GPT 补充 MBR 分区的不足,基于 UEFI 标准;默认支持 128 个分区;能满足现有所有企业需求。

UEFI

Unified Extensible Firmware Interface

统一可扩展固件接口

一种电脑系统规格标准,用来定义操作系统和系统固件之间的接口。

NFS

Network File System

网络文件系统

一种网络文件系统

SMB

Server Message Block

消息区块服务器

向 Microsoft Windows 共享文件的一个标准,有称做 CIFS,例如 Linux 服务器中 Samba 实现了 SMB 标准用来共享文件供 Windows 服务器/客户机/打印机等使用。

CIFS

Common Internet File System

标准网络文件系统

SMB 别名

iSCSI

Internet Small Computer Systems Interface

互联网小型计算机系统接口

一种在TCP/IP上进行数据块传输的标准。https://tools.ietf.org/html/rfc3720[RFC3720], RFC7145, iSCSI

SCSI

Small Computer System Interface

小型计算机系统接口

SISI是定义计算机及其周边设备(硬盘、软驱、光驱、打印机、扫描仪等)之间进行物理连接和数据传输的一组标准

SAN

Storage Area Network

存储区域网络

一种计算机网络用来接入统一的,块级别存储,例如 FibreChannel, iSCSI, AoE

NAS

Network Attached Storage

网络链接存储设备

用于数据存储的技术名称, 例如 NFS, SMB, AFS

设备(Devices)和驱动(Drivers)

Linux 中一切都可以认为是一个文件,包括设备和驱动,/dev目录下是所有设备文件。

有两种类型的设备:

  • Character devices - like a keyboard or mouse, transmit data character by character.

  • Block devices - like USB drives, hard drives, and CD-ROMs transfer blocks of data. A data block is just a unit of data storage.

查看块设备
$ ls -l /dev/ | grep brw
brw-rw----. 1 root disk      253,     0 Aug 28 09:25 dm-0
brw-rw----. 1 root disk      253,     1 Aug 28 09:25 dm-1
brw-rw----. 1 root disk      253,     2 Aug 28 09:25 dm-2
brw-rw----. 1 root disk      259,     0 Aug 28 09:25 nvme0n1
brw-rw----. 1 root disk      259,     1 Aug 28 09:25 nvme0n1p1
brw-rw----. 1 root disk      259,     2 Aug 28 09:25 nvme0n1p2
brw-rw----. 1 root disk      259,     3 Aug 28 09:25 nvme0n1p3
brw-rw----. 1 root disk        8,     0 Aug 28 20:32 sda
brw-rw----. 1 root disk        8,    16 Aug 28 21:51 sdb
brw-rw----. 1 root disk        8,    17 Aug 28 21:51 sdb1

Linux Device file

udev

数据恢复 & 备份

什么是数据恢复

Data recovery is the process of trying to restore data after an unexpected event that results in data loss or corruption.

数据恢复是当不可遇知的事件导致数据丢失或破坏后,恢复数据的办法或流程。

NoteData recovery software, which can analyze failed hard disks or flash drives and try to locate and extract data files.

Data backup: The best way to be prepared for a data-loss event is to have a well-thought out disaster plan and procedure in place. Disaster plans should involve making regular backups of any and all critical data that’s necessary for your ongoing business processes. This includes things like customer data, system databases, system configs and financial data.

A post-mortem is a way for you to document any problems you discovered along the way, and most importantly, the ways you fixed them so you can make sure they don’t happen again.

NoteGitlab 数据恢复
Table 2. 本地和远程备份
地点描述说明

Onsite Backup(本地备份)

onsite backup.png

  • 优点

    • Data is physically nearby

    • Low bandwidth needs

  • 缺点

    • Data loss due to damage at location

Offsite Backup(远程备份)

off site storage.png

  • 优点

    • Data is safer in multiple locations

  • 缺点

    • Needs security and encryption

    • Needs large amounts of bandwidth

Table 3. 数据备份工具
名称说明链接

Rsync

very commonly used, It’s a file transfer utility that’s designed to efficiently transfer and synchronize files between locations or computers.

Rsync as a backup utility

Backup and Restore

a file based version where files are backed up to a zip archive, entire disk saved block by block to a file.

Microsoft Backup and Restore

Time Machine

supports restoring an entire system from backup or individual files

Apple Time Machine

DR 计划

A disaster recovery plan is a collection of documented procedures and plans on how to react and handle an emergency or disaster scenario, from the operational perspective.

Table 4. DR 计划两种路径
Preventive measuresDetection measuresCorrective or recovery measures

Preventative measures cover any procedures or systems in place that will proactively minimize the impact of a disaster. This includes:

  • regular backups

  • redundant systems

Meant to alert you and your team that a disaster has occurred that can impact operations.

Those enacted after disaster has occurred

设计一个 DR 计划

  • Perform Risk Assessment - A risk assessment allows you to prioritize certain aspects of the organizations that are more at risk if there’s an unforeseen event.

  • Determine Backup and Recovery Systems

  • Determine Detection & Alert Measures & Test Systems - Detect and alert you to service outages or abnormal environmental conditions

  • Determine Recovery Measures - Corrective or recovery measures include actions that are taken to restore normal operations and to recover from an incident or outage.

灾难纪录

We create a post-mortem after an incident, an outage, or some event when something goes wrong, or at the end of a project to analyze how it went.

灾难纪录包括内容:

  • ✓ What the incident was?

  • ✓ How long it lasted?

  • ✓ What the impact was?

  • ✓ How it was fixed?

有用链接

. .

最后更新:

类似资料

  • 认证(Authentication) 身份验证是大多数现有应用程序的重要组成部分。有许多不同的方法、策略和方法来处理用户授权。我们最终决定使用什幺取决于特定的应用程序要求,并且与它们的需求密切相关。 passport 是目前最流行的 node.js 认证库,为社区所熟知,并相继应用于许多生产应用中。将此工具与 Nest 框架集成起来非常简单。为了演示,我们将设置 passport-http-bea

  • 下面是一个 XML 技术的列表。 XHTML (可扩展 HTML) 更严格更纯净的基于 XML 的 HTML 版本。 XML DOM (XML 文档对象模型) 访问和操作 XML 的标准文档模型。 XSL (可扩展样式表语言) XSL 包含三个部分: XSLT (XSL 转换) - 把 XML 转换为其他格式,比如 HTML XSL-FO (XSL 格式化对象)- 用于格式化 XML 文档的语言

  • AJAX不能独立工作。 它与其他技术结合使用来创建交互式网页。 JavaScript 松散类型的脚本语言。 在页面中发生事件时调用JavaScript函数。 整个AJAX操作的胶水。 DOM 用于访问和操作结构化文档的API。 表示XML和HTML文档的结构。 CSS 允许将演示样式与内容明确分开,并可通过JavaScript以编程方式进行更改 XMLHttpRequest 与服务器执行异步交互的

  • 可能因为是线下面,再加上公司内部信息流通比较快,一天内的上下午就面完了! 我个人还是对公司的业务非常感兴趣的!所以提前看过好几篇公司业务相关的文章 面试官人很nice,我俩基本上是我一答他一回应,所以我在这里重点挑自己印象里答得不好的地方写写。 技术面 堆和栈的区别?堆是怎么样的数据结构? 数组和链表的具体区别呢?优缺点?存取效率? 原型链?可以先答概念,在用Object和Array来解释各个指向

  • 用例是黑盒测试的功能测试,用于根据系统的使用从系统的开始到结束识别测试用例。通过使用这种技术,测试团队创建了一个测试场景,可以从头到尾根据每个功能的功能运行整个软件。 在这种情况下,有一个测试人员代表用户逐个使用系统的功能。在这种情况下,有一个演员代表用户使用软件系统的功能。 这描述了软件应用程序的逐步功能,可以通过一个例子来理解,假设存在在线资金转移的软件应用程序。转账的各个步骤如下: 用户登录

  • 主要内容:动态分区的缺点,需要分页动态分区的缺点 动态分区的主要缺点是外部碎片。 尽管这可以通过压缩来消除,但正如我们前面所讨论的那样,压缩使得系统效率低下。 我们需要找一种替代机制,以更优化的方式加载分区中的进程。 让我们讨论一个称为分页的动态灵活机制。 需要分页 让我们考虑一个大小为2 MB的进程P1和分为三个分区的主内存。 在三个分区中,两个分区是每个大小为1 MB的空洞。 P1需要在主存中加载2 MB空间。 我们有两个1M