Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oopback Device (File) as storage
- 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
- 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
- 1GiB. We can increase this size by modifying the seek value.
- sudo dd if=/dev/zero of=/srv/swift-disk bs=1024 count=0 seek=1000000
- We now create an xfs filesystem out of the partition or the loopback device we just created. For the loopback file, doing "file
- swift-disk" will give the details of the device. For the partition details, tune2fs utility can be used with "l" parameter.
- For the physical partition:
- sudo mkfs.xfs -i size=1024 /dev/sdb1
- sudo tune2fs -l /dev/sdb1 |grep -i inode
- For the loopback file:
- sudo mkfs.xfs -i size=1024 /srv/swift-disk
- file /srv/swift-disk
- swift-disk1: SGI XFS filesystem data (blksz 4096,
Add Comment
Please, Sign In to add comment