亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標題: RHEL 分區(qū)一般什么情況下用LVM? [打印本頁]

作者: forx86    時間: 2013-05-29 08:53
標題: RHEL 分區(qū)一般什么情況下用LVM?
本帖最后由 forx86 于 2013-05-29 10:22 編輯

RHEL 5、6,CentOS 5、6,在一塊硬盤的普通臺式機上裝oracle,分區(qū)采用LVM嗎?有何利弊?還是就分出/,boot,tmpfs,home或opt這樣的分區(qū)就可以了?
就是普通臺式機一塊硬盤、服務器RAID1、RAID5等各種情況比如裝oracle都分別怎么分區(qū)合理?用不用LVM?
請指點。

作者: chenyx    時間: 2013-05-29 09:13
看你的需求,lvm的優(yōu)勢在于擴容方便.如果今后沒有擴容要求,可以不用lvm.
至于raid,那個是硬盤卷組的范疇,對于Os來說,做raid和沒做raid,是沒啥不一樣的,都是磁盤而已.
作者: forx86    時間: 2013-05-29 09:20
看了兩個運行中的oracle生產服務器,RAID 5,linux分區(qū)都沒用LVM,只是分了/,boot,tmpfs,home或opt這樣的分區(qū)。這也是RHEL文檔里推薦的分區(qū)類型。

作者: chenyx    時間: 2013-05-29 09:27
看自己的需求,有些Oracle還用裸盤呢
作者: dengbao2001    時間: 2013-05-29 09:57
樓主既然是生產數據,我建議數據庫磁盤還是用LVM比較好,哪天磁盤不夠用,還可以擴展下

我這里的服務器都是跑Oracle的,全部做了LVM
作者: forx86    時間: 2013-05-29 10:17
回復 5# dengbao2001


哦,謝謝。我就是不知道磁盤到底怎么分區(qū)更合理,所以想和大家探討這個問題啊。
希望各位行家里手多指點。


   
作者: lbseraph    時間: 2013-05-29 10:32
你只有一塊硬盤的話也會有單點故障了吧?有的把Oracle裝在SAN的盤上面,特別是cluster環(huán)境里面。
作者: chenyx    時間: 2013-05-29 10:59
Oracle安裝文檔里面好像有分區(qū)方案吧.

作者: dengbao2001    時間: 2013-05-29 11:04
chenyx 發(fā)表于 2013-05-29 10:59
Oracle安裝文檔里面好像有分區(qū)方案吧.


Oracle的安裝文檔沒介紹分區(qū)的劃分的內容,倒是詳細介紹安裝步驟,關于數據庫如何選擇磁盤介質,有單獨的介紹
作者: dengbao2001    時間: 2013-05-29 11:05
回復 6# forx86


系統(tǒng)基本來說,默認5.6的系統(tǒng)都是LVM的,后面的數據分區(qū)建議你用LVM。



   
作者: chenyx    時間: 2013-05-29 11:06
安裝介紹里面肯定有分區(qū)部分,參考一下總是沒有壞處的. @dengbao2001
作者: dengbao2001    時間: 2013-05-29 11:10
回復 11# chenyx

還真沒怎么說,你看看下面圖片




   
作者: chenyx    時間: 2013-05-29 11:16
那就按照他的磁盤需求,結合自己的需求,基本上/boot,/,/home按照一般服務器的需要分配空間,其他的分給oracle分區(qū).
比如,/boot 200M,/30G,swap按照內存大小,按比例分配,/home要是用戶登陸存儲需求不大,可以不要,剩余的空間給/u01分區(qū).
@dengbao2001
作者: lbseraph    時間: 2013-05-29 13:48
系統(tǒng)的分區(qū)情況是RHEL會有點說明的,app的一般只是說所需空間,app才不會說你系統(tǒng)的分區(qū)該怎么分的~
作者: forx86    時間: 2013-05-29 15:52
4.18.4. Recommended Partitioning Scheme
http://www.centos.org/docs/5/htm ... trecommend-x86.html

http://www.centos.org/docs/5/

4.18.4.2. x86, AMD64, and Intel® 64 systems
Unless you have a reason for doing otherwise, we recommend that you create the following partitions for x86, AMD64, and Intel® 64 systems:

A swap partition (at least 256 MB) — swap partitions are used to support virtual memory. In other words, data is written to a swap partition when there is not enough RAM to store the data your system is processing.

If you are unsure about what size swap partition to create, make it twice the amount of RAM on your machine. It must be of type swap.

Creation of the proper amount of swap space varies depending on a number of factors including the following (in descending order of importance):

The applications running on the machine.

The amount of physical RAM installed on the machine.

The version of the OS.

Swap should equal 2x physical RAM for up to 2 GB of physical RAM, and then an additional 1x physical RAM for any amount above 2 GB, but never less than 32 MB.

So, if:

M = Amount of RAM in GB, and S = Amount of swap in GB, then

If M < 2S = M *2ElseS = M + 2
Using this formula, a system with 2 GB of physical RAM would have 4 GB of swap, while one with 3 GB of physical RAM would have 5 GB of swap. Creating a large swap space partition can be especially helpful if you plan to upgrade your RAM at a later time.

For systems with really large amounts of RAM (more than 32 GB) you can likely get away with a smaller swap partition (around 1x, or less, of physical RAM).

A /boot/ partition (100 MB) — the partition mounted on /boot/ contains the operating system kernel (which allows your system to boot Red Hat Enterprise Linux), along with files used during the bootstrap process. Due to limitations, creating a native ext3 partition to hold these files is required. For most users, a 100 MB boot partition is sufficient.

Tip
If your hard drive is more than 1024 cylinders (and your system was manufactured more than two years ago), you may need to create a /boot/ partition if you want the / (root) partition to use all of the remaining space on your hard drive.

Tip
If you have a RAID card, be aware that some BIOSes do not support booting from the RAID card. In cases such as these, the /boot/ partition must be created on a partition outside of the RAID array, such as on a separate hard drive.

A root partition (3.0 GB - 5.0 GB) — this is where "/" (the root directory) is located. In this setup, all files (except those stored in /boot) are on the root partition.

A 3.0 GB partition allows you to install a minimal installation, while a 5.0 GB root partition lets you perform a full installation, choosing all package groups.


作者: chenyx    時間: 2013-05-29 16:29
記得安裝Oracle,/tmp最小要2G以上,5G/應該是不夠的.
作者: milujite    時間: 2013-05-29 16:52
LVM/FS/RAW/ASM愛用哪個用哪個。對Oracle數據庫來說都差不多。




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2