Çì³î 7.2 ¿¡¼­ N40L ÀýÀü¸ðµå ¼³Á¤¹æ¹ý¹®ÀÇ

MASS   
   Á¶È¸ 2425   Ãßõ 0    

40L 과 36L 사용하고 있고 그동안 5.XX 6.XX 버전을 사용해서 하드디스크 절전 모드에 아무런 문제가 없었는데 7.2 레드필로 올리고 나서 설정이 안되는 군요. 40L 중에서 HP 레이드 카드를 추가로 단것은 절전이 안되었습니다. 

방법이 있을까요?

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
Áö±Ý±îÁö´Â ÀýÀüÀ¸·Î Àß »ç¿ëÇÏ°í °è¼Ì´ÂÁö ¸ð¸£Áö¸¸, ½Ã³î·ÎÁö/Çì³î·ÎÁö¿¡¼­ ±×·¸°Ô Ãßõµå¸®´Â ±â´ÉÀÌ ¾Æ´Õ´Ï´Ù.
ÇϵåÀÇ ¼ö¸íÀ» °¦¾Æ ¸ÔÀ» ¼ö À־¿ä.
¿À´Ã ÀÌ ÀýÀü ¶§¹®¿¡ ÇÏµå »ç¸ÁÇϽźÐÀÌ ±ÛÀ» ¿Ã¸®¼Ì³×¿ä.
https://svrforum.com/nas/1300957
paramax 2024-03
ÀÏ´Ü ÀýÀü¸ðµå¿¡¼­ ±ú´Â ÀÌÀ¯¸¦ È®ÀÎÇÏ·Á¸é
 HDDÀÇ ´ë±â±â´É¿¡¼­ ´ë±â±â´É ·Î±× È°¼ºÈ­¸¦ ÄÑÁÖ°í Áö¿ø¼¾ÅÍ ¾Û¿¡ °¡º¸¸é ½Ã½ºÅÛ ·Î±× µµ±¸°¡ Àִµ¥
µ¿¸é µð¹ö±ë ¸ðµå¸¦ È°¼ºÈ­ ½ÃÄÑÁÖ°í ¹®Á¦¹ß»ýÀ» "ÀÚÁÖ±ú¿ì±â"·Î ¼³Á¤ÇØ ÁÝ´Ï´Ù.

ÀÌ·¸°Ô ¼³Á¤ ÇØ ÁÖ¸é Çϵåµð½ºÅ©°¡ ÀýÀü¸ðµå¿¡ ºüÁö°Å³ª ±ú¾î³¯¶§¸¶´Ù
/var/log/hibernation.log ÆÄÀÏ°ú /var/log/hibarnationFull.log¿¡ ·Î±×°¡ ½×ÀÔ´Ï´Ù.

ÀÌ°É ÀýÀü¸ðµå µé¾î°¥»óȲ¿¡¼­ tail¸í·ÉÀ¸·Î °¨½ÃÇØÁÖ¸é µË´Ï´Ù.
tail -f /var/log/hibernationFull.log | grep -v 'proc\|tmpfs'

Àúµµ °°Àº ¹®Á¦¸¦ °Þ¾ú´Âµ¥ ·¹µåÇÊ¿¡¼­ ÀýÀü¸ðµå ¾ÈµÇ´Â°Ç ¾Æ¸¶ ÀÌ ¹®Á¦ÀÏ°Ì´Ï´Ù.
/var/log/hibernationFull.logÆÄÀÏÀ̳ª dmesg·Î È®ÀÎÇؼ­ ÀýÀü¸ðµå µé¾î°¥¶§¸¶´Ù ÀÌ·± ¿¡·¯·Î±×°¡ ½×¿©ÀÖÀ¸¸é °°Àº ¹®Á¦°¡ ¸ÂÀ»°Ì´Ï´Ù.
<redpill/smart_shim.c:688> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from          (null) - it failed

