さくらのレンタルサーバ メモ

FreeBSD 13 ufs quota

% df -h
Filesystem      Size    Used   Avail Capacity  Mounted on
/dev/vtbd0p2     19G    5.0G     13G    28%    /
devfs           1.0K    1.0K      0B   100%    /dev
/dev/vtbd0p4     29G    3.2G     23G    12%    /var
/dev/vtbd1      3.9T    1.1T    2.5T    30%    /home

% cat /etc/fstab 
# Device        Mountpoint      FStype  Options Dump    Pass#
/dev/vtbd0p2    /               ufs     rw,acls      1       1
/dev/vtbd0p3    none            swap    sw      0       0
/dev/vtbd0p4    /var            ufs     rw,userquota,noexec,nosuid      2       2
/dev/vtbd1	/home		ufs	rw,userquota,acls,nosuid,noatime	2	2

userquotaで制限

% quota -h
Disk quotas for user xxxxxxxx (uid 1053): 
Filesystem        usage    quota   limit   grace  files   quota  limit   grace
/var               4.0K     1.0G    1.0G              1  100000 100000        
/home              8.1G     900G    900G          54515  5000000 5000000

vtbd1 はパーティションなし

% gpart show
=>       40  209715120  vtbd0  GPT  (100G)
         40       1024      1  freebsd-boot  (512K)
       1064   41943040      2  freebsd-ufs  (20G)
   41944104  104857600      3  freebsd-swap  (50G)
  146801704   62913456      4  freebsd-ufs  (30G)

% geom disk list
Geom name: vtbd0
Providers:
1. Name: vtbd0
   Mediasize: 107374182400 (100G)
   Sectorsize: 512
   Mode: r3w3e5
   descr: (null)
   ident: (null)
   rotationrate: unknown
   fwsectors: 63
   fwheads: 16

Geom name: vtbd1
Providers:
1. Name: vtbd1
   Mediasize: 4398046511104 (4.0T)
   Sectorsize: 512
   Mode: r1w1e1
   descr: (null)
   ident: (null)
   rotationrate: unknown
   fwsectors: 63
   fwheads: 16

FreeBSD のマシンのディスクを調べる方法 2007