created a pfs inside a pfs :-( what to do?

YONETANI Tomokazu qhwt.dfly at
Thu Sep 30 06:08:26 PDT 2010

On Thu, Sep 30, 2010 at 01:52:13PM +0530, Siju George wrote:
> I happened to run
> #hammer pfs-master sgeorge-home
> inside another pfs :-(
> now it shows as
> lrwxr-xr-x  1 root     100         10 Sep 30 13:43 sgeorge-home -> @@PFS00008

The sgeorge-home above is just a stale symlink and you can simply rm it.

The command has created a new PFS which you can access as /pfs/@@-1:00008,
assuming that this HAMMER filesystem is mounted as /pfs.

$ hammer pfs-status /pfs/@@-1:00008

should display the information of the PFS you've just created.

To destroy this PFS, first create a symlink to it, then pfs-destroy
on the symlink.

# ln -s @@-1:00008 /pfs/oops
# hammer pfs-destroy /pfs/oops

However, this:

# hammer pfs-destroy /pfs/@@-1:00008

left me with the PFS downgraded to slave and failed.  Upgrading this
to master, create a symlink to it, then destroying it also worked.

# hammer pfs-upgrade /pfs/@@-1:00008
# ln -s @@-1:00008 /pfs/oops
# hammer pfs-destroy /pfs/oops


More information about the Users mailing list