Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-3145

layout swap on stripeless file will interact badly with MOF_LOV_CREATED

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • None
    • None
    • 3
    • 7631

    Description

      Once LU-3125 is landed we will find that layout swap may interact badly with the create data logic in the MDT layer. In particular swapping layouts between a striped file and a stripeless file will fail to update MOF_LOV_CREATED in the corresponding mdt_objects. Using the current patch set (2) from http://review.whamcloud.com/#change,5998:

      # MOUNT_2=y llmount.sh
      # cd /mnt/lustre
      # touch f0
      # multiop f1 m
      # while true; do lfs swap_layouts f0 f1; done &
      [1] 3618
      # cd /mnt/lustre2
      # while true; do echo > f0; done
      -bash: echo: write error: Bad file descriptor
      
      LustreError: 10300:0:(lod_object.c:688:lod_ah_init()) ASSERTION( lc->ldo_stripenr == 0 ) failed: 
      LustreError: 10300:0:(lod_object.c:688:lod_ah_init()) LBUG
      Pid: 10300, comm: mdt00_001
      
      Call Trace:
       [<ffffffffa051dc6d>] libcfs_debug_dumpstack+0x6d/0xb0 [libcfs]
       [<ffffffffa051e467>] lbug_with_loc+0x57/0x110 [libcfs]
       [<ffffffffa1185aac>] lod_ah_init+0x99c/0x9c0 [lod]
       [<ffffffffa0e1b941>] mdd_object_make_hint+0x111/0x170 [mdd]
       [<ffffffffa0e2e0a2>] mdd_create_data+0x612/0xbf0 [mdd]
       [<ffffffffa10753cc>] mdt_mfd_open+0xffc/0x1430 [mdt]
       [<ffffffffa11848e1>] ? lod_xattr_get+0x211/0x640 [lod]
       [<ffffffffa10786c7>] mdt_finish_open+0xad7/0x1290 [mdt]
       [<ffffffffa107b570>] mdt_reint_open+0x1780/0x2c60 [mdt]
       [<ffffffffa0546434>] ? upcall_cache_get_entry+0x334/0xc90 [libcfs]
       [<ffffffffa0949c3c>] ? lustre_msg_add_version+0x8c/0x100 [ptlrpc]
       [<ffffffffa105c8d3>] mdt_reint_rec+0x53/0x140 [mdt]
       [<ffffffffa1052af3>] mdt_reint_internal+0x963/0xc00 [mdt]
       [<ffffffffa10531cd>] mdt_intent_reint+0x2cd/0x780 [mdt]
       [<ffffffffa104c493>] mdt_intent_policy+0x6e3/0xad0 [mdt]
       [<ffffffffa08df661>] ldlm_lock_enqueue+0x5f1/0xda0 [ptlrpc]
       [<ffffffffa0916fcb>] ldlm_handle_enqueue0+0x5fb/0x1890 [ptlrpc]
       [<ffffffffa104ca38>] mdt_enqueue+0x58/0x190 [mdt]
       [<ffffffffa10393c9>] mdt_handle0+0x5e9/0x1ab0 [mdt]
       [<ffffffffa103aacf>] mdt_handle_common+0x23f/0x690 [mdt]
       [<ffffffffa108ff3d>] mds_regular_handle+0x1d/0x30 [mdt]
       [<ffffffffa095f1c6>] ptlrpc_server_handle_request+0x536/0x15b0 [ptlrpc]
       [<ffffffffa051ee56>] ? cfs_timer_arm+0x16/0x20 [libcfs]
       [<ffffffffa0953c86>] ? ptlrpc_wait_event+0x106/0x4c0 [ptlrpc]
       [<ffffffff81052223>] ? __wake_up+0x53/0x70
       [<ffffffffa0962efa>] ptlrpc_main+0xd6a/0x1320 [ptlrpc]
       [<ffffffffa0962190>] ? ptlrpc_main+0x0/0x1320 [ptlrpc]
       [<ffffffff8100c0ca>] child_rip+0xa/0x20
       [<ffffffffa0962190>] ? ptlrpc_main+0x0/0x1320 [ptlrpc]
       [<ffffffffa0962190>] ? ptlrpc_main+0x0/0x1320 [ptlrpc]
       [<ffffffff8100c0c0>] ? child_rip+0x0/0x20
      

      Attachments

        Issue Links

          Activity

            People

              wc-triage WC Triage
              jhammond John Hammond
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: