[Linux-cluster] gfs space usage (was Re: a question about gfs file system)

Ed L Cashin ecashin at coraid.com
Tue Mar 1 15:13:12 UTC 2005


"Yazan Al-Sheyyab" <yazan at ccs.com.jo> writes:

> hello everybody,
>
>  how much space that gfs file system can take from a partion ?
>
>  i mean that if i have a 500 MB partition and want to format it as gfs file
> system , so how much space will remain for me in this partition after format
> it as gfs file system?

You can try it on a local file.  As you can see below, there's not
much left after adding three default-sized journals.


  ecashin at kokone tmp$ /sbin/mkfs.gfs -j 3 -p lock_nolock test.gfs 
  This will destroy any data on test.gfs.
  
  Are you sure you want to proceed? [y/n] y
  
  Device:                    test.gfs
  Blocksize:                 4096
  Filesystem Size:           29652
  Journals:                  3
  Resource Groups:           8
  Locking Protocol:          lock_nolock
  Lock Table:                
  
  Syncing...
  All Done
  
  ecashin at kokone tmp$ su
  Password: 
  root at kokone tmp# losetup /dev/loop0 test.gfs 
  root at kokone tmp# modprobe gfs
  root at kokone tmp# mount /dev/loop0 /mnt/
  FC2-i386-disc1             mooch-i386-disc1
  FC2-i386-disc2             mooch-i386-disc1-bootdisk
  FC2-i386-disc3             mooch-i386-disc2
  e15.3                      mooch-i386-disc3
  ed-gfs                     mooch-i386-stage2
  file                       netstg2.img
  loop0                      sah
  root at kokone tmp# mount /dev/loop0 /mnt/loop0 
  root at kokone tmp# ls !$
  ls /mnt/loop0
  root at kokone tmp# df -h
  Filesystem            Size  Used Avail Use% Mounted on
  /dev/hda3              71G   40G   29G  59% /
  tmpfs                 236M     0  236M   0% /dev/shm
  /dev/hda1             942M   37M  858M   5% /boot
  /dev/loop0            116M   20K  116M   1% /mnt/loop0
  root at kokone tmp# 


-- 
  Ed L Cashin <ecashin at coraid.com>




More information about the Linux-cluster mailing list