No free discspace after deleting files

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

No free discspace after deleting files

Marco Prause
Hi all,

I met an interesting problem while deleting files that makes me curious.

After deleting two files for preparing an update in a flashrd-setup
(openbsd.vnd + bsd) I would have expected the ~1,2 GB beeing freed.

The files are gone - so far so good, but the disc space is not free.

I know this behaviour, if a process is still sitting on the file, but
with fstat I can't see any process or open file handler.

Now I'm just curious if I miss something and probably I just need a bit
more coffee ;-)


# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/rd0a      1.8M    1.4M    419K    77%    /
/dev/sd0a      1.8G    872M    878M    50%    /flash
/dev/vnd0e    15.4M    5.0M   10.3M    32%    /etc
/dev/vnd0f    42.1M   14.6M   27.0M    35%    /sbin
/dev/vnd0a    48.3M    6.0K   47.8M     0%    /root
/dev/vnd0d    16.4M    5.8M   10.4M    36%    /bin
/dev/vnd0g     1.1G    735M    347M    68%    /usr
tmpfs         64.0M   61.5M    2.5M    96%    /var
tmpfs         50.0M    4.0K   50.0M     0%    /home
tmpfs         16.0M    4.0K   16.0M     0%    /tmp
/dev/sd0d     10.9G    616M    9.7G     6%    /data
#
# du -hs /flash/
68.9M   /flash/
#
# mount
/dev/rd0a on / type ffs (local)
/dev/sd0a on /flash type ffs (local, noatime, nodev, nosuid)
/dev/vnd0e on /etc type ffs (local, noatime, nodev, nosuid, read-only)
/dev/vnd0f on /sbin type ffs (local, noatime, nodev, read-only)
/dev/vnd0a on /root type ffs (local, noatime, nodev, nosuid, read-only)
/dev/vnd0d on /bin type ffs (local, noatime, nodev, nosuid, read-only)
/dev/vnd0g on /usr type ffs (local, noatime, nodev, read-only)
tmpfs on /var type tmpfs (local, noatime, nodev, nosuid)
tmpfs on /home type tmpfs (local, noatime, nodev, nosuid)
tmpfs on /tmp type tmpfs (local, noatime, nodev, nosuid)
/dev/sd0d on /data type ffs (local)
#
# iostat 1 10
      tty              sd0               rd0               sd1
    sd2             cpu
 tin tout  KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t
t/s  MB/s  us ni sy in id
   0    1 15.28    0  0.00   0.00    0  0.00   6.09    0  0.00   0.00
0  0.00   0  0  1  1 98
   0  294  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   0  0  1  3 96
   0   97  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   0  0  2  3 95
   0   97  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   0  0  1  1 98
   0   98  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   0  0  0  0100
   0   96  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   1  0  1  2 96
   0   98  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   0  0  0  1 99
   0   97  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   0  0  2  1 97
   0   97  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   0  0  0  1 99
   0   96  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
0  0.00   2  0  0  3 95
#
# uname -a

OpenBSD gw.idst 5.9 FLASHRD.MP#2 amd64
#
# dmesg

OpenBSD 5.9-stable (FLASHRD.MP) #2: Wed Aug 17 17:48:07 CEST 2016

