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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Yazan Al-Sheyyab" <yazan@xxxxxxxxxx> 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@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@kokone tmp$ su
  Password: 
  root@kokone tmp# losetup /dev/loop0 test.gfs 
  root@kokone tmp# modprobe gfs
  root@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@kokone tmp# mount /dev/loop0 /mnt/loop0 
  root@kokone tmp# ls !$
  ls /mnt/loop0
  root@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@kokone tmp# 


-- 
  Ed L Cashin <ecashin@xxxxxxxxxx>


[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux