Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Email

Netkiller Linux Storage 手札

File Share, Network File System, Distributed Filesystem...

Mr. Neo Chan, 陈景峰(BG7NYT)


中国广东省深圳市龙华新区民治街道溪山美地
518131
+86 13113668890
+86 755 29812080

文档创建日期2010-11-18

版权声明

转载请与作者联系,转载时请务必标明文章原始出处和作者信息及本声明。

文档出处:
http://netkiller.github.io
http://netkiller.sourceforge.net

微信扫描二维码进入 Netkiller 微信订阅号

QQ群:128659835 请注明“读者”

$Date: 2013-04-10 15:03:49 +0800 (Wed, 10 Apr 2013) $

内容摘要

本文档讲述Linux系统涵盖了系统管理与配置包括:

[注意]对初学Linux的爱好者忠告

玩Linux最忌reboot(重新启动)这是windows玩家坏习惯

Linux只要接上电源你就不要再想用reboot,shutdown,halt,poweroff命令,Linux系统和应用软件一般备有reload,reconfigure,restart/start/stop...不需要安装软件或配置服务器后使用reboot重新引导计算机

在Linux系统里SIGHUP信号被定义为刷新配置文件,有些程序没有提供reload参数,你可以给进程发送HUP信号,让它刷新配置文件,而不用restart.通过pkill,killall,kill 都可以发送HUP信号例如: pkill -HUP httpd

我的系列文档:

操作系统

Netkiller Linux 手札 Netkiller FreeBSD 手札 Netkiller Shell 手札 Netkiller Security 手札 Netkiller Web 手札 Netkiller Monitoring 手札 Netkiller Storage 手札 Netkiller Mail 手札

数据库

Netkiller Database 手札 Netkiller PostgreSQL 手札 Netkiller MySQL 手札 Netkiller NoSQL 手札 Netkiller LDAP 手札  

以下文档停止更新合并到 《Netkiller Linux 手札》

Netkiller Debian 手札 Netkiller CentOS 手札 Netkiller Multimedia 手札    

您可以使用iBook阅读当前文档

QQ群:128659835 请注明“读者”

目录

