issue of deletion of LUN

Nice day

I'm having a problem with the removal of some lun. the code has worked in the past, but it's not. The only thing I see is different, the status of the lun is 'ON' and I think that it should be turned off. Here is the code and it is executed after the data store is clear and not mounted.

to connect-viserver

$devices = get-content c:\luns_to_delete.txt

$esxcli = get-esxcli

foreach ($DeviceId to $Devices)

{

$esxcli.storage.core.device.detached.remove ($deviceid)

}

Any help would be appreciated.

Thank you

Try like this

$esxcli.storage.core.device.set ("NAA_ID", $null, $true, "off")

But the format and parameters also depend on the version of vSphere that you use.

Tags: VMware

Similar Questions

  • Issue when delete message in the mail 10 iOS app

    iOS 10 worked fine for about two days, a messaging application but now is acting weird. As others have noted, the next and previous buttons E-mail have disappeared. I just noticed that when I try to delete a message by touching the trash, I must then select "Delete the Message".

    You probably have settings > mail > ask before deleting the value "on".

  • Email issue - previous deletion blackBerry smartphones user Email

    Hi all

    I just took a Curve 8330 opportunity.  When I activated with my carrier the previous users email is always on the phone.  Is it possible to delete without their password or user name?

    Help, please...

    I went through my suppliers tech support and the problem is solved... Thank you all.

  • After issue containing deleted?

    I posted a question about copyright, and when I checked back again, I couldn't find the post again (it is said that it may have been deleted). So it was just a mistake, and I can post this question again? I will not be prohibited in the forums or anything! I does not contravene any rules I know?

    Mylenium may be correct. If a message has been deleted accidentally, go ahead and repost.

  • Ye olde issue of 'delete the archivelogs standby '.

    11.2.0.2.0

    According to the note
    Configure RMAN to purge the archivelogs after application on hold [728053.1 ID]

    Oracle must remove the archive logs if we have deletion policy, the value "delete applied pending", I put on primary and standby. Monitoring alerts log we see

    "Deleted oracle managed file/path/to/year/archive/log".

    so we think cool, remove them automatically. It comes, when it removes it? Now my day is in sync, but my journal alerts is only sporadically showing my logs being removed that were applied for hours I can verify clearly.

    Oracle automatically removes the archivelogs only when he needs to free up space in the FRA (db_recovery_file_dest).

    Hemant K Collette

  • Keyboard issue - Backspace, delete, forward, backward, up to keys not working not

    I am a new user of SQL * Developer with a fresh install and I'll have a keyboard problem.
    The BACKSPACE, delete, forward, backward, up, etc. keys do not work correctly while
    I'm in the enter SQL statement window. Keys work well in all my other applications
    and they work very well when I'm on the left (side objects) of SQL Developer. It is that when I
    am in the SQL statement section enter that they do not work. Must something there be
    defined or installation in an options to allow these keys to work?

    In fact, I found a solution here in another thread.

    You must reset the accelerators.
    Go to tools - preferences, select accelerators in the menu on the left and click on the Load Preset button at the bottom right. You will receive a pop up that will highlight default, loads of hit. This is the default.

    It worked for me, it could be useful.

  • i335 issues with deleting messages

    My i335 won't erase messages. I have tried to use the remove all option, remove the multiple option and the removal of an individual message. Some messages here and there will retire, but most of them won't. Some messages have even no message in them, just the news as to whom the text is sent to and when.

    She also sends responses double or triple when I answer a text.

    I wonder if there is a way to reset, or if someone has any info that can help me that would be great.

    Manual i335

    Page 7 Menu > settings > advanced > reset defaults

    Lead the caveat in this post.

    Mark

    Support Forums Manager

  • Map of appeals on deleted RAS - cannot install

    My English is not good - and maybe I won't be able to clarify this medication in this issue.

    Windows XP / Lenovo laptop
    He had problems with VPN to the corporate network.
    To fix this, all NICs have been uninstalled including all the "WAN Miniport".
    It was first used regedit to remove all keys in HKLM\System\CurrentControlSet\Control\Class\ {4D36E972-E325...})
    And that it was possible to delete all devices in Device Manager/network adapters (Show hidden devices)
    That all device drivers have been installed at new includding hidden WAN Miniports (Miniport network EXTENDED (IP), WAN Miniport (PPTP), etc.).
    And after ethernet and wireless in this laptop adapters, this drug is good with the VPN and conectivity

    But there is a 3G modem and it is not possible now to make a mobile connection to the local GSM operator. I compared the configuration with another XP machine and I see it, there is not a "RAS async card" in Device Manager ECS (Show hidden devices) - I missed to install when I recovered the devices it

    And now I am trying to install this "Asynchronous RAS card" without success.
    I tried with
    .. > devcon.exe install c:\windows\system32\netrasa.inf SW\ {eeab7790-c514-11d1-b42b-00805fc1270e}
    and 'RAS asynchronous card' has been raised in
    Device Manager/network adapters (Show hidden devices)
    but it is with a yellow circle with black exclamation point.

    All my efforts to fix this yellow exclamation point failed.

    What Miss me?
    Is there some kind of standard (unknown to me) to fix?

    ---------------------------------
    I did a test XP machine and I found the answer. It took me six hours, so I will describe to you to gain time to other people with the same "problem".

    It was a totally false action to try manually add "card Asynchronous RAS." On the test computer, I see the default Win XP adds this card after the first attempt of outgoing calls. You can add modems, dial-out connections, but there is no 'Card Asynchronous RAS' in Device Manager/Network Adapters (Show hidden devices). This adapter there arises after the first real attenpt to dial-out.

    So, on the cell phone issue, I deleted all modems, dial-out connections and also removed the "RAS async adapter" with exclamation point and yellow circle.
    I then added a simple standard modem and a simple dial-out connection. And after the first attempt of outgoing calls, the "RAS async adapter" arises without yellow exclamation point.

    Hello DimiterS,

    Thank you for your message.  I'm glad that you found a solution to your problem.  In the future, if you have problems regarding RAS you can better served in the TechNet community.  Click HERE to be assembled with TechNet.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • ISE 1.3.0.876 - cannot delete the Group of network devices

    Hello

    When I try to delete a NDG I tells me "this node cannot remove because it contains devices or subgroups.

    When I search in the peripheral topic network no devices are part of the group, and it has no sub-groups in this group.

    So what don't understand me?

    Brian

    Hi Brian,.

    If you have checked everything regarding the configuration and we are still not able to remove the NDG group.

    In this scenario, that the problem is although the n group is not referenced for an any Nagels when we try to delete the n group, it will throw an error "this node cannot remove because it contains devices or subgroups.

    The reason for this problem is that previously when n use this group of n, and if we reference out of this group of n, "dereferenced" information only are not updated in the database table and thus causing the issue when deleting GUI. He still thinks as if it has references.

    You may need to open a TAC case for this because it will be access to the SQL DB of the ISE and you don't have access to him.

    Kind regards

    Aditya

  • exact number of lines deleted when on_delete_cascade is active in the referential integrity

    Hi all

    I have here the question (restructured for simplicity):

    Suppose that I have a table used, which has a primary key emp_id and a mgr_id foreign key referencing emp_id:

    create table abc () number Middle eid number

    constraint of pk primary key(eid),

    constraint of fk stranger key (mid) referencing abc(eid) on delete cascade

    )

    Select * de abc

    EIDMID
    4
    1
    21
    31
    51
    62

    If I issue a delete as below:

    delete from abc where eid = 1

    After running above sql, the number of rows sql % gives me the deleted rows = 1, but in fact, had to remove cascade, 5 rows are deleted.

    My question is how can I the exact number of rows deleted from the table in this scenario?

    What SQL ROWCOUNT percentage watch you is correct because it shows the number of lines made directly by the statement you issue.  All knock on effects by cascading deletes, or triggers are not included.

    The only real way you'd be able to get a number of lines (assuming nothing else bothers while you do) this is to count the lines service based on your business logic for related lines and then remove them, or maybe put a trigger delete (be aware of the drop in performance) on deletions for lines that puts something like the primary key for a global temporary table (available lines only for your session) that you can then query after how many rows have been completed.

  • Removal of LUNS in a data store

    I installed a new volume of virtual disk of three 2 TB (RAID5) SAS drives on our HP SAN. So I have 4TB as the disk capacity that LUN. Now I was ignorant of the fact that the maximum size of a data store for ESXi 4.1 2 TB - 512 bytes. So when I added this new 4 TB LUN to a store of data on ESXi 4.1.0, only 1.64 TB has been appearing as available as against 4 TB or 3.64 to capacity. Now, I want to delete this new LUN of this data store and return to the utility of HP storage to recreate smaller i.e. two 2 TB LUN management. However, the problem I have is, I don't know how to remove this new LUN in the data store to which I added this without losing data or a data store. In my case, I had a data store 300 GB to 1.09 and I added this new 1.64 TB LUN to this Datastore.But I want to delete this LUN data store. Thank you, Clément

    I'm afraid there is no way taken in charge to remove a measure from a data store. If you want to use the entire disk space, you must destroy the entire data store.

    André

  • Hot Add Remove lun fails in rescan periodical at the time of the withdrawal, although the path is marked as DEAD as planned

    So we run the hot add and remove cases from LUNs in the certification for ESX 5.5 with Workbench 3.0 kit

    The hot add succeeds to the two manual add and periodic scan... Deletion succeeds manual extraction, but a failure in periodicals rescan same removal so it lists the path out of SERVICE.

    Here are the logs

    [August 26, 2014 20:01:29: WLMANAGER] [0] FRAME: no charges Found.

    [August 26, 2014 20:02:25: HOTADDREMO] [0] INFO: hot test add using RESCAN

    [August 26, 2014 20:07:55: HOTADDREMO] [0] INFO: performance of rescan the first server

    [August 26, 2014 20:08:28: HOTADDREMO] [0] INFO: found new LUN eui. 48d8bf5f64e64100

    [August 26, 2014 20:08:28: HOTADDREMO] [0] INFO: add hot with the new analysis is the first server

    [August 26, 2014 20:08:28: HOTADDREMO] [0] INFO: Running rescan the second server

    [August 26, 2014 20:09: HOTADDREMO] [0] INFO: found new LUN eui. 48d8bf5f64e64100

    [August 26, 2014 20:09: HOTADDREMO] [0] INFO: add hot with rescan is the second server

    [August 26, 2014 20:09: HOTADDREMO] [0] INFO: hot test add using PERIODICALLY RESCAN

    [August 26, 2014 20:15:05: HOTADDREMO] [0] INFO: Test runs on the first server

    [August 26, 2014 20:15:06: HOTADDREMO] [0] INFO: found new LUN eui.48d8bf5f64e64200

    [August 26, 2014 20:15:06: HOTADDREMO] [0] INFO: add hot with the new analysis from time to time, is the first server

    [August 26, 2014 20:15:06: HOTADDREMO] [0] INFO: Test runs on the secondary server

    [August 26, 2014 20:15:08: HOTADDREMO] [0] INFO: found new LUN eui.48d8bf5f64e64200

    [August 26, 2014 20:15:08: HOTADDREMO] [0] INFO: add hot with periodically rescan is the second server

    [August 26, 2014 20:15:10: WLMANAGER] [0] FRAME: no charges Found.

    [August 26, 2014 20:16:07: HOTADDREMO] [0] INFO: hot control remove using RESCAN

    [August 26, 2014 20:17:27: HOTADDREMO] [0] INFO: hot execution removes the test on the first server

    [August 26, 2014 20:18: HOTADDREMO] [0] INFO: LUNS deleted eui.48d8bf5f64e64200

    [August 26, 2014 20:18: HOTADDREMO] [0] INFO: Test successfully on the first server

    [August 26, 2014 20:18: HOTADDREMO] [0] INFO: hot execution removes the test on the second server

    [August 26, 2014 20:18:33: HOTADDREMO] [0] INFO: LUNS deleted eui.48d8bf5f64e64200

    [August 26, 2014 20:18:33: HOTADDREMO] [0] INFO: Test passed on the second server

    [August 26, 2014 20:18:33: HOTADDREMO] [0] INFO: hot control remove by using PERIODICALLY RESCAN

    [August 26, 2014 20:23:20: HOTADDREMO] [0] INFO: Test runs on the first server

    [August 26, 2014 20:23:21: HOTADDREMO] [0] INFO: check the path to removed LUN on the first server

    [August 26, 2014 20:24:17: TRANSPORT] [0] FRAMEWORK: running cmd 'esxcfg-mpath - bd eui.48d8bf5f64e64100' mode of blocking on the host 'esxia.amiads.com '...

    [August 26, 2014 20:24:17: STAFBASE] [0] FRAMEWORK: command execution STAF: staf esxia.amiads.com PROCESS SAMECONSOLE RETURNSTDOUT RETURNSTDERR WORKDIR SHELL START / WAIT COMMAND esxcfg-mpath - bd eui.48d8bf5f64e64100

    [August 26, 2014 20:24:18: STAFPROCES] [0] FRAME: host esxia.amiads.com returned eui. 48d8bf5f64e64100 : * iSCSI disk (eui.48d8bf5f64e64100)

    vmhba34:C0:T65:l0 LUN:0 State: dead iscsi adapter: not available target: unavailable

    vmhba34:C3:T65:l0 LUN:0 State: dead iscsi adapter: not available target: unavailable


    [August 26, 2014 20:24:27: HOTADDREMO] [0] ERROR: LUN is found not deleted after periodic rescan on the first server


    So I checked the Vmware perl code that performs this case... it is available at /opt/vmware/VTAF/storage50-cert/VTAF/Test/Storage/StorageCert/FVT/HotAddRemoveLUNs.pm


    Sub RunHotRemoveTest

    {

    .....

    # Remove LUN only cause death I/O path.  It does not delete the LUN.

    # Evaluate for the dead I/O path.

    $deadPathFound = "NO";

    LogInfo (channel = > $channel, MSG = > "Check the path to remove LUN on $server");

    foreach my {$lun (@lunListBeforePeriodicallyRescan)

    #my $lunObj = $host2HbaObj-> CreateScsiLun (name = > $lun);

    $cmd = "esxcfg-mpath - bd $lun";

    My $cmdObj = new VTAF::Framework:Core:Common:Command)

    Home = > $host2Obj-> GetName();

    Cmd = > $cmd);

    my $rc = $cmdObj-> GetReturnCode();

    my $cmdResult = $cmdObj-> GetStdout();

    my $cmdError = $cmdObj-> GetStderr();

    If ($cmdError) {}

    $deadPathFound = "YES";

    LogInfo (channel = > $channel, MSG = > "mpath command returned: $cmdError");

    LogInfo (channel = > $channel, MSG = > "$lun is deleted after periodic rescan");

    }

    }

    If ($deadPathFound not 'YES') {}

    LogError (channel = > $channel, MSG = > "LUN is not deleted after periodic rescan on the $server");

    return FAILURE;

    } else {}

    LogInfo (channel = > $channel, MSG = > ' delete hot with periodically rescan PASSED on the $server ");

    }

    }

    So if you see the code above, Vmware itself expected the path to show the death, but they perceive three error codes for the output of esxcfg-mpath - bd < lunname >

    I think they expect an error to return to $cmdError... But looks at though it lists the path as DEAD, she returns to success... So the $deadPathFound is always set to no. He goes into the path of "not YES" and not the test case...

    I would like to open a folder from supported with VMware, but before that I would like to know if someone has faced this problem and had this problem of VMware using any patch in their Workbench... Or if any new workbench has this problem fixed...

    We are using Vmware Test Manager: 3.0.0 - 1610638

    5.5 storage certification: 3.0.0 - 1337995

    VMware Workbench say 3.0.1

    Than I went back to our older certification with ESX 5.1 where this matter has passed... and was able to check the logs. It has been performed with Workbench 2.0. In this they executed a more order "peripheral storage esxcli list d lunname" and lists the path as dead and also properly detects the dead path and scored the try with the... Unfortunately I don't seem to have their old code to compare with...

    [July 27, 2012 12:34:06: SCSILUN] [0] FRAMEWORK: check if the 'eui.93bb4a37348e4100' lun is available or not.

    [July 27, 2012 12:34:06: TRANSPORT] [0] FRAMEWORK: running cmd ' esxcli storage device base list d eui.93bb4a37348e4100 ' mode of blocking on the host 'esxia.amiads.com '...

    [July 27, 2012 12:34:06: STAFBASE] [0] FRAMEWORK: command execution STAF: staf esxia.amiads.com PROCESS SAMECONSOLE RETURNSTDOUT RETURNSTDERR WORKDIR SHELL START / WAIT COMMAND esxcli storage base device list d eui.93bb4a37348e4100

    [July 27, 2012 12:34:07: STAFPROCES] [0] FRAME: host esxia.amiads.com returned eui.93bb4a37348e4100

    Full name: * iSCSI disk (eui.93bb4a37348e4100)

    Definable display name: true

    Size: 2048

    Device type: Direct access

    Multichannel plugin: NMP

    Devfs Path: /vmfs/devices/disks/eui.93bb4a37348e4100

    Seller: * I

    Model: *.

    Review: 2 0 s

    SCSI level: 4

    Is nickname: false

    Status: dead

    RDM Capable is: true

    Is Local: false

    Is removable: false

    SSD is: false

    Is Offline: false

    Is perpetually booked: false

    Thin Provisioning status: Yes

    Attached filters:

    VAAI status: unknown

    Other UID: vml.01000000003933626234613337333438653431303053746f725472

    [July 27, 2012 12:34:07: MULTITECH] SETTING [0]: called VTAF::TestLib:Sphere:Storage:Lib:CLI:ScsiLun:IsLunAvailable (Password='password@123' Username = 'root' HostName = 'esxia.amiads.com' LunName = 'eui.93bb4a37348e4100') returns '1'

    [July 27, 2012 12:34:07: TRANSPORT] [0] FRAMEWORK: running cmd 'esxcfg-mpath - bd eui.93bb4a37348e4100' mode of blocking on the host 'esxia.amiads.com '...

    [July 27, 2012 12:34:07: STAFBASE] [0] FRAMEWORK: command execution STAF: staf esxia.amiads.com PROCESS SAMECONSOLE RETURNSTDOUT RETURNSTDERR WORKDIR SHELL START / WAIT COMMAND esxcfg-mpath - bd eui.93bb4a37348e4100

    [July 27, 2012 12:34:08: STAFPROCES] [0] FRAME: host esxia.amiads.com returned eui.93bb4a37348e4100: * iSCSI disk (eui.93bb4a37348e4100)

    vmhba34:C1:T65:l0 LUN:0 State: dead iscsi adapter: not available target: unavailable

    vmhba34:C0:T65:l0 LUN:0 State: dead iscsi adapter: not available target: unavailable

    [July 27, 2012 12:34:08: HOTADDREMO] [0] INFO: eui.93bb4a37348e4100 died because of the LUN to remove test

    So basically had the question warm Add Remove Lun. It is a problem in the ESX version we use and scripts of WorkBench. If we use the build ESX GA this would have worked. ESX changed the behavior of the command in version 5.5 of GA to a new approach and then back to the old approach again in 5.5 Update1.

    The version we use are two versions higher than the release of GA... Therefore, the behavior of this command is different between these two versions.

    ESXi 5.5 Patch 2

    2014-07-01

    1892794

    N/A

    ESXi 5.5 Patch Express 4

    2014 06-11

    1881737

    N/A

    ESXi 5.5 Update 1 has

    2014-04-19

    1746018

    N/A

    ESXi 5.5 Express Patch3

    2014-04-19

    1746974

    N/A

    ESXi 5.5 Update 1

    2014 03-11

    1623387

    N/A

    ESXi 5.5 Patch1

    2013 12-22

    1474528

    N/A

    ESXi 5.5 GA

    2013-09-22

    1331820

    N/A


    This is the behavior in version 5.5 GA ESX

    ~ # vmware - v

    VMware ESXi 5.5.0 build-1331820

    Added the target

    ~ # esxcfg - mpath - bd eui.3db57bdc252c0200

    1. EUI.3db57bdc252c0200: FRIEND iSCSI disk (eui.3db57bdc252c0200)

    vmhba34:C0:t0:l0 LUN:0 Status: active iscsi adapter: iqn.1998-01.com.vmware:5213e0fa-31de-329a-5885-002590135b9e-17c7a47e target: IQN = iqn.1991 - 10.com.ami:itx002590135d84e923:l.v10 Alias = Session = 00023 000002 PortalTag = 5 d

    ~ # echo $?

    0

    Removed from the target

    ~ # esxcfg - mpath - bd eui.3db57bdc252c0200

    Device eui.3db57bdc252c0200 unknown

    ~ # echo $?

    1

    Now the version of ESX 5.5 Update 1, we use

    Added the target

    ~ # vmware - v

    VMware ESXi 5.5.0 build-1623387

    ~ # esxcfg - mpath - bd eui.5b5fbb54c4d80200

    1. EUI.5b5fbb54c4d80200: FRIEND iSCSI disk (eui.5b5fbb54c4d80200)

    vmhba38:C1:t0:l0 LUN:0 Status: active iscsi adapter: iqn.1998-01.com.vmware:5405e3db-f95e-9f9c-e99b-0025900cab82-01a17ffb target: IQN = iqn.1991 - 10.com.ami:itx00259014329a26b:l.sharontest Alias = Session = 00023 PortalTag = 9 000002 d

    ~ # echo $?

    0

    Removed from the target

    ~ # esxcfg - mpath - bd eui.5b5fbb54c4d80200

    1. EUI.5b5fbb54c4d80200: FRIEND iSCSI disk (eui.5b5fbb54c4d80200)

    vmhba38:C1:t0:l0 LUN:0 State: dead iscsi adapter: not available target: unavailable

    ~ # echo $?

    0

  • Possible to remove the data store shared without deleting content?

    Is it possible to delete a data store shared a host, without actually deleting content?

    If there are several hosts who share a store of data and for some reason any I delete the data of one of them, store connection can I do this without a deletion of all the virtual machines on the data store, as shown in the warning above?

    You can delete single LUN on the side storage (for example by hiding the it).

    Before that... do not forget that without virtual machines are running on it.

    After that... do a rescan storage adapters.

    André

  • LUN and ESX Server - basic knowledge

    Hello...

    I'm trying to clarify the relationship of this LUN game in the Infrastructure of VI:

    (1) is it true that you can have 1 VMFS volume associated with ESX Server at a given time?   Or can we have multiple VMFS volumes running on all different LUN associated with the same ESX Server?

    (2) I know that you have have 'shared storage' between the ESX servers in a cluster of vmotion, but the fact that "the shared storage" refers to

    (a) the same VMFS volume (no matter how much LUN spans the VMFS volume) or

    (b) or can it be multiple different VMFS volumes (b/c multiple VMFS volumes can be associated to an ESX Server at a given time)

    (3) If you can have multiple VMFS volumes related to 1 ESX Server, make the virtual machine in a cluster of vmotion, they all live in the same VMFS volume?

    Thank you!

    Also remember that a VMFS data store cannot be greater than 2 TB.

    Also consider what would happen if an administrator has accidentally deleted a LUN

    VMware also creates SCSI reservations on a LUN basis whenever it creates a new virtual machine among other tasks. If these become too high, the logic unit number is locked significantly reducing the performance of the disk. Separation between the LUN, will help

  • Cleaner thread prematurely deleting log file

    Dear community,

    I´d to display a stack trace. It seems that the thread cleaner had removed a log file that was still needed.

    We run I 4.0.71, Solaris 10, x 86, Java HotSpot 64 bit, ZFS 1.6u20.

    Database environment had to be closed with this exception:
    com.sleepycat.je.EnvironmentFailureException: (I 4.0.71) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.

    The root cause was:
    Due to: java.io.FileNotFoundException: /klikit/database/000002c3.jdb (no such file or directory)

    Here's the complete stack trace:

    [#: 2011-02 - 02T 03: 53:14.179 + 0100 |] SEVERE | Sun - AppServer2.1: javax. Enterprise.System.Container.Web|_ThreadID=17;_ThreadName=httpWorkerThread-80-1;_RequestID=df4c9c76-F069-4098-BE75-566b9f216008;|StandardWrapperValve[Dispatcher]: PWC1406: Servlet.service () for dispatcher servlet threw the exception
    org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSportResultsForAssociation' in class lu.luggel.web.model.ContentManager threw the lu.kpmg.core.db.store.StoreException exception: com.sleepycat.je.EnvironmentFailureException: (I 4.0.71) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing log is probably invalid. Environment is not valid and must be closed. to municipality/sportResults/sportResultsForAssociation.html[line 3, column 27]
    at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
    at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
    at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
    at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
    at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
    at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
    at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
    at org.apache.velocity.runtime.directive.Parse.render(Parse.java:260)
    at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
    at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
    at org.apache.velocity.Template.merge(Template.java:328)
    at org.apache.velocity.Template.merge(Template.java:235)
    at org.springframework.web.servlet.view.velocity.VelocityLayoutView.renderScreenContent(VelocityLayoutView.java:180)
    at org.springframework.web.servlet.view.velocity.VelocityLayoutView.doRender(VelocityLayoutView.java:150)
    at org.springframework.web.servlet.view.velocity.VelocityView.renderMergedTemplateModel(VelocityView.java:291)
    at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)
    at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
    at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    at com.sun.appserv.web.cache.filter.CachingFilter.doFilter(CachingFilter.java:291)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
    at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:117)
    Caused by: lu.kpmg.core.db.store.StoreException: com.sleepycat.je.EnvironmentFailureException: (I 4.0.71) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
    at lu.kpmg.core.db.store.Store.execute(Store.java:230)
    at lu.kpmg.core.db.store.RecordManager.forEach(RecordManager.java:164)
    at lu.kpmg.core.db.store.RecordManager.queryRange(RecordManager.java:158)
    at lu.kpmg.core.db.store.RecordManager.queryAll(RecordManager.java:147)
    at lu.luggel.web.model.ContentManager.getSportResultsForAssociation(ContentManager.java:436)
    at sun.reflect.GeneratedMethodAccessor160.invoke (unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    to org.apache.velocity.util.introspection.UberspectImpl$ VelMethodImpl.doInvoke (UberspectImpl.java:389)
    to org.apache.velocity.util.introspection.UberspectImpl$ VelMethodImpl.invoke (UberspectImpl.java:378)
    at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
    ... more than 58
    Caused by: com.sleepycat.je.EnvironmentFailureException: (I 4.0.71) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
    at com.sleepycat.je.EnvironmentFailureException.wrapSelf(EnvironmentFailureException.java:197)
    at com.sleepycat.je.dbi.EnvironmentImpl.checkIfInvalid(EnvironmentImpl.java:1392)
    at com.sleepycat.je.dbi.CursorImpl.checkEnv(CursorImpl.java:2813)
    at com.sleepycat.je.Cursor.checkEnv(Cursor.java:2846)
    at com.sleepycat.je.Cursor.close(Cursor.java:439)
    at lu.kpmg.core.db.store.Store.execute(Store.java:226)
    ... more than 68
    Caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
    at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1241)
    at com.sleepycat.je.tree.BIN.fetchTarget(BIN.java:1300)
    at com.sleepycat.je.dbi.CursorImpl.fetchCurrent(CursorImpl.java:2362)
    at com.sleepycat.je.dbi.CursorImpl.fetchCurrent(CursorImpl.java:2389)
    at com.sleepycat.je.dbi.CursorImpl.getCurrentAlreadyLatched(CursorImpl.java:1410)
    at com.sleepycat.je.Cursor.searchInternal(Cursor.java:2174)
    at com.sleepycat.je.Cursor.searchAllowPhantoms(Cursor.java:2058)
    at com.sleepycat.je.Cursor.search(Cursor.java:1926)
    at com.sleepycat.je.SecondaryCursor.search(SecondaryCursor.java:1364)
    at com.sleepycat.je.SecondaryCursor.getSearchKeyRange(SecondaryCursor.java:1176)
    at lu.kpmg.core.db.store.Store.execute(Store.java:197)
    ... more than 68
    Due to: java.io.FileNotFoundException: /klikit/database/000002c3.jdb (no such file or directory)
    at java.io.RandomAccessFile.open (Native Method)
    in java.io.RandomAccessFile. < init > (RandomAccessFile.java:212)
    in java.io.RandomAccessFile. < init > (RandomAccessFile.java:98)
    to com.sleepycat.je.log.FileManager$ 1. < init > (FileManager.java:992)
    at com.sleepycat.je.log.FileManager.openFileHandle(FileManager.java:991)
    at com.sleepycat.je.log.FileManager.getFileHandle(FileManager.java:887)
    at com.sleepycat.je.log.LogManager.getLogSource(LogManager.java:1073)
    at com.sleepycat.je.log.LogManager.getLogEntry(LogManager.java:779)
    at com.sleepycat.je.log.LogManager.getLogEntryAllowInvisibleAtRecovery(LogManager.java:743)
    at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1225)
    ... more than 78



    The exception has occurred several times a day. The root cause was always about the file missing '000002c3.jdb '.

    When we run the DBVerify tool on this basis, it will fail with the following exception:

    Tree for key verification
    Encountered error (continuous):
    com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound 0x2c3/0x4d677e parent IN fetchTarget = 29622782 class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty () = State false = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
    Key 592d83a084 Y-\83\a0\84 error
    Error data 5a4e3398 ZN3\98
    Encountered error (continuous):
    com.sleepycat.je.EnvironmentFailureException: (EJ 4.1.7) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound 0x2c3/0x4d677e parent IN fetchTarget = 29622782 class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty () = State false = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed. 0x2de/0x78b409 parent IN fetchTarget 29622782 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty = false = 0 State)
    Key 592d83a084 Y-\83\a0\84 error
    Error data 5a4e341f ZN4\1f
    Encountered error (continuous):
    com.sleepycat.je.EnvironmentFailureException: (EJ 4.1.7) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound 0x2c3/0x4d677e parent IN fetchTarget = 29622782 class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty () = State false = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed. 0x2de/0x7a568e parent IN fetchTarget 29622781 = TO class = com.sleepycat.je.tree.DIN lastFullVersion = 0x2de/0x8cce1a parent.getDirty = false = 0 State)
    Key 592d87a06842fed4e17b2afa Y-\87\a0hB\fe\d4\e1 error {* \fa}
    UNKNOWN error data
    Encountered error (continuous):
    com.sleepycat.je.EnvironmentFailureException: (EJ 4.1.7) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound 0x2c3/0x4d677e parent IN fetchTarget = 29622782 class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty () = State false = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed. 0x2de/0x79dae8 parent IN fetchTarget 16651289 = TO class = com.sleepycat.je.tree.BIN lastFullVersion = 0x2de/0x91e179 parent.getDirty = false = 0 State)
    Key 592d88a06842fed362b24baa Y-\88\a0hB\fe\d3b\b2K\aa error
    UNKNOWN error data
    Encountered error (continuous):
    ...
    ...
    com.sleepycat.je.EnvironmentFailureException: (EJ 4.1.7) environment must be clo
    SED, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment
    d because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound, fe
    0x2c3/0x4d677e parent IN tchTarget = 29622782 IN class = com.sleepycat.je.tree.DB
    IN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty = false state () = 0 LOG_FILE_NOT_F
    ROUND: Log file missing, log is probably invalid. Environment is not valid and should b
    e closed.
    at com.sleepycat.je.EnvironmentFailureException.wrapSelf(EnvironmentFailureException.java:196)
    at com.sleepycat.je.dbi.EnvironmentImpl.checkIfInvalid(EnvironmentImpl.java:1439)
    at com.sleepycat.je.Database.checkEnv(Database.java:1778)
    at com.sleepycat.je.Database.closeInternal(Database.java:377)
    at com.sleepycat.je.Database.close(Database.java:314)
    at com.sleepycat.je.util.DbVerify.verify(DbVerify.java:293)
    at com.sleepycat.je.util.DbVerify.main(DbVerify.java:98)
    Caused by: com.sleepycat.je.EnvironmentFailureException: invalid OCI environment
    ause of previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound fetchTa
    0x2c3/0x4d677e parent IN rget = 29622782 IN the class = com.sleepycat.je.tree.DBIN
    stFullVersion = 0x2de/0x8ccc00 parent.getDirty () = false = 0 LOG_FILE_NOT_FOUND State:
    Save the missing file, log is probably invalid. The environment is not valid and must be clo
    SED.
    at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1337)
    at com.sleepycat.je.tree.BIN.fetchTarget(BIN.java:1367)
    at com.sleepycat.je.dbi.CursorImpl.fetchCurrent(CursorImpl.java:2499)
    at com.sleepycat.je.dbi.CursorImpl.fetchCurrent(CursorImpl.java:2526)
    at com.sleepycat.je.dbi.CursorImpl.getCurrentAlreadyLatched(CursorImpl.java:1545)
    at com.sleepycat.je.dbi.CursorImpl.getNextWithKeyChangeStatus(CursorImpl.java:1692)
    at com.sleepycat.je.dbi.CursorImpl.getNext(CursorImpl.java:1617)
    at com.sleepycat.je.dbi.DatabaseImpl.walkDatabaseTree(DatabaseImpl.java:1473)
    at com.sleepycat.je.dbi.DatabaseImpl.verify(DatabaseImpl.java:1420)
    at com.sleepycat.je.util.DbVerify.verifyOneDbImpl(DbVerify.java:366)
    at com.sleepycat.je.util.DbVerify.verify(DbVerify.java:285)
    ... 1 more
    Due to: java.io.FileNotFoundException: d:\transfer\database_FileNotFound\000002c3.jdb (the system cannot find the file specified)
    at java.io.RandomAccessFile.open (Native Method)
    in java.io.RandomAccessFile. < init >(Unknown Source)
    in java.io.RandomAccessFile. < init >(Unknown Source)
    to com.sleepycat.je.log.FileManager$ 1. < init > (FileManager.java:995)
    at com.sleepycat.je.log.FileManager.openFileHandle(FileManager.java:994)
    at com.sleepycat.je.log.FileManager.getFileHandle(FileManager.java:890)
    at com.sleepycat.je.log.LogManager.getLogSource(LogManager.java:1074)
    at com.sleepycat.je.log.LogManager.getLogEntry(LogManager.java:778)
    at com.sleepycat.je.log.LogManager.getLogEntryAllowInvisibleAtRecovery(LogManager.java:742)
    at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1320)
    ... 11 more
    Exit code = false



    It seems that the cleaner thread had deleted the file "000002c3.jdb", while he was still necessary.
    As the database is running with the parameter "je.cleaner.expunge = false", the file was kept as "000002c3.del".

    So we renamed this file in "000002c3.jdb".
    On this database running the successful dbVerify tool (exit code = true).
    The "FileNotFoundException" mentioned previously also not moved no more.


    There is another piece of information that may be useful.
    The database with the file missing the dbverify tool was not a record with "error key 592d83a084".

    Before having the 'FileNotFoundException' we found a record in the database that has a damaged secondary index. We found that
    the 592d83a084 key points on this issue.
    Deletion or update of this record fails with the following exception:

    Caused by: com.sleepycat.je.SecondaryIntegrityException: (I 4.0.71) secondary is corrupt: the primary record contains a key that is not present in the secondary cycle
    at com.sleepycat.je.SecondaryDatabase.deleteKey(SecondaryDatabase.java:937)
    at com.sleepycat.je.SecondaryDatabase.updateSecondary(SecondaryDatabase.java:900)
    at com.sleepycat.je.SecondaryTrigger.databaseUpdated(SecondaryTrigger.java:42)
    at com.sleepycat.je.Database.notifyTriggers(Database.java:2004)
    at com.sleepycat.je.Cursor.putNotify(Cursor.java:1692)
    at com.sleepycat.je.Cursor.putInternal(Cursor.java:1616)
    at com.sleepycat.je.Database.putInternal(Database.java:1178)
    at com.sleepycat.je.Database.put(Database.java:1050)
    at lu.kpmg.core.db.store.Store.store(Store.java:325)
    ... more than 51

    I hope this helps to discover the root cause of the problem and do I even better.

    Holger

Maybe you are looking for