31 Aralık 2015 Perşembe

Linux storage komutlari

Linux disk durumunu goruntuleme
               
                disk free komutu
                # df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda1        77G  5.4G   68G   8% /
    tmpfs           3.9G     0  3.9G   0% /dev/shm
    /dev/sda3       374G  6.6G  349G   2% /opt/inseptra
               
                disk usage
                komutu dosyanin yada dizinin diskteki kapladigi boyutu sorgular
                # du -sh test.sh
4.0K    test.sh
               
                ulasilabilir aygitlari gorutuleme
                # fdisk -l

Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e7669

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      512000   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              64        7833    62401536   8e  Linux LVM

Disk /dev/mapper/vg_imc-lv_root: 52.3 GB, 52344913920 bytes
255 heads, 63 sectors/track, 6363 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

               
                    acilista sisteme baglanmis dosyalar hakkinda bilgi verir
                    /etc/fstab
# Created by anaconda on Wed Feb 25 17:18:17 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_imc-lv_root /                       ext4    defaults        1 1
UUID=d7d31050-7663-4ced-9409-27d7e0a68e66 /boot                   ext4    defaults        1 2
/dev/mapper/vg_imc-lv_home /home                   ext4    defaults        1 2
/dev/mapper/vg_imc-lv_swap swap                    swap    defaults        0 0
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



                    # mount
/dev/mapper/vg_imc-lv_root on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
/dev/mapper/vg_imc-lv_home on /home type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

Hiç yorum yok:

Yorum Gönder