Changing disk geometry with fdisk

I have a Sun X2100 server that I am attempting to add a second disk to. I want to use SVM to mirror the root disk to the new disk. I made sure that the new disk was the same part number (540-6595) as the existing root disk. Both disks have a label that says "SATA 80GB 7200RPM" and both have the same part number on them, yet once I installed the new disk, I discovered that the new disk has different geometry than the first disk. The original disk reports "cyl 38735 alt 2 hd 64 sec 63" while the new disk reports "cyl 9718 alt 2 hd 255 sec 63".
The fact that two disks with the same part number have different geometry leads me to believe that the geometry must be soft and therefore can be modified. And after reading the man page for the fdisk command, I am further convinced of this. The "-S" argument looks like it will allow me to write out a different geometry to the second disk and make it match the root disk. However, it does not appear to have any affect.
I used the following command to read the geometry from the first disk: "fdisk -W /tmp/geom /dev/rdsk/c1d0p0". Then I used this command to write that geometry to the second disk: "fdisk -S /tmp/geom /dev/rdsk/c2d0p0". But nothing happens. There are no error messages or anything, but when I look at the target disk, it is the same as before.
Has anyone else attempted to do this or know anything about why two disks with identical part numbers have different geometry?
By the way, I have a couple other X2100 servers that were purchased with two disk drives in them. All have the same part number (540-6595) and all disks have the same geometry as my target server's root disk: "cyl 38735 alt 2 hd 64 sec 63".
Thanks,
-Mark

That is true, but I can't lay out physical partitions on disks using sectors as the size specifier. Physical partitions have to end on cylinder boundaries. Since there are fewer cylinders on the second disk but the disks are the same size (80G), the cylinders are larger on the second disk. The result of that is that I cannot create partitions on the second disk that are exactly the same size as their counterpart on the first disk; one of them is going to be slightly larger than the other. That is okay as long as the source mirror is smaller than the target mirror. But having the partitions on the second disk all being slightly larger than their counterparts on the first disk means that, eventually, one partition has to end up being smaller than its counterpart if I am using the entire disk. So that means that SVM will not mirror a partition on the first disk to a smaller partition on the second disk.
The bottom line here is that I need the geometry to match, or at a minimum, the cylinder counts need to be exact multiples of each other. It looks like the fdsik command should allow me to modify the geometry on a disk, but so far I have ben unsuccessful in making it work.
-Mark

