Guest User

Untitled

a guest
Feb 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.91 KB | None | 0 0
  1. oopback Device (File) as storage
  2. We create a zero filled file for use as a loopback device for the Swift storage backend. Here we use the disk copy command to
  3. create a file named swift-disk and allocate a million 1KiB blocks (976.56 MiB) to it. So we have a loopback disk of approximately
  4. 1GiB. We can increase this size by modifying the seek value.
  5. sudo dd if=/dev/zero of=/srv/swift-disk bs=1024 count=0 seek=1000000
  6. We now create an xfs filesystem out of the partition or the loopback device we just created. For the loopback file, doing "file
  7. swift-disk" will give the details of the device. For the partition details, tune2fs utility can be used with "l" parameter.
  8. For the physical partition:
  9. sudo mkfs.xfs -i size=1024 /dev/sdb1
  10. sudo tune2fs -l /dev/sdb1 |grep -i inode
  11. For the loopback file:
  12. sudo mkfs.xfs -i size=1024 /srv/swift-disk
  13. file /srv/swift-disk
  14. swift-disk1: SGI XFS filesystem data (blksz 4096,
Add Comment
Please, Sign In to add comment