SOLVED add disk with quotas in fstab centos 7/ cloudlinux 7

[email protected]

Active Member
PartnerNOC
Aug 6, 2018
32
3
8
india
cPanel Access Level
Root Administrator
Hi,

i had 2 8tb second home1 and home2 disk. but i did't add them fstab could you help me in adding them the 2 disk to fstab and enable quotas.

here is presetn fsatb

Code:
proc /proc proc defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
# /dev/nvme0n1p1 during Installation (RescueSystem)
UUID=14640697-68da-42c5-91f1-7fa14059e003 none swap sw 0 0
# /dev/nvme0n1p2 during Installation (RescueSystem)
UUID=9209cb38-f9a1-489a-a956-4ec92ccfc663 /boot ext3 defaults 0 0
# /dev/nvme0n1p3 during Installation (RescueSystem)
UUID=afb04b62-f6fb-4270-b626-fe51be6443bf       /       ext4    usrjquota=quota.user,jqfmt=vfsv0        0       0
and here is my disk confuguration with fdsik -l


Code:
Disk /dev/nvme0n1: 512.1 GB, 512110190592 bytes, 1000215216 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x8d3eb52c

        Device Boot      Start         End      Blocks   Id  System
/dev/nvme0n1p1            2048    67110911    33554432   82  Linux swap / Solaris
/dev/nvme0n1p2        67110912    71305215     2097152   83  Linux
/dev/nvme0n1p3        71305216  1000213167   464453976   83  Linux
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sdb: 8001.6 GB, 8001563222016 bytes, 15628053168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
Disk identifier: 05803F08-145C-44D1-BDFE-37D82EB75670


#         Start          End    Size  Type            Name
 1         2048  15628053134    7.3T  Linux filesyste
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.

Disk /dev/sda: 8001.6 GB, 8001563222016 bytes, 15628053168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
Disk identifier: E9EA92D7-9EDE-4395-B7DB-626739DE639A


#         Start          End    Size  Type            Name
 1         2048  15628053134    7.3T  Linux filesyste

Code:
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p3  435G   39G  374G  10% /
devtmpfs         32G     0   32G   0% /dev
tmpfs            32G   19M   32G   1% /dev/shm
tmpfs            32G  5.2M   32G   1% /run
tmpfs            32G     0   32G   0% /sys/fs/cgroup
/dev/nvme0n1p2  2.0G  335M  1.5G  19% /boot
/dev/sda1       7.3T  169G  6.7T   3% /home1
/dev/sdb1       7.3T  704G  6.2T  11% /home2
tmpfs           6.3G     0  6.3G   0% /run/user/0
tmpfs           6.3G     0  6.3G   0% /run/user/1358
tmpfs           6.3G     0  6.3G   0% /run/user/1218
tmpfs           6.3G     0  6.3G   0% /run/user/1360
tmpfs           6.3G     0  6.3G   0% /run/user/1084
and df -h

Thank you