1. 自述
1.1. 系列文档
1.2. 作者简介
1.3. 写给读者
1. Logical Volume Manager (LVM)
1.1. 物理卷管理(physical volume)
1.1.1. pvcreate
1.1.2. pvdisplay
1.1.3. pvs
1.2. 卷组管理(Volume Group)
1.2.1. vgcreate
1.2.2. vgdisplay
1.2.3. vgs
1.2.4. vgchange
1.2.5. vgextend
1.2.6. vgreduce
1.3. 逻辑卷管理(logical volume)
1.3.1. lvcreate
1.3.1.1. snapshot
1.3.2. lvdisplay
1.3.3. lvremove
1.3.3.1. snapshot
1.4. Format
1.5. mount
1.5.1. lv
1.5.2. snapshot
1.6. snapshot backup
2. 文件传输
2.1. 跨服务器文件传输
2.1.1. scp - secure copy (remote file copy program)
2.1.2. nc - TCP/IP swiss army knife
2.2. wget - retrieves files from the web
2.2.1. 下载所有图片
2.2.2. mirror
2.2.3. reject
2.2.4. ftp 下载
2.3. axel - A light download accelerator - Console version
3. FTP (File Transfer Protocol)
3.1. lftp
3.1.1. pget
3.1.2. lftp 批处理
3.2. ncftp
3.2.1. batch command
3.2.2. ncftpget
3.2.3. ncftpput
3.3. FileZilla
3.4. vsftpd - The Very Secure FTP Daemon
3.4.1. 安装 vsftpd
3.4.1.1. Ubuntu 环境安装
3.4.1.2. CentOS 7 环境安装
3.4.2. ftp 帐号的shell权限
3.4.3. vsftpd 认证模块
3.4.3.1. pam_shells.so
3.4.3.2. virtual user
3.4.3.3. 虚拟用户权限
3.4.4. chroot
3.4.4.1. local user
3.4.4.2. /etc/vsftpd/chroot_list
3.4.4.3. test
3.4.5. FAT
3.4.5.1. vsftpd: refusing to run with writable root inside chroot()
3.5. ProFTPD + MySQL / OpenLDAP 用户认证
3.5.1. Proftpd + MySQL
3.5.2. Proftpd + OpenLDAP
3.6. Pure-FTPd + LDAP + MySQL + PGSQL + Virtual-Users + Quota
4. File Synchronize
4.1. rsync - fast remote file copy program (like rcp)
4.1.1. 安装Rsync与配置守护进程
4.1.1.1. install with source
4.1.1.2. install with aptitude
4.1.1.3. xinetd
4.1.1.4. CentOS 7 - systemctl
4.1.2. rsyncd.conf
4.1.3. rsync 参数说明
4.1.3.1. -n, --dry-run perform a trial run with no changes made
4.1.3.2. --bwlimit=KBPS limit I/O bandwidth; KBytes per second
4.1.3.3. -e, --rsh=COMMAND specify the remote shell to use
4.1.4. step by step to learn rsync
4.1.5. rsync examples
4.1.5.1. upload
4.1.5.2. download
4.1.5.3. mirror
4.1.5.4. rsync delete
4.1.5.5. backup to a central backup server with 7 day incremental
4.1.5.6. backup to a spare disk
4.1.5.7. mirroring vger CVS tree
4.1.5.8. automated backup at home
4.1.5.9. Fancy footwork with remote file lists
4.1.6. rsync for windows
4.1.7. 多进程 rsync 脚本
4.2. tsync
4.3. Unison File Synchronizer
4.3.1. local
4.3.2. remote
4.3.3. config
4.4. csync2 - cluster synchronization tool
4.4.1. server
4.4.2. node
4.4.3. test
4.4.4. Advanced Configuration
4.4.5. 编译安装
4.5. synctool
5. File Share
5.1. NFSv4
5.1.1. Ubuntu
5.1.1.1. NFSv4 server
5.1.1.2. NFSv4 client
5.1.2. CentOS
5.1.2.1. NFS Server Configuration
5.1.2.2. NFS Client Configuration
5.1.3. exports
5.1.3.1. Permission
5.1.3.2. Parameters
5.1.3.3. 实例参考
5.1.4. NFS For Windows
5.1.5. exportfs - maintain table of exported NFS file systems
5.2. Parallel NFS(pNFS)
5.3. Samba
5.3.1. install
5.3.1.1. Ubuntu
5.3.1.2. Samba
5.3.1.3. CentOS 7
5.3.1.4. firewall
5.3.1.5. SELinux Configuration
5.3.2. smb.conf
5.3.2.1. Security consideration
5.3.3. testparm - check an smb.conf configuration file for internal correctness
5.3.4. smbstatus - report on current Samba connections
5.3.5. smbpasswd - change a user's SMB password
5.3.6. nmblookup - NetBIOS over TCP/IP client used to lookup NetBIOS names
5.3.7. smbfs/smbmount/smbumount
5.3.8. smbclient - ftp-like client to access SMB/CIFS resources on servers
5.3.8.1. 显示共享目录
5.3.8.2. 访问共享资源
5.3.8.3. 用户登录
5.3.9. smbtar - shell script for backing up SMB/CIFS shares directly to UNIX tape drives
5.3.10. by Example
5.3.10.1. share
5.3.10.2. user
5.3.10.3. test
5.3.11. FAQ
5.3.11.1. smbd/service.c:make_connection_snum(1013)
6. Distributed File Systems
6.1. DRBD (Distributed Replicated Block Device)
6.1.1. disk and partition
6.1.2. Installation
6.1.3. configure
6.1.4. Starting
6.1.5. Using
6.2. Network Block Device protocol
6.2.1. nbd-server - Network Block Device protocol - server
6.2.2. nbd-client - Network Block Device protocol - client
6.3. GridFS
6.3.1. nginx-gridfs
6.3.2. lighttpd-gridfs
6.4. Moose File System
6.4.1. Master server installation
6.4.2. Backup server (metalogger) installation
6.4.3. Chunk servers installation
6.4.4. Users’ computers installation
6.4.5. Testing MFS
6.5. LizardFS
6.6. Hadoop - HDFS
6.6.1. 单机安装
6.6.2. 分布式安装
6.6.2.1. 准备工作
6.6.2.2. NameNode 配置名称节点
6.6.2.3. DataNode 配置数据节点
6.6.2.4. Hadoop UI (WEB界面)
6.6.2.5. 测试Hadoop
6.6.3. 二进制包安装
6.6.3.1. 安装 JRE
6.6.3.2. 安装 Hadoop
6.6.3.3. 创建用户
6.6.4. FAQ
6.6.4.1. hadoop-1.1.2-1.x86_64.rpm 包含哪些文件内容
6.7. Ceph
6.7.1. Installation on Ubuntu
6.7.2. Installation on CentOS
6.7.2.1. mon
6.7.2.2. mds
6.7.2.3. osd
6.7.2.4. client
6.7.2.5. RADOS Gateway
6.7.3. Block Devices
6.8. GlusterFS
6.8.1. glusterfs-server
6.8.2. glusterfs-client
6.8.3. Testing
6.8.4. RAID
6.8.4.1. Mirror
6.8.4.2. Strip
6.8.5. Filesystem Administration
6.8.6. CentOS 6.3
6.9. Lustre
6.10. MogileFS
6.11. Kosmos distributed file system (KFS)
6.12. BeeGFS - The Parallel Cluster File System
6.13. Coda
6.14. OpenAFS
7. Shared Storage
7.1. Oracle OCFS2
7.1.1. 安装
7.2. GFS2
7.3. fam & imon
8. Network Attached Storage(NAS 网络附加存储)
8.1. Network Storage - Openfiler
8.1.1. Accounts
8.1.2. Volumes
8.1.2.1. RAID
8.1.2.2. iSCSI
8.1.3. Quota
8.1.4. Shares
8.2. OpenMediaVault
8.3. FreeNAS
9. Backup / Restore
9.1. 备份策略
9.1.1. Incremental backup
9.1.2. Differential backup
9.2. dump / restore
9.3. Bacula, the Open Source, Enterprise ready, Network Backup Tool for Linux, Unix, Mac and Windows.
9.3.1. Install Backup Server
9.3.2. Install Backup Client
9.4. Amanda: Open Source Backup
9.5. Attic - 拥有重复数据删除技术的备份软件
9.5.1. 安装 Attic
9.5.2. 快速开始
9.6. SafeKeep
9.7. Opendedup
10. inotify
10.1. inotify-tools
10.2. Incron - cron-like daemon which handles filesystem events
10.2.1. incrontab - inotify cron table manipulator
10.2.2. 使用说明
10.2.2.1. mask 参数
10.2.2.2. command 参数
10.3. inotify-tools + rsync
10.4. pyinotify

表格清单

8.1. Volume Group Management

范例清单

4.1. examples
4.2. backup to a central backup server with 7 day incremental
4.3. backup to a spare disk
4.4. mirroring vger CVS tree
4.5. automated backup at home
4.6. Fancy footwork with remote file lists
4.7. /etc/csync2.cfg
6.1. nginx-gridfs
6.2. Mirror
6.3. Strip
comments powered by Disqus