Menu Close

Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

5.2.4. 建​​​​​​​立​​​​​​​檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​

下​​​​​​​列​​​​​​​指​​​​​​​令​​​​​​​可​​​​​​​在​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​上​​​​​​​建​​​​​​​立​​​​​​​一​​​​​​​個​​​​​​​ GFS 檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​。​​​​​​​
[root@tng3-1 ~]#  gfs_mkfs -plock_nolock -j 1 /dev/volgroup01/striped_logical_volume
This will destroy any data on /dev/volgroup01/striped_logical_volume.

Are you sure you want to proceed? [y/n] y

Device:                    /dev/volgroup01/striped_logical_volume
Blocksize:                 4096
Filesystem Size:           492484
Journals:                  1
Resource Groups:           8
Locking Protocol:          lock_nolock
Lock Table:

Syncing...
All Done
下​​​​​​​列​​​​​​​指​​​​​​​令​​​​​​​會​​​​​​​將​​​​​​​邏​​​​​​​輯​​​​​​​卷​​​​​​​冊​​​​​​​掛​​​​​​​載​​​​​​​並​​​​​​​回​​​​​​​報​​​​​​​檔​​​​​​​案​​​​​​​系​​​​​​​統​​​​​​​磁​​​​​​​碟​​​​​​​空​​​​​​​間​​​​​​​上​​​​​​​的​​​​​​​使​​​​​​​用​​​​​​​量​​​​​​​。​​​​​​​
[root@tng3-1 ~]# mount /dev/volgroup01/striped_logical_volume /mnt
[root@tng3-1 ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      13902624   1656776  11528232  13% /
/dev/hda1               101086     10787     85080  12% /boot
tmpfs                   127880         0    127880   0% /dev/shm
/dev/volgroup01/striped_logical_volume
                       1969936        20   1969916   1% /mnt