/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Administration/Linux/system/storage/partitioning.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2013-11-08 01:07:23 UTC
  • Revision ID: csa@dside.dyndns.org-20131108010723-gfaem1vwkt6262m1
virtualization mainly

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Partitioning
 
2
============
 
3
 - GPT partition table is required for large disks
 
4
    parted /dev/sdb
 
5
    mklabel gpt
 
6
    print
 
7
 
 
8
 
 
9
Fast Streaming
 
10
==============
 
11
 Requires file system with big extent support. The best option is XFS. Since Linux 3.2, Ext4 
 
12
 also supports 1MB blocks. 
 
13
 
 
14
 Ext4
 
15
 ----
 
16
 However, at the moment of writing Ext4 is limited to 16GB. The  disks created with 8192 byte 
 
17
 blocks are not mountable at the moment
 
18
    mkpart primary 0 32.0TB
 
19
    mkfs.ext4 /dev/sdb1 -b 8192
 
20
 
 
21
    # Creating Ext4 without journal
 
22
    mkfs.ext4 -O ^has_journal  /dev/md2p1 
 
23
 
 
24
 XFS
 
25
 ----
 
26
    - Mmetadata on SSD
 
27
    mkfs.xfs -l logdev=/dev/md0,size=64m /dev/sdb
 
28
    mount -t xfs -o logdev=/dev/md0 /dev/sdb /mnt/raid/
 
29
    mount -o logdev=/dev/md0,noatime,allocsize=1GiB,largeio,swalloc,delaylog,nobarrier  /dev/sdb /mnt/raid/
 
30
 
 
31
    - There is problems with file deletion (deadlock) and the realtime partition
 
32
    support is claimed unstable as of January 2011.
 
33
    mkfs.xfs -r rtdev=/dev/sdb2,extsize=1g /dev/sdb1
 
34
 
 
35
    - Optimal options, taking into the account raid configuration
 
36
    mkfs -t xfs -d su=64k,sw=14 /dev/device
 
37
    mount -o noatime,allocsize=1GiB,largeio,swalloc,delaylog,nobarrier  /dev/sdd1 /mnt/fast/
 
38
    mount /dev/sdd2 /mnt/raid/
 
39
 
 
40