Author Topic: Server says no disk space but there is!  (Read 2174 times)

digideus

  • Zen Apprentice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Server says no disk space but there is!
« on: January 25, 2017, 02:30:59 pm »
ok, long story short...

one of our servers had a power cut and ever since, its telling the users that they have no disk space on the file shares to save files.  they can open files and access the internet through the gateway fine, but its showing that the file share drives are full.

I checked the available disk space with df -h and here is the output

Code: [Select]
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G  4.0K  3.9G   1% /dev
tmpfs           799M  2.1M  797M   1% /run
/dev/dm-0       917G   53G  817G   7% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none             50M     0   50M   0% /run/lock
none            3.9G   14M  3.9G   1% /run/shm
none            100M  4.0K  100M   1% /run/user
/dev/sda1       236M  235M     0 100% /boot


/dev/sda1 is nearly full.  ive seen elsewhere that there is a potential bug in the ubuntu installer that could cause this as well as a cure by resizing the partition, but im not sure thats the cause of my problem as I am trying to access the shares on /dev/dm-0 (where the share folders are under the samba folder), where there is a "rightous" amount of free space :D  im using 54GB up but i have over 800GB free (its a 1TB disk)

as an aside, I checked the partitions with fdisk -l thinking that there may be a reason for it, and the output is below

Code: [Select]
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000cbb97

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758  1953523711   976510977    5  Extended
Partition 2 does not start on physical sector boundary.
/dev/sda5          501760  1953523711   976510976   8e  Linux LVM

Disk /dev/mapper/xxxxxxx--vg-root: 999.4 GB, 999406174208 bytes
255 heads, 63 sectors/track, 121504 cylinders, total 1951965184 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/xxxxxxx--vg-root doesn't contain a valid partition table

Disk /dev/mapper/xxxxxxx--vg-swap_1: 536 MB, 536870912 bytes
255 heads, 63 sectors/track, 65 cylinders, total 1048576 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/xxxxxxx--vg-swap_1 doesn't contain a valid partition table

...so, am i right in thinking that the reason its saying its full is because /dev/sda1 is full?  Surely thats the linux partition on the disk and its size shouldnt effect the ability to access shares to clients on my network.   (Please correct me if im wrong.)

Anyway, there are posts on here already about the disk space problem when using the "erase all disk" option in the zentyal installer so I wont go into it here, but im concerned about the fdisk "vaild partition table" errors its throwing up.  My fear is that I will resize the sda1 partition but the partition table has been ganked by the power cut and I will be causing more problems than I solve.

anyone?

BerT666

  • Zen Warrior
  • ***
  • Posts: 228
  • Karma: +17/-0
    • View Profile
Re: Server says no disk space but there is!
« Reply #1 on: February 13, 2017, 02:27:21 pm »
Hi,

nearly all Linux distros I know get problems if ANY partition runs full...

you should try to uninstall the oldest (one or two) kernel and repair your deb-database.

Afterwards everything should be ok.

Other way is to grow the /boot partition (if this is an option)

Regards

Thomas