CALS NOTE

  • Home
  • Archives
  • Cheatsheets
  • rss
  • About
  • Friends
2018-01-02 Calvin Lam
Comments

Sparse file

Cli

Creation

1
2
3
4
5
6
7
8
# Mac OS / Unix
dd of=Stone.sparse bs=10g seek=1 count=0

# Linux
fallocate -l fallocate -l 10G Stone.sparse

#
truncate -s 10G Stone.sparse

Use case

You can delete a disk space holder when you disk out of space. So you should create it when you config a server.

Reference:

http://geek.serverpit.com/2017-12-21-fallocate.html

  • Cli
  • Filesystem
  • Linux
  • Mac
  • Spaceholder
  • Stone
  • SysOps
Newer
Verify checksum file
Older
Learning Roadmap 2018

CALS NOTE

© 2020 Calvin Lam
Modify from Apollo theme, designed by SANOGRAPHIX.NET
Powered by Hexo