Question about PFS default partition choice on mount
George
g.lister at nodeunit.com
Fri Apr 26 14:04:51 PDT 2019
On Fri, 26 Apr 2019 16:54:42 -0400
George <g.lister at nodeunit.com> wrote:
> Hi guys,
>
> I have a question on how to manage partitions with the DragonFly and
> Hammer2.
>
> My goal is to replicate a ZFS I had with FreeBSD so I would like to
> create individual PFSes for all my NFS exports so I can manage
> storage, snapshots, backups etc at that level.
>
> I installed 5.4.2 and choose to leave everything in the partition the
> same with the exception of making / 100GB and /build 100GB and
> dedicating the rest of my large disk to /exp so I ended up with:
>
> df -h:
> Filesystem Size Used Avail Capacity Mounted on
> serno/ZAD2RVKD.s1d 99.3G 637M 98.7G 1% /
> devfs 1024B 1024B 0B 100% /dev
> /dev/serno/ZAD2RVKD.s1a 1022M 186M 754M 20% /boot
> /dev/serno/ZAD2RVKD.s1e at DATA 99.3G 3072K 99.3G 0% /build
> /dev/serno/ZAD2RVKD.s1f at DATA 5303G 64.0K 5303G 0% /exp
> /build/usr.obj 99.3G 3072K 99.3G 0% /usr/obj
> /build/var.crash 99.3G 3072K 99.3G 0% /var/crash
> /build/var.cache 99.3G 3072K 99.3G 0% /var/cache
> /build/var.spool 99.3G 3072K 99.3G 0% /var/spool
> /build/var.log 99.3G 3072K 99.3G 0% /var/log
> /build/var.tmp 99.3G 3072K 99.3G 0% /var/tmp
> tmpfs 1926M 0B 1926M 0% /tmp
> procfs 4096B 4096B 0B 100% /proc
>
> I created myself a PFS like so:
>
> h2 pfs-create exp-backup
>
> hammer2 pfs-list
> Type ClusterId (pfs_clid) Label
> MASTER 0cbef96e-685a-11e9-8a8c-55bf647a66bb exp-backup
> MASTER 5ce0575e-6839-11e9-86d4-55bf647a66bb ROOT
> MASTER 5ce056a8-6839-11e9-86d4-55bf647a66bb LOCAL
>
> ... and then tried to mount it into my large partition allocation
> which fails with 'Invalid arguement' because the PFS label is not
> found
>
> mount_hammer2 /dev/serno/ZAD2RVKD.s1f at DATA@exp-backup /exp/backup/
> mount: : Invalid argument
>
> ls /dev/serno/
> ZAD2RVKD ZAD2RVKD.s1 ZAD2RVKD.s1a
> ZAD2RVKD.s1b ZAD2RVKD.s1d ZAD2RVKD.s1e
> ZAD2RVKD.s1f
>
> I am about to reinstall and put my /exp partition right after root
> and /build last and see if then I can mount in the larger partition as
> I want, but was wondering if there is something else I can do to
> end-up with a PFS being mounted on the right partition.
>
> Thanks in advance!
> George
>
>
This was missing:
mount_hammer2 /dev/serno/ZAD2RVKD.s1d at exp-backup /exp/backup/
df -h
...
/dev/serno/ZAD2RVKD.s1d at exp-backup 99.3G 637M 98.7G
1% /exp/backup
...
This is what tells me it went not where I wanted it to go...
Thanks.
George
More information about the Users
mailing list