In most of the situations you would simply create a loopback device using “losetup” and mount it using the “-o loopback” options. But if you want to create a loopback file, want to partition it, and finally mount a subpartition, this option can not be used. Let see how you can create partitions inside a […]
Archives for March 2018
How to create virtual block device (loop device/filesystem) in Linux
Linux supports a special block device called the loop device, which maps a normal file onto a virtual block device. This allows for the file to be used as a “virtual file system” inside another file. With Linux it’s possible to create a file-system inside a single file. These storage devices are available as device […]
How To Open A Port In CentOS / RHEL 7
A TCP/IP network connection may be either blocked, dropped, open, or filtered. These actions are generally controlled by the IPtables firewall the system uses and is independent of any process or program that may be listening on a network port. This post will outline the steps to open a port required by a application. For […]
How to use “btrfs device” comamnd to add/delete device to/from btrfs filesystem
Btrfs is an open-source, general-purpose file system for Linux. The name derives from the use of B-trees to store internal file system structures. Different names are used for the file system, including “Butter F S” and “B-tree F S.” Development of Btrfs began at Oracle in 2007, and now a number of companies (including Red […]
How to use “btrfs scrub” command to manage scrubbing on Btrfs file systems
You can initiate a check of the entire file system by triggering a file system scrub job. The scrub job runs in the background by default and scans the entire file system for integrity. It automatically attempts to report and repair any bad blocks that it finds along the way. Instead of going through the […]
Linux OS Service ‘xendomains’
The xendomains service automatically starts, stops, and migrates Oracle VM clients (domU) as the Oracle VM server (dom0) boots or shuts down. In essence, the xendomains service automatically issues a series of xm commands to ensure the proper Oracle VM clients are started and stopped as the dom0 server is started or stopped. No daemons […]
Features of the “Btrfs” Filesystem
Btrfs is an open-source, general-purpose file system for Linux. The name derives from the use of B-trees to store internal file system structures. Different names are used for the file system, including “Butter F S” and “B-tree F S.” Development of Btrfs began at Oracle in 2007, and now a number of companies (including Red […]
How to Tune Btrfs Filesystem for Better Performance
Btrfs is a filesystem which is very new and is still under development and benchmarking phase. As far as performance is concerned usually it doesn’t require much to do with because it works good with the default options. 1. Btrfs’s performance improves with use of ssd. Btrfs is SSD-aware and exploits TRIM/Discard to allow the […]
How to Convert Ext File Systems to Btrfs
btrfs or Butter FS is a filesystem and has some interesting features: One can have FS snapshots. It is like a freeze of the filesystem at some point of time. btrfs is a extent-based filesystem. This means there are no lists of pointers. btrfs tracks contiguous blocks. btrfs makes checksums of data and metadata. Therefore […]
“btrfs” command examples to Create and Manage Btrfs File System
Btrfs is an open-source, general-purpose file system for Linux. The name derives from the use of B-trees to store internal file system structures. Different names are used for the file system, including “Butter F S” and “B-tree F S.” Development of Btrfs began at Oracle in 2007, and now a number of companies (including Red […]