ÀÌ ¿¡·¯´Â º¸Åë Çϵåµð½ºÅ©°¡ ÀýÀü¸ðµå·Î µé¾î°¡¸é ½Ã½ºÅÛÀÌ HDIO_DRIVE_CMD ¸í·ÉÀ» ½ÇÇàÇϴµ¥ ÀÌ°É redpillµå¶óÀ̹ö°¡ ó¸®ÇÏÁö ¸øÇؼ­ ¿¡·¯°¡ ¹ß»ýÇÏ°Ô µÇ°í
¿¡·¯°¡ ¹ß»ýÇϴϱî /var/log/kern.log ¿Í /var/log/messages ·Î±× ÆÄÀÏ¿¡ ÀúÀåÇÏ·Á°í Çϸ鼭 HDD¸¦ ´Ù½Ã ±ú¿ì´Â°Ô ¿øÀÎÀÔ´Ï´Ù.
±×·¡¼­ Çϵåµð½ºÅ©°¡ ÀýÀü¸ðµå¿¡ µé¾î°¡ÀÚ¸¶ÀÚ ´Ù½Ã ±ú¾î³ª°Ô µË´Ï´Ù.

ÇØ°á¹æ¹ýÀº ·¹µåÇÊ µå¶óÀ̹öÀÇ redpill/smart_shim.c ÆÄÀÏÀ» ¼öÁ¤Çؼ­ Å©·Î½º ÄÄÆÄÀÏÇØ ¾²°Å³ª...
¿¡·¯·Î±×¸¦ Ãâ·ÂÇÏ´Â ÆÄÀÏÀÇ À§Ä¡¸¦ Çϵåµð½ºÅ© µð·ºÅ丮(/var/log/)¿¡¼­ ¸Þ¸ð¸®(tmpfs)·Î ¿Å±â´Â ¹æ¹ýÀÔ´Ï´Ù.
º¸Åë tmpfs´Â /tmpÇÏ°í /run µð·ºÅ丮¿¡ ½Éº¼¸¯ ¸µÅ©°¡ °É·ÁÀֱ⠶§¹®¿¡ Æнº¸¦ /var/log¿¡¼­ /tmp·Î ¹Ù²ãÁÖ¸é µË´Ï´Ù.

 /var/log/kern.log ÀÇ À§Ä¡¸¦ ¼³Á¤ÇÏ´Â ÄÁÇÇ±× ÆÄÀÏÀº /etc.defaults/syslog-ng/patterndb.d/kernel.conf ¿¡ ÀÖ°í
