slave pfs destruction fails initially - pfs-destroy of PFS#1 failed: Directory not empty

Siju George sgeorge.ml at gmail.com
Sun May 2 22:15:23 PDT 2010


On Sun, May 2, 2010 at 2:02 AM, Matthew Dillon
<dillon at apollo.backplane.com> wrote:
>
> :Yes I killed all mirror stream prosessess and cheked with ps auwx
> :
> :thanks
> :
> :--Siju
>
>    It returns that error when it is unable to completely clean out the
>    B-Tree for the PFS in question.  Normally this only happens if something
>    is writing to PFS while it is being destroyed, or if someone is CD'd
>    into the PFS (like at a shell prompt or something CD'd into it).
>
>    It can also happen if the PFS's B-Tree has a CRC error on one or
>    more entries.
>
>    Maybe try doing it from single-user or after a fresh reboot if you
>    can't find the process(es) CD'd into the PFS.
>

I found out that it gives the error in my case because there is a / at
the end of the pfs when I use tab for auto complete :-)


dfly-bkpsrv# hammer pfs-master projects-doc
Creating PFS #7 succeeded!
projects-doc
    sync-beg-tid=0x0000000000000001
    sync-end-tid=0x00000001e5d74e80
    shared-uuid=c1630b02-5671-11df-b715-011617202aa6
    unique-uuid=c1630b40-5671-11df-b715-011617202aa6
    label=""
    prune-min=00:00:00
    operating as a MASTER
    snapshots directory defaults to /var/hammer/<pfs>
dfly-bkpsrv# hammer pfs-destroy projects-doc/
You have requested that PFS#7 () be destroyed
This will irrevocably destroy all data on this PFS!!!!!
Do you really want to do this? y
This PFS is currently setup as a MASTER!
Are you absolutely sure you want to destroy it? y
Destroying PFS #7 () in  5 4 3 2 1.. starting destruction pass
pfs-destroy of PFS#7 failed: Directory not empty
dfly-bkpsrv# hammer pfs-destroy projects-doc
You have requested that PFS#7 () be destroyed
This will irrevocably destroy all data on this PFS!!!!!
Do you really want to do this? y
Destroying PFS #7 () in  5 4 3 2 1.. starting destruction pass
pfs-destroy of PFS#7 succeeded!
dfly-bkpsrv# hammer pfs-master projects-doc
Creating PFS #7 succeeded!
projects-doc
    sync-beg-tid=0x0000000000000001
    sync-end-tid=0x00000001e5d74e00
    shared-uuid=a7c559b1-5671-11df-b715-011617202aa6
    unique-uuid=a7c559ee-5671-11df-b715-011617202aa6
    label=""
    prune-min=00:00:00
    operating as a MASTER
    snapshots directory defaults to /var/hammer/<pfs>
dfly-bkpsrv# hammer pfs-destroy projects-doc
You have requested that PFS#7 () be destroyed
This will irrevocably destroy all data on this PFS!!!!!
Do you really want to do this? y
This PFS is currently setup as a MASTER!
Are you absolutely sure you want to destroy it? y
Destroying PFS #7 () in  5 4 3 2 1.. starting destruction pass
pfs-destroy of PFS#7 succeeded!






More information about the Users mailing list