Home | Mirror | Search

第 10 章 File System

目錄

1. EXT4
1.1. install
1.2. format
1.3. label
1.4. mount/umount
1.5. LVM 卷
2. LVM
3. zfs
4. btrfs
4.1. Mount Btrfs
4.1.1. Mount Snap
4.1.2. fstab
4.1.2.1. btrfs-show
4.1.2.2. /etc/fstab
4.2. btrfsctl
4.2.1. Resizes the filesystem
4.2.2. Snapshot
4.3. btrfs-vol
4.4. btrfs-convert
4.5. btrfsck
4.6. btrfs-debug-tree
5. iSCSI
5.1. GFS
6. GFS - Cluster Storage
7. glusterfs

1. EXT4

1.1. install

# yum install e4fsprogs
			

1.2. format

# mkfs.ext4 /dev/sda2
			

1.3. label

# e4label /dev/sda2 /www

# mkdir /www

# cat /etc/fstab |grep ext4
LABEL=/www              /www                    ext4    defaults        1 2
			

1.4. mount/umount

# mount /www
# umount /www
			

1.5. LVM 卷

# mkfs.ext4 /dev/VolGroup00/LogVol02

[root@images ~]# cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
/dev/VolGroup00/LogVol02 /images                 ext4    defaults        1 2
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

# mount -a
			
comments powered by Disqus