{"id":269,"date":"2008-06-25T08:35:50","date_gmt":"2008-06-25T16:35:50","guid":{"rendered":"http:\/\/learnbyblogging.com\/?p=269"},"modified":"2008-06-25T08:35:50","modified_gmt":"2008-06-25T16:35:50","slug":"creating-ramdisk-on-solaris","status":"publish","type":"post","link":"https:\/\/learnbyblogging.com\/?p=269","title":{"rendered":"Creating Ramdisk on Solaris"},"content":{"rendered":"<p>Creating RAMdisk is a way to create a temporary file cache for fast access.<br \/>\nI found the following information from <a href=\"http:\/\/wikis.sun.com\/display\/BigAdmin\/Talking+about+RAM+disks+in+the+Solaris+OS\">Sun&#8217;s BigAdmin site<\/a>:<\/p>\n<p># create the ramdisk<br \/>\n#<br \/>\n[Mon Mar 17 22:15:03 root@sol9 \/]<br \/>\n# ramdiskadm -a mydisk 40m<br \/>\n\/dev\/ramdisk\/mydisk<\/p>\n<p># check the result<br \/>\n#<br \/>\n[Mon Mar 17 22:15:21 root@sol9 \/]<br \/>\n# ls -l \/dev\/ramdisk\/mydisk<br \/>\nlrwxrwxrwx   1 root     root          40 Mar 17 22:15 \/dev\/ramdisk\/mydisk -> ..\/..\/devices\/pseudo\/ramdisk@1024:mydisk<\/p>\n<p>[Mon Mar 17 22:16:04 root@sol9 \/]<br \/>\n# ls -l \/dev\/rramdisk\/mydisk<br \/>\nlrwxrwxrwx   1 root     root          44 Mar 17 22:15 \/dev\/rramdisk\/mydisk -> ..\/..\/devices\/pseudo\/ramdisk@1024:mydisk,raw<\/p>\n<p># check the fstype<br \/>\n#<br \/>\n[Mon Mar 17 22:16:07 root@sol9 \/]<br \/>\n# fstyp \/dev\/rramdisk\/mydisk<br \/>\nunknown_fstyp (no matches)<\/p>\n<p># create a filesystem on the ramdisk<br \/>\n#<br \/>\n[Mon Mar 17 22:16:22 root@sol9 \/]<br \/>\n# newfs \/dev\/rramdisk\/mydisk<br \/>\n\/dev\/rramdisk\/mydisk: Unable to find Media type. Proceeding with system determined parameters.<br \/>\nnewfs: construct a new file system \/dev\/rramdisk\/mydisk: (y\/n)? y<br \/>\n\/dev\/rramdisk\/mydisk:   81872 sectors in 136 cylinders of 1 tracks, 602 sectors<br \/>\n        40.0MB in 9 cyl groups (16 c\/g, 4.70MB\/g, 2240 i\/g)<br \/>\nsuper-block backups (for fsck -F ufs -o b=#) at:<br \/>\n 32, 9664, 19296, 28928, 38560, 48192, 57824, 67456, 77088,<\/p>\n<p># mount the ramdisk<br \/>\n#<br \/>\n[Mon Mar 17 22:16:44 root@sol9 \/]<br \/>\n# mkdir \/myramdisk<\/p>\n<p>[Mon Mar 17 22:16:51 root@sol9 \/]<br \/>\n# mount \/dev\/ramdisk\/mydisk \/myramdisk<\/p>\n<p>[Mon Mar 17 22:17:01 root@sol9 \/]<br \/>\n# df -k \/myramdisk<br \/>\nFilesystem            kbytes    used   avail capacity  Mounted on<br \/>\n\/dev\/ramdisk\/mydisk    38255    1041   33389     4%    \/myramdisk<\/p>\n<p>[Mon Mar 17 22:17:06 root@sol9 \/]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating RAMdisk is a way to create a temporary file cache for fast access. I found the following information from Sun&#8217;s BigAdmin site: # create the ramdisk # [Mon Mar 17 22:15:03 root@sol9 \/] # ramdiskadm -a mydisk 40m \/dev\/ramdisk\/mydisk # check the result # [Mon Mar 17 22:15:21 root@sol9 \/] # ls -l \/dev\/ramdisk\/mydisk &hellip; <a href=\"https:\/\/learnbyblogging.com\/?p=269\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Creating Ramdisk on Solaris<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-tips-for-computer"],"_links":{"self":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=269"}],"version-history":[{"count":0,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=\/wp\/v2\/posts\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learnbyblogging.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}