[hidden email]:/usr/src/sys/arch/amd64/compile/FLASHRD.MP
real mem = 2098520064 (2001MB)
avail mem = 2028883968 (1934MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7e16d820 (6 entries)
bios0: vendor coreboot version "SageBios_PCEngines_APU-45" date 04/05/2014
bios0: PC Engines APU
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP SPCR HPET APIC HEST SSDT SSDT SSDT
acpi0: wakeup devices AGPB(S4) HDMI(S4) PBR4(S4) PBR5(S4) PBR6(S4)
PBR7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) PIBR(S4) UOH1(S3) UOH2(S3)
UOH3(S3) UOH4(S3) UOH5(S3) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD G-T40E Processor, 1000.13 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD G-T40E Processor, 1000.00 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
64b/line 16-way L2 cache
cpu1: 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 21, 24 pins
acpiprt0 at acpi0: bus -1 (AGPB)
acpiprt1 at acpi0: bus -1 (HDMI)
acpiprt2 at acpi0: bus 1 (PBR4)
acpiprt3 at acpi0: bus 2 (PBR5)
acpiprt4 at acpi0: bus 3 (PBR6)
acpiprt5 at acpi0: bus -1 (PBR7)
acpiprt6 at acpi0: bus 5 (PE20)
acpiprt7 at acpi0: bus -1 (PE21)
acpiprt8 at acpi0: bus -1 (PE22)
acpiprt9 at acpi0: bus -1 (PE23)
acpiprt10 at acpi0: bus 0 (PCI0)
acpiprt11 at acpi0: bus 4 (PIBR)
acpicpu0 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
acpibtn0 at acpi0: PWRB
cpu0: 1000 MHz: speeds: 1000 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), msi, address 00:0d:b9:3c:b2:74
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ppb1 at pci0 dev 5 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
re1 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), msi, address 00:0d:b9:3c:b2:75
rgephy1 at re1 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ppb2 at pci0 dev 6 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
re2 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
(0x2c00), msi, address 00:0d:b9:3c:b2:76
rgephy2 at re2 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 2 int
19, AHCI 1.2
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, SATA SSD, S9FM> SCSI3 0/direct fixed
t10.ATA_SATA_SSD_81B5074C1B6500077131
sd0: 15272MB, 512 bytes/sector, 31277232 sectors, thin
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci4 at ppb3 bus 4
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci5 at ppb4 bus 5
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x52
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
umass0 at uhub0 port 5 configuration 1 interface 0 "TOSHIBA External USB
3.0" rev 2.10/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <TOSHIBA, External USB 3.0, 0> SCSI4
0/direct fixed serial.0480a00e31206004642F
sd1: 476940MB, 512 bytes/sector, 976773168 sectors
umass1 at uhub2 port 1 configuration 1 interface 0 "Generic Flash Card
Reader/Writer" rev 2.01/1.00 addr 2
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd2 at scsibus3 targ 1 lun 0: <Multiple, Card Reader, 1.00> SCSI2
0/direct removable serial.058f6366058F63666485
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b



Kind regards,
Marco

Reply | Threaded
Open this post in threaded view
|

Re: No free discspace after deleting files

Raul Miller
Do any processes have those files open? Did you have any hard links to
those files from other names?

The disk space cannot be removed until all references to those files
are removed.

--
Raul

On Tue, Sep 27, 2016 at 2:24 AM, Marco Prause <[hidden email]> wrote:

