Method Error /usr/sbin/ Fcppc Mmap
from DS4800 2 replies Latest Post - 2013-08-01T14:04:04Z by GrzegorzJ Display:ConversationsBy Date 1-3 of 3 Previous Next GrzegorzJ 2700007JAX 2 Posts Pinned topic AIX 5.3 disk disappeared from DS4800 2013-07-30T09:12:46Z | Tags: Answered question This question has been answered. Unanswered question This question has not been answered yet. Hello I have some troubles with one server Aix 5.3. I not a AIX Administrator only Linux. I see only 3 disk buy I should see 6. Disk 13,14,15 not present in server AIX. Admin from SAN claims that the FC everything is ok. Where to find the problem? Disks are available in the system, but after restart disappeared root@def1:/home/root# lspv hdisk0 00c2e9de828f99de rootvg active hdisk1 00c2e9dea45318f4 rootvg active hdisk10 00c2e9deac4e47ae None root@def1:/home/root# ===================================================== # lspv hdisk0 00c2e9de828f99de rootvg active hdisk1 00c2e9dea45318f4 rootvg active hdisk10 00c2e9deac4e47ae None hdisk13 00c2e9de6092401c defappvg active hdisk14 00c2e9debba03f63 defappvg active hdisk15 00c2e9de6cd7d0a6 defappvg active # lsdev -Cc disk hdisk0 Available 08-08-00-5,0 16 Bit LVD SCSI Disk Drive hdisk1 Available 0B-08-00-5,0 16 Bit LVD SCSI Disk Drive hdisk10 Available 08-08-00-4,0 16 Bit LVD SCSI Disk Drive hdisk13 Available 0D-08-02 1815 DS4800 Disk Array Device hdisk14 Available 07-09-02 1815 DS4800 Disk Array Device hdisk15 Available 07-09-02 1815 DS4800 Disk Array Device Output from cfgmgr. root@:/home/root# cfgmgr Method error (/usr/sbin/fcppcmmap > /etc/essmap.out): 0514-001 System error: ---------------- Time: 121 LEDS: 0x538 invoking top level program -- "/usr/sbin/fcppcmmap > /etc/essmap.out" Time: 121 LEDS: 0x539 return code = 1 ****************** no stdout *********** ****************** stderr *********** Kernel extension sdduserke was not loaded. Errno=8. Please verify SDDPCM device configuration Method error (/usr/sbin/fcppcmmap > /etc/essmap.out): 0514-001 System error: Log in to reply. Updated on 2013-07-30T11:37:53Z at 2013-07-30T11:37:53Z by GrzegorzJ GarlandJoseph 2700060BSP 167 Posts Re: AIX 5.3 disk disappeared from DS4800 2013-07-31T21:28:32Z This is the accepted answer. This is the accepted answer. What does the error log say? You can run cfgmgr -v to see more detail surrounding this error. Then check the error log again. Check the errorlog by looking at summary of events with errpt, then do detail do errpt -a | more.You can do alog -t cfg -o to see previous config
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up memory mapped with mmap, and used with mprotect up vote 1 down vote favorite I have to do a provide memory regions https://www.ibm.com/developerworks/community/forums/html/topic?id=202bdf27-c92e-48e1-a043-016c3e3e647f for threads and apply basic concepts of memory management. The idea is create a Thread Local Storage, and manage the with write, read, and clone, and erase. The problem is when I try to unprotect with mprotect the page that is associated with a thread in a TLS, this send me an error. This is my structure: The allocation for every page int cnt; for (cnt = 0; cnt < page_num; cnt++) { struct page http://stackoverflow.com/questions/10790294/memory-mapped-with-mmap-and-used-with-mprotect *p; p = (struct page *) calloc(1, sizeof(struct page)); int *map = mmap(0, page_size, 0, MAP_ANON | MAP_PRIVATE, 0, 0); if (map == MAP_FAILED) { perror("Error mmapping the file"); exit(EXIT_FAILURE); } p->address = (unsigned int)map; It is mapped by mmap, but when I try to protect the page with this code (or unprotect I have the same error, and it is in the first time I try to) for(int i = 0; i < currentTLS->page_num; i++){ tls_unprotect(currentTLS->pages[i]); } And the method tls_unprotect: void tls_protect(struct page *p){ if (mprotect((void *) p->address,PAGESIZE, PROT_READ | PROT_WRITE)) { fprintf(stderr, "tls_unprotect: could not unprotect page\n"); exit(errno); } } The protect method is the same. The errorno code is 12. I Appreciate any kind of help. Thanks. c mmap mprotect share|improve this question asked May 28 '12 at 20:51 gadiaz1 61 What OS & address size? (Linux x86_64?) –Mat May 28 '12 at 20:57 Os: Mac, adress size x64 –gadiaz1 May 28 '12 at 22:47 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote p->address = (unsigned int)map; This cast is very suspicious. On most 64bit systems (including OS X AFAIK), int is 32bit wide, so too short to hold a pointer. That cast drops 4 bytes of the 8 that compose a pointer. p->address should be de
MMapDirectory java.lang.Object org.apache.lucene.store.Directory org.apache.lucene.store.BaseDirectory org.apache.lucene.store.FSDirectory org.apache.lucene.store.MMapDirectory All Implemented Interfaces: Closeable, AutoCloseable public class MMapDirectory extends FSDirectory File-based Directory implementation that uses mmap for reading, and FSDirectory.FSIndexOutput for http://lucene.apache.org/core/6_2_0/core/org/apache/lucene/store/MMapDirectory.html writing. NOTE: memory mapping uses up a portion of the virtual memory address space in your process equal to the size of the file being mapped. Before using this class, be sure your have plenty of virtual address space, e.g. by using a 64 bit JRE, or a 32 bit JRE with indexes that are guaranteed to method error fit within the address space. On 32 bit platforms also consult MMapDirectory(Path, LockFactory, int) if you have problems with mmap failing because of fragmented address space. If you get an OutOfMemoryException, it is recommended to reduce the chunk size, until it works. Due to this bug in Sun's JRE, MMapDirectory's IndexInput.close() is unable to close the underlying OS method error /usr/sbin/ file handle. Only when GC finally collects the underlying objects, which could be quite some time later, will the file handle be closed. This will consume additional transient disk usage: on Windows, attempts to delete or overwrite the files will result in an exception; on other platforms, which typically have a "delete on last close" semantics, while such operations will succeed, the bytes are still consuming space on disk. For many applications this limitation is not a problem (e.g. if you have plenty of disk space, and you don't rely on overwriting files on Windows) but it's still an important limitation to be aware of. This class supplies the workaround mentioned in the bug report (see setUseUnmap(boolean)), which may fail on non-Oracle/OpenJDK JVMs. It forcefully unmaps the buffer on close by using an undocumented internal cleanup functionality. If UNMAP_SUPPORTED is true, the workaround will be automatically enabled (with no guarantees; if you discover any problems, you can disable it). NOTE: Accessing this class either directly or indirectly from a thread while
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 15:35:55 GMT by s_wx1157 (squid/3.5.20)