saio truncate instead of dd (for reals)
Changing that complex dd to a functionally equivalent truncate that's easier to read and modify. DocImpact Change-Id: I64404318364608e62a1d80f6a0550271eb4cd03a
This commit is contained in:
parent
c1964e5f6a
commit
c37954d935
@ -89,8 +89,8 @@ Using a loopback device for storage
|
|||||||
If you want to use a loopback device instead of another partition, follow these instructions.
|
If you want to use a loopback device instead of another partition, follow these instructions.
|
||||||
|
|
||||||
#. `mkdir /srv`
|
#. `mkdir /srv`
|
||||||
#. `dd if=/dev/zero of=/srv/swift-disk bs=1024 count=0 seek=1000000`
|
#. `truncate -s 1GB /srv/swift-disk`
|
||||||
(modify seek to make a larger or smaller partition)
|
(modify size to make a larger or smaller partition)
|
||||||
#. `mkfs.xfs -i size=1024 /srv/swift-disk`
|
#. `mkfs.xfs -i size=1024 /srv/swift-disk`
|
||||||
#. Edit `/etc/fstab` and add
|
#. Edit `/etc/fstab` and add
|
||||||
`/srv/swift-disk /mnt/sdb1 xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0`
|
`/srv/swift-disk /mnt/sdb1 xfs loop,noatime,nodiratime,nobarrier,logbufs=8 0 0`
|
||||||
|
Loading…
Reference in New Issue
Block a user