/var/log/messages ÆÄÀÏÀº /etc.defaults/syslog-ng/patterndb.d/message.conf ÆÄÀÏ¿¡ À§Ä¡¸¦ ¼³Á¤ÇÒ¼ö ÀÖ°Ô µÇ¾îÀÖ½À´Ï´Ù.
ÇØ´ç ÆÄÀÏÀ» vim À¸·Î ¿­¾îº¸¸é
~~
destination d_kernel { file("/var/log/kern.log"); }
log {
~
ÀÌ·± ºÎºÐÀÌ Àִµ¥ /var/log/ÀÇ À§Ä¡¸¦ /tmp/·Î ¹Ù²Ù°í ÀçºÎÆà ÇÏ¸é µË´Ï´Ù.
ÀÌ·¸°Ô ¹Ù²Ù¸é ·Î±×ÆÄÀÏÀÌ ¸Þ¸ð¸®¿¡ ½×À̴ϱî ÀçºÎÆÃÇÏ¸é ±âÁ¸ ·Î±×°¡ ´Ù Áö¿öÁö´Â ¹®Á¦°¡ ÀÖ½À´Ï´Ù..

À̰Ŷû ºñ½ÁÇÑ ¹®Á¦·Î Çϵå¿þ¾î »óÅ°ü·ÃµÈ ·Î±×ÆÄÀÏÀÎ /var/log/scemd.log µµ
ÀýÀü½Ã¿¡ ÀåÄ¡ÀÇ Çϵåµð½ºÅ© led±Û ²ô´Â ¼³Á¤°ü·Ã Çؼ­ ¹®Á¦¸¦ ÀÏÀ¸ÄÑ ¿¡·¯·Î±×¸¦ ½×À¸¸é¼­ Çϵ尡 ´Ù½Ã ±ú´Â Àϵµ ÀÖ°í

±×¿Ü¿¡ µ¥ÀÌÅÍ ½ºÅ©·´ ¿¹¾à ½ºÄÉÁì·¯¸¦ 1´Þ ¸¶´Ù ½ÇÇàÇÏ°Ô Çسù´Âµ¥µµ ºÒ±¸ÇÏ°í 1½Ã°£¸¶´Ù È®ÀÎÇϸ鼭 Çϵ带 ±ú¿ìÁú ¾Ê³ª..
À©µµ¿ì ÆÄÀÏ°øÀ¯ ÇÏ´Â ¼­ºñ½ºÀÎ smbd (»ï¹Ùµ¥¸ó)¿¡¼­ºê·Îµåij½ºÆ®¸¦ ¹Þ°Å³ª ÁÖ±âÀûÀ¸·Î ¿¬°áµÈ ³×Æ®¿÷ µå¶óÀÌºê °»½ÅÇÒ¶§ /var/cache/sambaÀÇ
tdbÆÄÀÏ °»½ÅÇϸ鼭 ƒÆÁú ¾Ê³ª..

Çϵåµð½ºÅ© ÀýÀü ¾ÈµÇ´Â ¹®Á¦´Â ÁøÂ¥ º°ÀÇ º° ÄÉÀ̽º°¡ ³Ê¹« ¸¹¾Æ¼­ ±×³É ÀýÀü¾È¾²°í ¾²´Â°Ô Á¤½Å°Ç°­»ó ´õ ÁÁ´õ¶ó±¸¿ä
     
https://github.com/PeterSuh-Q3/redpill-lkm/blob/master/shim/storage/smart_shim.c#L688

    //Before we execute ioctl we need to save the original header as ioctl will override it (they share buffer)
    u8 req_header[HDIO_DRIVE_CMD_HDR_OFFSET];
    if(unlikely(copy_from_user(req_header, buff_ptr, HDIO_DRIVE_CMD_HDR_OFFSET) != 0)) {
        pr_loc_err("Expected to copy HDIO_DRIVE_CMD header of %d bytes from %p - it failed", HDIO_DRIVE_CMD_HDR_OFFSET,
                  buff_ptr);
        return -EIO;
    }

->
/var/log/hibernationFull.logÆÄÀÏÀ̳ª dmesg·Î È®ÀÎÇؼ­ ÀýÀü¸ðµå µé¾î°¥¶§¸¶´Ù ÀÌ·± ¿¡·¯·Î±×°¡ ½×¿©ÀÖÀ¸¸é °°Àº ¹®Á¦°¡ ¸ÂÀ»°Ì´Ï´Ù.
<redpill/smart_shim.c:688> Expected to copy HDIO_DRIVE_CMD header of 4 bytes from          (null) - it failed

->
Çϵåµð½ºÅ©°¡ ÀýÀü¸ðµå·Î µé¾î°¡¸é ½Ã½ºÅÛÀÌ HDIO_DRIVE_CMD ¸í·ÉÀ» ½ÇÇà
ÇØ°á¹æ¹ýÀº ·¹µåÇÊ µå¶óÀ̹öÀÇ redpill/smart_shim.c ÆÄÀÏÀ» ¼öÁ¤Çؼ­ Å©·Î½º ÄÄÆÄÀÏÇØ ¾²°Å³ª...

---------------------------------------------------------------------

Á¦°¡ REDPILL TCRP-MSHELL °³¹ßÀÚÀÔ´Ï´Ù.
Á¶¾ðÁֽŠ»çÇ×´ë·Î Å©·Î½º ÄÄÆÄÀÏÇؼ­ ¹Ý¿µµå¸± ¼ö Àִµ¥¿ä.

³»¿ëÀ» ¾î¶»°Ô ¼öÁ¤ÇØ¾ß Å©·Î½º ÄÄÆÄÀÏÀÌ µÇ´ÂÁö ±¸Ã¼ÀûÀ¸·Î ¾Ë·ÁÁÖ½Ç ¼ö ÀÖÀ¸½Å°¡¿ä?
Àú ·ÎÁ÷ÀÌ ÀÖ´Â ¶óÀÎ 686 ~ 691 À» ¸ðµÎ ºí·Ïó¸® ÇÏ¸é µÉ±î¿ä?
          
paramax 2024-03
ÀßÀº ¸ð¸£°Ú½À´Ï´Ù¸¸ 687¶óÀο¡¼­ HDIO_DRIVE_CMD·Î Ä¿¸Çµå¸¦ ¹Þ¾Æ¼­ copy_from_user·Î Ä¿³Î¿¡ ½á³Ö´Â ÀÛ¾÷À» ÇÒ¶§ ÀÌ Ã³¸®°¡ ½ÇÆÐÇÒ °æ¿ì pr_loc_err·Î ¿¡·¯¸¦ Ãâ·ÂÇÏ´Â ¸ð¾çÀÔ´Ï´Ù¸¸
687¶óÀÎÀÇ copy_from_user±îÁö ºí·°Ã³¸®Çϸé À̹ø ¿¡·¯¿Í °ü·Ã¾ø´Â Ä¿¸Çµå±îÁö ´Ù ó¸® ¾ÈµÉ°Å °°À¸´Ï±î
688, 689¶óÀÎÀÇ ¿¡·¯¸¦ Ãâ·ÂÇÏ´Â Á¶°Ç¿¡¼­ buff_ptr Æ÷ÀÎÅÍ°¡ nullÀΰæ¿ì´Â ¿¡·¯Ãâ·ÂÀ» ÇÏÁö ¾Êµµ·Ï ¹Ù²ãÁÖ½Ã¸é µÉ°Å °°½À´Ï´Ù...(¾Æ¸¶µµ¿ä..^^;)
               
Á¶¾ð °¨»çÇÕ´Ï´Ù.
¸»¾¸ ÁֽŴë·Î ¼öÁ¤ÇØ ºÃ½À´Ï´Ù.
https://github.com/PeterSuh-Q3/redpill-lkm/commit/ccbdcf9771a8e8af5f69ca5574c933bb5657b9a7
Áö±Ý lkm ÄÄÆÄÀÏ ¹Ý¿µÇß½À´Ï´Ù.
https://github.com/PeterSuh-Q3/redpill-lkm/releases/tag/24.3.16

¾ÈÁ¤¼ºÀº ±ÝÀÏ °è¼Ó ½ÃÇèÇÏ°Ú½À´Ï´Ù.
ÇÏÀ̹ö³×À̼ǿ¡¼­ °è¼Ó ±ú¾î³ª´ÂÁö ½ÃÇè ºÎŹµå¸³´Ï´Ù.
tcrp-mshell ·Î¸¸ Àçºôµå ÇÏ¼Å¾ß ÇÕ´Ï´Ù.

¾ÈÁ¤¼º È®ÀεǸé rr ÀÇ wjz304´Ô²²µµ ÀüÆÄÇÏ°Ú½À´Ï´Ù.


NAS
Á¦¸ñPage 7/308
2014-05   5038402   Á¤ÀºÁØ1
2015-12   1574954   ¹é¸Þ°¡
2024-03   1625   Ç×°ø¸ðÇÔ
2024-03   741   pocket213
2024-03   2426   MASS
2024-03   1255   ±è°¡ÇǽÃ
2024-03   1356   ¾Æ¸§´ÙÀ½ÆÄÆÄ
2024-03   1205   ÆÄÀ̾î¸Ç
2024-03   1023   baska
2024-03   1194   ¸ÅÄÞÇѿ쵿
2024-02   1486   ±è¹ÎöGC
2024-02   1702   ¼ÛÁøÈ«
2024-02   1098   ÀÌ°ú°¡µÇ°í¡¦
2024-02   1307   ÀÌ°ú°¡µÇ°í¡¦
2024-02   3649   dotcat
2024-02   2527   ȸ»ó2
2024-02   1401   ȸ»ó2
2024-02   1539   À̹ο쿡¿ä
2024-02   1420   ÆÄÀ̾î¸Ç
2024-02   1908   ¹«¸íÀÎ12
2024-02   1050   ¹é¸¶±¸·ç¸¶
2024-02   1259   ȸ»ó2