> Hi all,
>
> I met an interesting problem while deleting files that makes me curious.
>
> After deleting two files for preparing an update in a flashrd-setup
> (openbsd.vnd + bsd) I would have expected the ~1,2 GB beeing freed.
>
> The files are gone - so far so good, but the disc space is not free.
>
> I know this behaviour, if a process is still sitting on the file, but
> with fstat I can't see any process or open file handler.
>
> Now I'm just curious if I miss something and probably I just need a bit
> more coffee ;-)
>
>
> # df -h
> Filesystem     Size    Used   Avail Capacity  Mounted on
> /dev/rd0a      1.8M    1.4M    419K    77%    /
> /dev/sd0a      1.8G    872M    878M    50%    /flash
> /dev/vnd0e    15.4M    5.0M   10.3M    32%    /etc
> /dev/vnd0f    42.1M   14.6M   27.0M    35%    /sbin
> /dev/vnd0a    48.3M    6.0K   47.8M     0%    /root
> /dev/vnd0d    16.4M    5.8M   10.4M    36%    /bin
> /dev/vnd0g     1.1G    735M    347M    68%    /usr
> tmpfs         64.0M   61.5M    2.5M    96%    /var
> tmpfs         50.0M    4.0K   50.0M     0%    /home
> tmpfs         16.0M    4.0K   16.0M     0%    /tmp
> /dev/sd0d     10.9G    616M    9.7G     6%    /data
> #
> # du -hs /flash/
> 68.9M   /flash/
> #
> # mount
> /dev/rd0a on / type ffs (local)
> /dev/sd0a on /flash type ffs (local, noatime, nodev, nosuid)
> /dev/vnd0e on /etc type ffs (local, noatime, nodev, nosuid, read-only)
> /dev/vnd0f on /sbin type ffs (local, noatime, nodev, read-only)
> /dev/vnd0a on /root type ffs (local, noatime, nodev, nosuid, read-only)
> /dev/vnd0d on /bin type ffs (local, noatime, nodev, nosuid, read-only)
> /dev/vnd0g on /usr type ffs (local, noatime, nodev, read-only)
> tmpfs on /var type tmpfs (local, noatime, nodev, nosuid)
> tmpfs on /home type tmpfs (local, noatime, nodev, nosuid)
> tmpfs on /tmp type tmpfs (local, noatime, nodev, nosuid)
> /dev/sd0d on /data type ffs (local)
> #
> # iostat 1 10
>       tty              sd0               rd0               sd1
>     sd2             cpu
>  tin tout  KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t  t/s  MB/s   KB/t
> t/s  MB/s  us ni sy in id
>    0    1 15.28    0  0.00   0.00    0  0.00   6.09    0  0.00   0.00
> 0  0.00   0  0  1  1 98
>    0  294  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   0  0  1  3 96
>    0   97  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   0  0  2  3 95
>    0   97  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   0  0  1  1 98
>    0   98  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   0  0  0  0100
>    0   96  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   1  0  1  2 96
>    0   98  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   0  0  0  1 99
>    0   97  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   0  0  2  1 97
>    0   97  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   0  0  0  1 99
>    0   96  0.00    0  0.00   0.00    0  0.00   0.00    0  0.00   0.00
> 0  0.00   2  0  0  3 95
> #
> # uname -a
>
> OpenBSD gw.idst 5.9 FLASHRD.MP#2 amd64
> #
> # dmesg
>
> OpenBSD 5.9-stable (FLASHRD.MP) #2: Wed Aug 17 17:48:07 CEST 2016
>
> [hidden email]:/usr/src/sys/arch/amd64/compile/FLASHRD.MP
> real mem = 2098520064 (2001MB)
> avail mem = 2028883968 (1934MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x7e16d820 (6 entries)
> bios0: vendor coreboot version "SageBios_PCEngines_APU-45" date 04/05/2014
> bios0: PC Engines APU
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S1 S3 S4 S5
> acpi0: tables DSDT FACP SPCR HPET APIC HEST SSDT SSDT SSDT
> acpi0: wakeup devices AGPB(S4) HDMI(S4) PBR4(S4) PBR5(S4) PBR6(S4)
> PBR7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) PIBR(S4) UOH1(S3) UOH2(S3)
> UOH3(S3) UOH4(S3) UOH5(S3) [...]
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpihpet0 at acpi0: 14318180 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD G-T40E Processor, 1000.13 MHz
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 16-way L2 cache
> cpu0: 8 4MB entries fully associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 199MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD G-T40E Processor, 1000.00 MHz
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,PAGE1GB,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT,ITSC
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB
> 64b/line 16-way L2 cache
> cpu1: 8 4MB entries fully associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: smt 0, core 1, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 21, 24 pins
> acpiprt0 at acpi0: bus -1 (AGPB)
> acpiprt1 at acpi0: bus -1 (HDMI)
> acpiprt2 at acpi0: bus 1 (PBR4)
> acpiprt3 at acpi0: bus 2 (PBR5)
> acpiprt4 at acpi0: bus 3 (PBR6)
> acpiprt5 at acpi0: bus -1 (PBR7)
> acpiprt6 at acpi0: bus 5 (PE20)
> acpiprt7 at acpi0: bus -1 (PE21)
> acpiprt8 at acpi0: bus -1 (PE22)
> acpiprt9 at acpi0: bus -1 (PE23)
> acpiprt10 at acpi0: bus 0 (PCI0)
> acpiprt11 at acpi0: bus 4 (PIBR)
> acpicpu0 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
> acpicpu1 at acpi0: C2(0@100 io@0x841), C1(@1 halt!), PSS
> acpibtn0 at acpi0: PWRB
> cpu0: 1000 MHz: speeds: 1000 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
> ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
> pci1 at ppb0 bus 1
> re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
> (0x2c00), msi, address 00:0d:b9:3c:b2:74
> rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
> ppb1 at pci0 dev 5 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
> pci2 at ppb1 bus 2
> re1 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
> (0x2c00), msi, address 00:0d:b9:3c:b2:75
> rgephy1 at re1 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
> ppb2 at pci0 dev 6 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
> pci3 at ppb2 bus 3
> re2 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E
> (0x2c00), msi, address 00:0d:b9:3c:b2:76
> rgephy2 at re2 phy 7: RTL8169S/8110S/8211 PHY, rev. 4
> ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 2 int
> 19, AHCI 1.2
> ahci0: port 0: 6.0Gb/s
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, SATA SSD, S9FM> SCSI3 0/direct fixed
> t10.ATA_SATA_SSD_81B5074C1B6500077131
> sd0: 15272MB, 512 bytes/sector, 31277232 sectors, thin
> ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
> version 1.0, legacy support
> ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
> version 1.0, legacy support
> ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
> iic0 at piixpm0
> pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
> ppb3 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
> pci4 at ppb3 bus 4
> ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 2 int 18,
> version 1.0, legacy support
> ppb4 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
> pci5 at ppb4 bus 5
> ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 2 int 18,
> version 1.0, legacy support
> ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 2 int 17
> usb2 at ehci2: USB revision 2.0
> uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
> pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
> pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
> pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
> km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
> pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
> pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
> pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
> pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
> usb3 at ohci0: USB revision 1.0
> uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> usb4 at ohci1: USB revision 1.0
> uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> isa0 at pcib0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com0: console
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x52
> usb5 at ohci2: USB revision 1.0
> uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> usb6 at ohci3: USB revision 1.0
> uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
> umass0 at uhub0 port 5 configuration 1 interface 0 "TOSHIBA External USB
> 3.0" rev 2.10/0.00 addr 2
> umass0: using SCSI over Bulk-Only
> scsibus2 at umass0: 2 targets, initiator 0
> sd1 at scsibus2 targ 1 lun 0: <TOSHIBA, External USB 3.0, 0> SCSI4
> 0/direct fixed serial.0480a00e31206004642F
> sd1: 476940MB, 512 bytes/sector, 976773168 sectors
> umass1 at uhub2 port 1 configuration 1 interface 0 "Generic Flash Card
> Reader/Writer" rev 2.01/1.00 addr 2
> umass1: using SCSI over Bulk-Only
> scsibus3 at umass1: 2 targets, initiator 0
> sd2 at scsibus3 targ 1 lun 0: <Multiple, Card Reader, 1.00> SCSI2
> 0/direct removable serial.058f6366058F63666485
> vscsi0 at root
> scsibus4 at vscsi0: 256 targets
> softraid0 at root
> scsibus5 at softraid0: 256 targets
> root on rd0a swap on rd0b dump on rd0b
>
>
>
> Kind regards,
> Marco

