Filesystem: Difference between revisions

From 太極
Jump to navigation Jump to search
 
Line 45: Line 45:
* [https://www.linuxserver.io/blog/2019-05-14-getting-started-with-zfs-on-linux Getting started with ZFS on Linux]
* [https://www.linuxserver.io/blog/2019-05-14-getting-started-with-zfs-on-linux Getting started with ZFS on Linux]
* ZFS pool from [https://youtu.be/AP61_ETd2GE?si=eRjWUTa6IQ5DTme2&t=106 Setting Up NAS Server On Proxmox]. ZFS is different from other types of storage like Directory, LVM, etc.
* ZFS pool from [https://youtu.be/AP61_ETd2GE?si=eRjWUTa6IQ5DTme2&t=106 Setting Up NAS Server On Proxmox]. ZFS is different from other types of storage like Directory, LVM, etc.
** [https://youtu.be/AP61_ETd2GE?si=5woS9OYaS6FUEtfa&t=867 It is easy to increase the volume]. '''LXC''' -> Resources (VM does not have the "Resources" option) -> Root Disk -> Volume Action -> Resize (increase).


= COW (copy on write) file system =
= COW (copy on write) file system =

Latest revision as of 11:14, 9 April 2024

File systems

squashfs

squashfs is a heavy-compression based read-only filesystem that is capable of compressing 2 to 3 GB of data onto a 700MB. Linux liveCD are built using squashfs. These CDs make use of a read-only compressed filesystem which keeps the root filesystem on a compressed file. It can be loopback mounted and loads a complete Linux env. Thus when some file are required by processes, they are decompressed and loaded onto the RAM and used.

# create a squashfs file
sudo mksquashfs /etc test.squashfs 

# mount the squashfs file 
mkdir /mnt/squash
mount -o loop compressedfs.squashfs /mnt/squash
# you can acess the contents at /mnt/squashfs

# exclude files 
sudo mksquashfs /etc test.squashfs -e /etc/passwd /etc/shadow
# or specify a list of exclude files given in a file
cat excludelist  # /etc/passwd
sudo mksquashfs /etc test.squashfs -ef excludelist

Btrfs

ZFS

COW (copy on write) file system

The cow filesystem was found on xubuntu live CD. See http://en.wikipedia.org/wiki/Copy-on-write

How To Protect Your Server Against the Dirty COW Linux Vulnerability (10/21/2016)

Inode (index node)