Network
Network
Network
A disk quota is a limit set by a system administrator that restricts certain aspects of file system
usage on modern operating systems. The function of using disk quotas is to allocate limited disk
space in a reasonable way.
There are also a few other things that you should know:
In Windows, disk quotas can be set up on drives or partitions that are formatted using the NTFS
file system. You cannot use them on a volume that is formatted using FAT32 or exFAT because
these file systems do not offer support for this feature.
You can set disk quotas and enforce quota limits only if you have a Windows account that has
administrative privileges. Standard users cannot set disk quotas.
You can set disk quotas for disks or partitions, but you cannot set disk quotas on folders.
If you have multiple drives or partitions on your Windows computer, you must set disk quota
limits for each, individually. You cannot set disk quotas for multiple disks or partitions
simultaneously.
Step 2 We will need to add the usrquota option to the line that corresponds to our
storage partition. If you also want to enable disk quotas for groups, you can include
the grpquota option as well. For example:
Step 3
Next, you will need to remount the file system for the changes to take effect.
Alternative, rebooting the system will also work.
Step 4
Next, let’s create a quota index for the mount point. In our case, this would be /home.
We will include options -c to create a new index, -m so to avoid mounting the partition
as read only, and -u to specify that we want to create a quota for users. You can also
append option -g if you want to make a group quota.
Step 6
Then, we will use the edquota command to begin putting quotas for individual users.
Specify the name of the user that you would like to edit the quotas for after your
command. In this example, we will edit the disk quota for user ‘linuxconfig’:
Step7
With our soft and hard limits set, we can control the grace period of our soft limits
with the following command:
Example 1
Example 2
Example 3
Example 5
Example 6
Step2 Right-click on the NTFS drive you want to enable disk quotas for, and select Properties from
the context menu.
Step5 Turn on the Deny disk space to users exceeding quota limit option if needed.
Step6 Under Select the default quota limit for new users on this volume, select Limit disk space,
and specify the amount of space you want for the limit and before a warning is shown to the user.
The goal of LVM is to facilitate managing the sometimes conflicting storage needs of
multiple end users. Using the volume management approach, the administrator is not
required to allocate all disk storage space at initial setup. Some can be held in reserve
for later allocation. The sysadmin can use LVM to segment logically sequential data
or combine partitions, increasing throughput and making it simpler to resize and move
storage volumes as needed. Storage volumes may be defined for various user groups
within the enterprise, and new storage can be added to a particular group when desired
without requiring user files to be redistributed to make the most efficient use of space.
When old drives are retired, the data they contain can be transitioned to new drives --
ideally without disrupting availability of service for end users.
RAID (redundant array of independent disks) is a way of storing the same data in different places
on multiple hard disks or solid-state drives (SSDs) to protect data in the case of a drive failure.
There are different RAID levels, however, and not all have the goal of providing redundancy.
A redundant array of independent disks (RAID) is a common system for high-volume data
storage at the server level. RAID systems use many small-capacity disk drives to store large
amounts of data and to provide increased reliability and redundancy. Such an array appears to the
computer as a single logical unit consisting of multiple disk drives.
RAID storage can be done in a number of ways. Some RAID types emphasize performance,
others reliability, fault tolerance or error correction. Which type you choose depends on what
you're trying to accomplish.
Common to all RAID systems, however - and their real advantage - is the "hot-swapping"
ability: You can pull out a defective drive and insert a new one in its place. For most RAID
types, data on a failed disk can be rebuilt automatically without the server or the system ever
having to be shut down.
On windows:
Step 1. Press+key combo to start Run. Then type “diskpart” in the box and pressto open
Command Prompt.
Step 2. Input following commands in order and each command is followed by.
list disk
select disk X (X is target hard drive)
create partition extended (or create partition extended size=102400, which means creating an
Extended partition with 100GB in size)
create partition logical size=81920
assign letter=F (this means you’ll create a Logical volume with drive letter F of 80GB size)
exit
For Ubuntu:
# fdisk -l
1. Now partitions both the disks /dev/xvdc and /dev/xvdd using fdisk command as shown.
# fdisk /dev/xvdc
# fdisk /dev/xvdd
Use n to create the partition and save the changes with w command.
2. After partitioning, use the following command to verify the partitions.
# fdisk -l
# pvcreate /dev/xvdc1
# pvcreate /dev/xvdd1
5. Now use “vgdisplay” to list all details about the VG’s in the system.
# vgdisplay
OR
# vgdisplay testvg
6. Create Logical Volumes (LV).
7. Now use “lvdisplay” to list all details about the Logical volumes available in the
system.
# lvdisplay
OR
# lvdisplay testvg
# mkfs.ext4 /dev/testvg/lv_data1
# mkfs.ext4/dev/testvg/lv_data2
1. Software. A special OS driver looks after physical media, and the OS works with a virtual
combined disk space.
2. Hardware. A special controller looks after the physical media, the OS works with a virtual
combined disk space.
1. Start the installation of Ubuntu, choose manual disk partitioning (). ...
2. Create an (sda) partitioning of 512MB on the first disk:
3. Choose the partitioning type – RAID:
4. Complete by clicking "Done setting up the partition": ...
5. Here is what we get:
Or
Changes will remain in memory only, until you decide to write them.
Partition type
Syncing disks.
$ cat /proc/mdstat
>
ARRAY /dev/md/mrjn...
$ sudo update-initramfs -u
RAID 1 is a mirror which basically means the data is copied into both disks. RAID 5 is
striped, meaning the data is spread across the drives with parity bits on each to allow
the RAID to rebuild data from a lost disk.