Reply | Threaded
Open this post in threaded view
|

Re: No free discspace after deleting files

Marco Prause
No, there are no links and process that have the files opened.
Or better : I do not see any with fstat.

Maybe there's any other programs for this purpose I do not know at the
moment ?


Am 27. September 2016 08:29:06 MESZ, schrieb Raul Miller
<[hidden email]>:

    Do any processes have those files open? Did you have any hard links to
    those files from other names?

    The disk space cannot be removed until all references to those files
    are removed.

Reply | Threaded
Open this post in threaded view
|

Re: No free discspace after deleting files

Marco Prause
In reply to this post by Raul Miller
Re,

well as mentioned fstat didn't show any open filehandles or inodes, but
fsck was a bit more chatty :

# fsck /dev/sd0a


** /dev/rsd0a (NO WRITE)
** Last Mounted on /flash
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=9  OWNER=root MODE=100644
SIZE=1317309440 MTIME=Sep 27 13:48 2016
CLEAR? no

** Phase 5 - Check Cyl groups
15 files, 892592 used, 993071 free (31 frags, 124130 blocks, 0.0%
fragmentation)
#

a simple umount and mount of the partition did fix it and released the
discspace.

Because it happened the second time, I'm going to try to reproduce the
issue.


But until then cheers,
Marco

Am 27.09.2016 um 08:29 schrieb Raul Miller:
> Do any processes have those files open? Did you have any hard links to
> those files from other names?
>
> The disk space cannot be removed until all references to those files
> are removed.

Reply | Threaded
Open this post in threaded view
|

Re: No free discspace after deleting files

Alexander Hall
On September 27, 2016 10:06:24 PM GMT+02:00, Marco Prause
<[hidden email]> wrote:

>Re,
>
>well as mentioned fstat didn't show any open filehandles or inodes, but
>fsck was a bit more chatty :
>
># fsck /dev/sd0a
>
>
>** /dev/rsd0a (NO WRITE)
>** Last Mounted on /flash
>** Phase 1 - Check Blocks and Sizes
>** Phase 2 - Check Pathnames
>** Phase 3 - Check Connectivity
>** Phase 4 - Check Reference Counts
>UNREF FILE I=9  OWNER=root MODE=100644
>SIZE=1317309440 MTIME=Sep 27 13:48 2016
>CLEAR? no
>
>** Phase 5 - Check Cyl groups
>15 files, 892592 used, 993071 free (31 frags, 124130 blocks, 0.0%
>fragmentation)

I'm not a filsystem expert, but I'd say this looks as expected for an active
mounted filsystem with an unlinked file still in use by some process.

What was your fstat command?
This wasn't the underlying file for the vnd?

/Alexander

>#
>
>a simple umount and mount of the partition did fix it and released the
>discspace.
>
>Because it happened the second time, I'm going to try to reproduce the
>issue.
>
>
>But until then cheers,
>Marco
>
>Am 27.09.2016 um 08:29 schrieb Raul Miller:
>> Do any processes have those files open? Did you have any hard links
>to
>> those files from other names?
>>
>> The disk space cannot be removed until all references to those files
>> are removed.