Skip to content

Instantly share code, notes, and snippets.

@nikhilbansal
nikhilbansal / du-df-mismatch.txt
Last active April 28, 2017 08:10
Linux df and du mismatching
The df -h on the partition /data was showing full usage of 20GB but du -sh /data was showing a usage of only 581MB.
ubuntu@ip-xxx-xx-x-xx:/data$ df -h
Filesystem Size Used Avail Use% Mounted on
...
/dev/xvdb 20G 20G 0G 100% /data
ubuntu@ip-xxx-xx-x-xx:/data$ du -sh .
581M .
{
"meta": {
"code": 200,
"type": "ok"
},
"data": {
"bookings": [{
"booking_id": "BN55488444",
"status": "Cancelled",
"booking_items": [{
{
"meta": {
"code": 200
},
"data": {
"tracking": {
"id": "53aa788e415a67000000001d",
"created_at": "2014-06-25T07:21:50+00:00",
"updated_at": "2014-06-25T07:26:33+00:00",
"tracking_number": "1Z867F6RP220667561",
{
"meta": {
"code": 200,
"type": "ok"
},
"data": {
"bookings": [{
"booking_id": "BN55488444",
"booking_items": [{
"is_cod": false,
{
"meta": {
"code": 201,
"type": "created"
},
"data": {
"bookings": [{
"booking_id": "BN68657688",
"booking_items": [{
"is_cod": false,
{
"booking_items": [
{
"category": "Mp3 Player",
"product_url": "xyz.com/A123456",
"qty": 2
},
{
"category": "Fridge",
{
"meta": {
"code": 200,
"type": "ok"
},
"data": {
"bookings": [{
"booking_id": "BN55488444",
"booking_items": [{
{
"meta": {
"code": 200,
"type": "ok"
},
"data": {
"bookings": [
{ ... },
{ ... },
{ ... }
{
"meta": {
"code": 401,
"message": "Invalid API Key.",
"type": "Unauthorized"
},
"data": {}
}
{
"meta": {
"code": 200
},
"data": {
...
}
}