Similar Messages

  • Disk geometry changing after boot

    I have installed solaris 10 on v210 machine but while installation it is showing disk geometry as follow
    but when i remove the cdrom it change controller and target numbers. because of which i am not able to boot the machine and getting error posted below.
    is there any work around on this.
    AVAILABLE DISK SELECTIONS:
    0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@1c,600000/scsi@2/sd@0,0
    1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@1c,600000/scsi@2/sd@1,0
    Specify disk (enter its number):
    The / file system (/dev/rdsk/c0t0d0s0) is being checked.
    WARNING - Unable to repair the / filesystem. Run fsck
    manually (fsck -F ufs /dev/rdsk/c0t0d0s0).
    Sep 24 16:32:54 svc.startd[7]: svc:/system/filesystem/usr:default: Method "/lib/svc/method/fs-usr" failed with exit status 95.
    [ system/filesystem/usr:default failed fatally (see 'svcs -x' for details) ]
    Requesting System Maintenance Mode
    (See /lib/svc/share/README for more information.)
    Console login service(s) cannot run
    Root password for system maintenance (control-d to bypass):

    I have been having a very similar problem on a Mac Mini that I purchased in Spain, but currently use with a U.S. keyboard. Upon restart, I would lose the U.S. keyboard layout from the menu item, and the Spanish-ISO Flag would remain, by itself, despite not changing keyboards. The "Show Character Palette" and "Show Keyboard Viewer" would also be lost from the menu.
    My wife, who has a separate login ID, and who also uses the same keyboard on this same computer, never had this problem, despite often switching the OS language between English and Spanish at the top of the list, (depending on what mood she is in.)
    I have seemed to have made the problem go away by changing the top language to Spanish, restarting, and then changing it to English, and restarting. And then changing the menu (in the International Preference Pane) to the way I need it, with the US keyboard layout and the other menu items.
    Through two restarts, and a full shutdown and restart, since after I did the entire procedure I just mentioned, the menu has remained the way I want it.
    I have no idea why. Perhaps some preference was getting stuck somewhere.
    (Now if I could just get my apps to remember my recent docs, darn you TextEdit!)

  • AirPort Utility allows changing Time Capsule disk password with a device password only

    Hello!
    I just noticed that changing disk password is allowed for anyone who has a Time Capsule device password. (AirPort Utility WIndows version)
    I find that illogical.
    Is it a kind of bug or it is intended to be this way?

    Well, lets say that you had friends or other family members that use the Time Capsule for wireless connections.
    And, you have files on the Time Capsule drive that you only want to share with one other person. If you use a disk password, only the person with the disk password will be able to see the files on the drive.
    If you don't set up a disk password, then anyone who is using the Time Capsule wireless will be able to see the files on the drive.
    So, if you want everyone to have access to the files on the drive, then use the device password.
    If you do not want everyone to have access to the files on the drive, then use a disk password

  • Partition disk with fdisk and windows can't be installed.

    so I have been running ArchLinux for a few days, have successfully trashed my partition table once and lost everything on my systemdisk sh*t happens thats why I have one drive as system disk
    Anyway, since all my partitions died I thought I could repartiotion the disk (I had been thinking of doing it anyway). So I booted the ArchLinux install disc once again and then partition my disk something like this:
    /dev/sda1 - ntfs (for my windows xp)
    /dev/sda2 - /
    /dev/sda3 - /home
    /dev/sda4 - swap
    All partitions are primary since I only need 4. So off I go install Arch, config everything and so on. Then today I decided to install windows, so I reboot and insert my windows disc and press any key too boot from the CD and then Nothing. My computer just stands there black screen my CD spindowns and stops my HD is chewing away like crazy.
    I have no idea what to do, thought my disk has been broken or something so I open my computer case and disconnect all disks attach my secondary disk as my only one just to see if the install starts and so it does (but I don't install because it is wrong disk ). Then I thought it might be the sata-cable who is bad (happend before) so I tried another one and my systemdisk again, but no luck. After that I boot archlinux installdisc and clear  my entire partition table, recreate one 20gb ntfs partition make sure it has boot-flag and reboot. Still no luck, so back into linux and remove everything on that disk and reboots. And now the installation finally starts but instead of creating a partition during xp-install I reboot linux once again to create it in fdisk, and once again the installation doesn't start. So now I have cleare the entire disk from partitions again and created my XP partition during the XP install.
    WHY can't I create my partitions by using fdisk in linux? and yes I did create ntfs filesystem on my partition (mkntfs or what the name was, exists on archlinux ftp install disc)

    Yes I do know Windows will overwrite the MBR but that isn't the problem and overwriting the MBR doesn't destroy my partitions just uninstalls lilo (yes I use lilo, to lazy to learn using grub when lilo do the job god enough for me)
    My problem is that I can't start the windows install. Here is what I did after ArchLinux was installed
    1) Start my computer
    2) insert windows install CD when computer is doing the BIOS startup stuff
    3) Now I get a message to press any key to boot from the CD, this is from the Windows install CD and I do press the key.
    4) Normally I would get into the Windows Install program here But now I Don't, NOTHING happens.
    Then I started my search on what was wrong. I have installed Linux many times before windows and I have reinstalled windows lots of times without the need of reinstalling linux or repartition my drive.
    In short, after lots of testing my computer does not start the windows install if my first disk has been partitioned with fdisk in linux (havn't tried other partition tools in linux).
    EDIT: The windows install starts if I boot into linux and use fdisk to clear the entire drive from all partitions, yes no partitions at all not even one for windows.
    Last edited by McZ (2008-02-01 20:07:42)

  • Problem with TC disk mounting with multiple accounts

    I have a 1GB TC set up manually to back up with "accounts". Only in test mode so far, but soon plan to use this TC as a backup drive for about 6 users in a research group. Only research files will be backed up, but we want the privacy of separate accounts so that users dont disable TM to safeguard privacy..
    (I also have a 500GB TC at home without accounts and all users can see all the sparsebundles)
    As we have computers across subnets in our group, the way we set up TM is to create an AFP share (eg timecapsule.domain.edu) with a full IP address and login info saved, and then when TM works the first time it knows the full path in the future.
    For any user, in Time Machine the 1GB TC can appear twice:
    1) as the "root" Time Capsule drive (where a sparsebundle for each account can be written - just like at home) and
    2) for an account-specific drive.
    But as laptops move around, go home, and back, when they get back to the office only the "main Time Capsule drive" shows up automatically in Time Machine. The account-shares sometimes show up in the "Change Disk" menu, but as folders with red dashes indicating "no write access" - implying it at least remembers they were there. The specific user account shares do not show up without doing a manual "connect to server" (but then it works fine).
    Is there a way to fix this so we do not have to do a "Connect to Server" every time we get back to work?
    I have tried, using Keychain Access, to remove the info for the main Time Capsule share, so that hopefully only the account share info will be saved, but this does not seem to work.
    Is there a way with the TC to have the TM share be "afp:IPaddress/useraccount"?
    thanks.

    just a bump since its been a week and no replies? Anyone else "sharing" their TC with other users? How do you set the default configs?

  • How to change the geometry dynamicly

    Hello,
    I'm a newbie for java3d. I'm developing a degning tool with java3d, and need to change the geometry frequently therefore. However, the 3d result always shows the initial data only. Can someone gives me a hint about what's the problem, and how can I solve it?
    Thank you very much!
    xiaoni
    Following is the relative codes:
    private SimpleUniverse su;
    private BranchGroup sceneBG;
    private BoundingSphere bounds;  // for environment nodes
    public void paintComponent(Graphics g) {
            setLayout(new BorderLayout());
            GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
            Canvas3D c = new Canvas3D(config);
            add("Center", c);
            c.addKeyListener(new KeyHandler());
            su = new SimpleUniverse(c);
            createSceneGraph();
            initUserPosition();        // set user's viewpoint
            orbitControls(c);   // controls for moving the viewpoint
            su.addBranchGraph(sceneBG);
        public void createSceneGraph() {
            sceneBG = new BranchGroup();
            bounds = new BoundingSphere(new Point3d(0,0,0), BOUNDSIZE);  // for environment nodes
            lightScene();         // add the lights
            addBackground();      // add the sky
            sceneBG.addChild( new CheckerFloor(affine).getBG() );  // add the floor
            addBuilding();
        //    sceneBG.compile();   // fix the scene
       private void addBuilding(){
            BranchGroup floorBG = new BranchGroup();
            ArrayList groundArray = new ArrayList();
            int num;
            Point3f p1;
            Vertex v1;
            for (int n = 0; n < buildings.size(); n++) {
                ground = buildings.get(n).getGround();
                num = ground.getNumber();
                for (int i = 0; i < num; i++) {
                    v1 = ground.getVertex(i);
                    p1 = new Point3f(v1.x,v1.z,v1.y);
                    groundArray.add(p1);
                floorBG.addChild( new ColouredObj(groundArray, white) );
            sceneBG.addChild(floorBG);
        }note:
    1. buildings is a global variable, which stores the geometry data. When the data is changed somewhere else, the 3D result does not change therefore.
    2. ColouredObj is a class extented from Shape3D, which transfer the format from arrayList to quadArray, providing both gemetry and appearance.

    Ok, thank you for your reply.
    In fact, it doesn't change anything on my OBJ objects : they always look strange (Java interpretation of faces more than 3 points is quite strange for me)... I will try to decompose each faces of my objects into triangles, but if you know an other easier method, it would be great !
    So, I consider this topic solved, thank you for your help !!!
    Regards.

  • Change Default 'Open With'

    Folks,
    I changed something, but don't know what. I want ACR to open for RAW or JPEGs. I believe my prefs are set correctly in both ACR and Bridge. DblClk in Bridge should open ACR; it opens photoshop.  I've gone to Finder and a file Get Info > Open all files with Adobe Bridge. This isn't working. How can I change the Right Clik >Photoshop CS4 (Default) to either ACR or Bridge?
    Frustrated,
    Regards to all,
    Charles

    How do you use JPEGs? Seems to me the easiest way to make minor JPEG
    adjustmentisACR! Dclk > Adjust >Done.
    I don't make adjustments to jpegs
    Only work in Raw and save as PSD files. Those files can be resized and saved
    as jpeg to customers needs. Once you have saved a jpeg you should not make
    changes to them because that will cause loss of quality, you don't have that
    whit PSD or Tiff files.
    When you have good reasons to shoot in jpeg you should do so but the changes
    that you can make with them in ACR are very limited compared to use of Raw
    files.
    My importing from camera  continues to be a mixed bag. I shoot raw 90% and
    make JPGs via ACR (after importing) as I need them. It''s the copying to
    folder, subfolder, other drive, convert to DNG, Add meta data, Keyword...ALL
    on Import seems overwhelming; and it is. I just import to a folder and decide
    then, almost one by one.
    I use Adobe Photodownloader for that, in Bridge choose Get files from camera
    and explore the advanced setting, you can do a lot in one click.
    Thanks for the input on 'Open With'. I've been having some problems with
    Expression Media 2 and I've been trying different methods to get that right.
    One of the things I tried was to Repair Permissions in Disk Utility. I think,
    but I'm not certain, that that may have corrected the Open With situation.
    It is always good to use system maintenance every now and then
    Here's a question about Replying to this forum. How do you include the partial
    reply? Do you 'Copy & Paste' a selected text? For example, How did you add
    "Still can not change the 'Open With' etc., etc." comment in your reply?
    On the forum site you can do so when you use the reply button and then use
    the tool bar above to quote.  But I use my email application (Office for Mac
    2008) and simply select the text I want to quote and then choose reply.

  • What problems, if any, has anyone had by changing to iCloud with their iWeb pages?

    What problems, if any, has anyone had by changing to iCloud with their iWeb pages?

    The iWeb Application will still run after Mobile Me will be turned off; you can export your web pages to a folder on your hard disk and use ftp to upload the pages to another hosting service.
    The generated webpages however will refer to icons located on the mobile me server. To make the forward/backward arrows in slide shows work again you will have to patch the iWeb Application. See Old Toad's tutorial on how to do this:
    Modify the iWeb Application: http://oldtoadstutorials.net/No.26.html
    Also there is a nice tutorial on how to transit from Mobile Me to another service; see Roger Wilmut's page here:
    Migrating from Mobile Me:
    http://www.wilmut.webspace.virginmedia.com/notes/migrate/frommobileme3.html
    Regards
    Léonie

  • TS1337 I don't see [Preferences] or [Change Disk] when I click on Time Machine

    I need to change my backup volume for Time Machine. But I don't see [Preferences] or [Change Disk] when I click on Time Machine from the System Preferences.

    SharonLee123 wrote:
    As I stated, I'm not a mac person, so sorry about that.
    Not a problem.  That's what we're here for. 
    It's currently backing up a sub folder onto an external drive (my backup drive). This is why I looking for [change].
    I am trying to backup everything on my data/application Drive, from the Root, so it gets everything on the drive.
    By default, Time Machine will back up your entire system.  If you're sure it's only backing up one folder, you (or someone) must have excluded all sorts of other things.  Click the Options button on the Preferences window to see the exclusion list.
    It should look something like this: 
    But with lots and lots of exclusions.
    I suspect your whole Mac really is getting backed-up, but you're just not seeing them.  What you see in the "Star Wars" display depends on what's on your screen when you Enter Time Machine.   If you have a Finder window showing just that sub-folder, when you Enter Time Machine that's all you'll see. 
    If you start with a Finder window showing, say, your home folder, that's what you'll see in the "Star Wars" display.  If your Finder windows have sidebars, once in Time Machine you can select other things in the sidebar to display.
    You might want to review the Time Machine Tutorial, and perhaps browse Time Machine - Frequently Asked Question #15A.
    Don't hesitate to post back if you still have questions or problems.

  • Using disk created with different security option

    Hi
    I'm struggling with using my backups / sparsebundle I originally created "With Device Password". I wanted to give my nephew access to my Airport Time Capsule 7.7.2 and changed the disk sharing option to "With Accounts" and set up two accounts. When I went back to Time Machine, I had no access to the previously used disk. But I want to continue using this disk for incremental backups and any potential recovery task.
    After reading this http://discussions.apple.com/message/22323537#22323537 and others, I moved the sparsebunde file to my user account disk, replacing the new one created today. However, under System Preferences, Time Machine does not seem to recognise any "Latest Backup". It just displays the remmanent space available. Is it safe to perform a new backup? I'm afraid if I do a new backup this could replace all the content on the original disk or mess things further up. Any full backup would be larger than the space available on the ATC. Hope somebody can give me some input.
    Thanks.

    Wow, thanks LaPastenague. If I had seen the pondini web page I had saved myself a lot of trouble. But I fixed it by miracle. Let me explain:
    When I went to Airport Utility, I selected the Disks tab and chose Secure Shared Disks 'With Accounts'. There were no accounts there, not even my proper user account as defined by Mac. So I 'created' them mirroring my nephew's and my MBP's user account details. So I got a new disk as result. The original disk was unaccessible. Scared as I was, I looked in Finder for the Airport TC, made all files visible and found two folders, one called 'Data', the original one, and the new with my user name. Each had a machinename.sparsebundle file and Data still had its own intact. I would make a copy of it, but it was impossible due to its size (1.5TB). Under TM, I could not find / select it anymore. So I went back to Airport, undid the disk sharing 'With Accounts" and reverted to 'With device password'. But then, against any logic, I could not even find the original 'disk' - neither under TM nor in Finder! Next, I reverted Airport to 'With Accounts' sharing, and in Finder I moved the file to my new user folder within Airport, as I said. After posting my question here I had a phone call and forgot to disable TM! When I came back to my MBP TM was backing up... just an increment! So I guess I was saved by chance. I had some important backups I luckily could save and are still there.
    I hope this helps others with the same issue. But I recommend to have a look at the Pondini's guide before messing with any settings in Airport / Time Machine. I found I can't use intuituon with Airport as I do with Macs. They seem to be different philosophies in spite of being both Apple. I learnt my lesson. The good thing is that, for whatever reason, 'with accounts' Airport and TM seem now to work more smoothly.

  • Time Machine Change Disk - Getting original backups

    I wanted to look at another disk which I had been using for backup before getting a Time Machine. When I switched back, I answered too many questions and ended up disconnecting the Time Machine and did a reboot.
    When I finally reconnected to the Time Machine (and the internet), I found out I am doing a full backup and the original backups.backupdb does not show up on this Time Machine, even though the space is claimed.
    What do I need to do to start backing up only the changed disks to the original backups.backupdb?
    Send thoughts to mailto:[email protected]

    Juan Terrazas1 wrote:
    What I wonder is if I delete the TM plist then where is TM Preferences reading its information?
    No, the only place that's kept is in plist in the /Library folder at the top level of the drive.
    Sometimes there's a file with the same name in a user library, but it doesn't have that info. That's why it looks like either the file didn't get deleted, or the wrong one was deleted, or System Preferences was still running, with the info in memory.
    Is there another plist file that I should delete?
    No.
    But let's be clear; do you mean the disk is still shown as your Time Machine drive on the Preferences panel (after Name):
    |
    |
    or that it shows up in the list of items you can select when you click +Select Disk:+
    |

  • Change file name with oreilly servlet

    I am using oreilly servlet package and I want to change the file name to the file I am uploading, is this possible ?
    How ?
    Thanks.
    here I post the servlet code:
    package com.reducativa.sitio.servlets;
    * DemoParserUploadServlet.java
    * Example servlet to handle file uploads using MultipartParser for
    * decoding the incoming multipart/form-data stream
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import com.oreilly.servlet.multipart.*;
    public class DemoParserUploadServlet extends HttpServlet {
    public void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    PrintWriter out = response.getWriter();
    response.setContentType("text/plain");
    out.println("Demo Parser Upload Servlet");
    File dir = new File("f:/");
    if (! dir.isDirectory()) {
    throw new ServletException("Supplied uploadDir " + "f:/ " +
    " is invalid");
    try {
    MultipartParser mp = new MultipartParser(request, 10*1024*1024); // 10MB
    Part part;
    while ((part = mp.readNextPart()) != null) {
    String name = part.getName();
    if (part.isParam()) {
    // it's a parameter part
    ParamPart paramPart = (ParamPart) part;
    String value = paramPart.getStringValue();
    out.println("param; name=" + name + ", value=" + value);
    else if (part.isFile()) {
    // it's a file part
    FilePart filePart = (FilePart) part;
    String fileName = filePart.getFileName();
    if (fileName != null) {
    // the part actually contained a file
    long size = filePart.writeTo(dir);
    out.println("file; name=" + name + "; filename=" + fileName +
    ", filePath=" + filePart.getFilePath() +
    ", content type=" + filePart.getContentType() +
    ", size=" + size);
    else {
    // the field did not contain a file
    out.println("file; name=" + name + "; EMPTY");
    out.flush();
    catch (IOException lEx) {
    this.getServletContext().log("error reading or saving file");
    }

    Hi there,
    I am facing the same problem that you have stated in your Feb 26, 2002 10:28 AM message regarding "change file name with oreilly servlet", I would like to change the file name to include a unique identifier upon upload, did you ever find a solution to your problem?
    Thanks!
    Todd
    [email protected]

  • Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    Updated my iphone4 with ios6.1 software. App store is not working. Tried rebooting, restoring, changing date, signing with another apple id etc. but no luck. can someone please help?

    I guess I will wrap this up. I have abandoned iPhoto and viewing my Photo Streams using it and moved to Adobe products (Bridge + PS). So that's that.

  • Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?

    Regarding passport registration issues, I need to have a letter from you including both the old and new imei numbers. Could you please send me an email mentioning that I have changed the phones with the given imei numbers?

    You're not addressing Apple here. This is a user-to-user technical support forum. If you want to contact Apple, use the Contact Us link at the bottom right of every page for information on how to do so.
    Best of luck.

  • While trying to change a BOM with transaction CS02, a runtime error appears

    While trying to change a BOM with transaction CS02, a runtime error appears.
    In intial screen he entered material ,plant BOM usage and date valid from  after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
    Developer trace
    ABAP Program SAPLKED1_WRITE_CE4_BPS1                 .
    Source LKED1_WRITE_CE4_BPS1U01                  Line 30.
    Error Code SAPSQL_ARRAY_INSERT_DUPREC.
    Module  $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
    Function HandleRsqlErrors Line 775.
    RABAX: level LEV_RX_STDERR completed.
    RABAX: level LEV_RX_RFC_ERROR entered.
    RABAX: level LEV_RX_RFC_ERROR completed.
    RABAX: level LEV_RX_RFC_CLOSE entered.
    RABAX: level LEV_RX_RFC_CLOSE completed.
    RABAX: level LEV_RX_IMC_ERROR entered.
    RABAX: level LEV_RX_IMC_ERROR completed.
    RABAX: level LEV_RX_DATASET_CLOSE entered.
    RABAX: level LEV_RX_DATASET_CLOSE completed.
    RABAX: level LEV_RX_RESET_SHMLOCKS entered.
    RABAX: level LEV_RX_RESET_SHMLOCKS completed.
    RABAX: level LEV_RX_ERROR_SAVE entered.
    RABAX: level LEV_RX_ERROR_SAVE completed.
    RABAX: level LEV_RX_ERROR_TPDA entered.
    RABAX: level LEV_RX_ERROR_TPDA completed.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
    RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
    RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
    RABAX: level LEV_RX_END entered.
    RABAX: level LEV_RX_END completed.
    RABAX: end RX_RFC
    In sm21
    Perform rollback
    Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
         Short dump "090618 110101 donalda 11557 " generated
    Runtime Error          SAPSQL_ARRAY_INSERT_DUPREC
    Exception              CX_SY_OPEN_SQL_DB
           Occurred on     18.06.2009 at   11:01:01
    The ABAP/4 Open SQL array insert results in duplicate database records.
    What happened?
    Error in ABAP application program.
    The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
    one of the
    statements could not be executed.
    This is probably due to an error in the ABAP program.
    What can you do?
    Print out the error message (using the "Print" function)
    and make a note of the actions and input that caused the
    error.
    To resolve the problem, contact your SAP system administrator.
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer
    termination messages, especially those beyond their normal deletion
    date.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "RKE_WRITE_CE4__BPS1" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    How to correct the error
    The exception must either be prevented, caught within the procedure
    "RKE_WRITE_CE4__BPS1"
    "(FUNCTION)", or declared in the procedure's RAISING clause.
    To prevent the exception, note the following:
    Use an ABAP/4 Open SQL array insert only if you are sure that none of
    the records passed already exists in the database.
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
    "SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
    "RKE_WRITE_CE4__BPS1"
    If you cannot solve the problem yourself, please send the
    following documents to SAP:
    1. A hard copy print describing the problem.
       To obtain this, select the "Print" function on the current screen.
    2. A suitable hardcopy prinout of the system log.
       To obtain this, call the system log with Transaction SM21
       and select the "Print" function to print out the relevant
       part.
    3. If the programs are your own programs or modified SAP programs,
       supply the source code.
       To do this, you can either use the "PRINT" command in the editor or
       print the programs using the report RSINCL00.
    4. Details regarding the conditions under which the error occurred
       or which actions and input led to the error.

    Hi ,
    you are getting beacuse u are trying to do mass update to database.
    Please check that below note are applicable to your system.
    Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
    Note 869534 - AFS MRP doesn't work properly with all BOM item categories
    Thanks Rishi Abrol

Maybe you are looking for