Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

Netkiller Linux Storage 手札

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

Mr. Neo Chan, 陳景峯(BG7NYT)


中國廣東省深圳市龍華新區民治街道溪山美地
518131
+86 13113668890


文檔創建日期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 Virtualization 手札

以下文檔停止更新合併到 《Netkiller Linux 手札》

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

目錄

1. 自述
1.1. 系列文檔
1.2. 作者簡介
1.3. 寫給讀者
1.4. 文檔下載
1.5. 打賞(Donations)
1.5.1. 微信(Wechat)
1.5.2. 支付寶(Alipay)
1.5.3. PayPal Donations
1.5.4. 銀行(Bank)
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. Ceph
6.6.1. Installation on Ubuntu
6.6.2. Installation on CentOS
6.6.2.1. mon
6.6.2.2. mds
6.6.2.3. osd
6.6.2.4. client
6.6.2.5. RADOS Gateway
6.6.3. Block Devices
6.7. GlusterFS
6.7.1. glusterfs-server
6.7.2. glusterfs-client
6.7.3. Testing
6.7.4. RAID
6.7.4.1. Mirror
6.7.4.2. Strip
6.7.5. Filesystem Administration
6.7.6. CentOS 6.3
6.8. Lustre
6.9. MogileFS
6.10. Kosmos distributed file system (KFS)
6.11. Hadoop - HDFS
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