- - remove - rmanage Removes a device from the array. Thisdevice must  dịch - - - remove - rmanage Removes a device from the array. Thisdevice must  Việt làm thế nào để nói

- - remove - rmanage Removes a devi

- - remove - rmanage Removes a device from the array. This
device must be flagged as a spare or
failed device.
- - fail or - - set -
faulty
- fmanageFlags a device as failed.
- - stop - SmiscDeactivates the array.
Table 4.3 is incomplete;mdadm is an extremely complex program with many options, most
of which are highly technical in nature. You should consult itsman page for further details.
Despite the complexity of RAID, its basic confi guration is fairly straightforward. To
create a RAID array, you begin by usingmdadm with - - create. You must then pass it
the name of a RAID device (typically/dev/md0 for the fi rst device), the RAID level, the
number of RAID devices, and the device fi lenames for all the component devices:
#mdadm --create /dev/md0 --level=5 --raid-devices=3
/dev/sda6 /dev/sdc1 /dev/sdd1
This example creates a RAID 5 array using/dev/sda6 ,/dev/sdc1 , and/dev/sdd1 as the
component devices. If there are no problems, you’ll see a/dev/md0 device appear, which
you can then use as if it were a disk device or partition, as described shortly.
Using a RAID Array
Once you ’ ve created a RAID array, you can begin using it. As noted earlier, you can either treat
your RAID devices (/dev/md0 and so on) as if they were partitions or further subdivide them by
placing partition tables on them or using them as physical volumes in an LVM confi guration.
Creating Filesystems on a RAID Array
The simplest way to use a RAID array is to do so directly: You can create a fi lesystem on
it as if it were a partition. To do this, treat the RAID device fi le like a partition’s device fi le
withmkfs ,mount, and the other fi lesystem-related tools described in Chapter 3:
#mkfs -t ext4 /dev/md0
#mount /dev/md0 /mnt
You can also create/etc/fstab entries, substituting/dev/md0 and other RAID device
fi lenames for partition fi lenames such as/dev/sda1. When you do so, your RAID devices should
mount automatically when you reboot the computer.
Long option name
Short option
name
Used with
modesExplanation
- - remove - rmanage Removes a device from the array. This
device must be flagged as a spare or
failed device.
- - fail or - - set -
faulty
- fmanageFlags a device as failed.
- - stop - SmiscDeactivates the array.
Configuring RAID 1 5 5
c04.indd 155 3/28/11 11:57:09 AM3/28/11 11:57:09 AM
1 5 6 Chapter 4 ■ Advanced Disk Management
If you’re planning to move critical system files, such as the contents of
/usr, onto RAID devices, you may need to rebuild your initial RAM disk
so that it includes RAID support. Modify your/etc/fstab file to refer
to the RAID device and then rebuild the initial RAM disk. Theinitrd or
initramfs utility should note the use of RAID and build in the necessary
support. Chapter 2 describes initial RAM disk configuration in more detail.
Subdividing a RAID Array
If you’ve created a massive RAID array with the intention of subdividing it further, now
is the time to do so. You can usefdisk or other disk partitioning tools to create partitions
within the RAID array; or you can use the RAID device fi le as a component device in an
LVM confi guration, as described shortly.
If you subdivide your RAID array using partitions, you should see new device fi les
appear that refer to the partitions. These fi les have the same name as the parent RAID
device fi le, plusp and a partition number. For instance, if you create three partitions on
/dev/md0 , they might be/dev/md0p1 ,/dev/md0p2 , and/dev/md0p3 . You can then treat
these RAID partitions as if they were partitions on regular hard disks.
Another method of subdividing a RAID array is to deploy LVM atop it. The upcoming
section“Confi guring LVM” describes confi guring LVM generically. You can use a RAID
device fi le, such as/dev/md0, as if it were a partition for purposes of LVM confi guration.
Reviewing a RAID Configuration
Once you have your RAID array set up, you can review the details by examining the
/proc/mdstat pseudo-fi le. A simple example looks something like this:
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdd1[2] sdc1[1] sda6[0]
321024 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
unused devices: < none >
ThePersonalities line reveals what RAID level a given device uses; however, this line
groups several different types of RAID, as shown here.
Following thePersonalities line, you’ll see additional groups of lines, one for each
RAID device. This example shows just one,md0 for/dev/md0. Information included here
includes the status (active in this case), the exact RAID type (raid5 ), the devices that
make up the array (sdd1 ,sdc1 , andsda6), the size of the array (321024 blocks ), and some
additional technical details. The numbers in square brackets following the component
device names (sdd1 ,sdc1 , andsda6 in this example) denote the role of the device in the
array. For RAID 5, three devices are required for basic functionality, so roles 0 through 2
are basic parts of the array. If a fourth device were added, it would have a role number of
3, which would make it a spare drive—if another drive were to fail, the RAID subsystem
would automatically begin copying data to the spare drive and begin using it
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
- - remove - rmanage Removes a device from the array. Thisdevice must be flagged as a spare orfailed device. - - fail or - - set - faulty - fmanageFlags a device as failed. - - stop - SmiscDeactivates the array.Table 4.3 is incomplete;mdadm is an extremely complex program with many options, mostof which are highly technical in nature. You should consult itsman page for further details.Despite the complexity of RAID, its basic confi guration is fairly straightforward. Tocreate a RAID array, you begin by usingmdadm with - - create. You must then pass itthe name of a RAID device (typically/dev/md0 for the fi rst device), the RAID level, thenumber of RAID devices, and the device fi lenames for all the component devices:#mdadm --create /dev/md0 --level=5 --raid-devices=3/dev/sda6 /dev/sdc1 /dev/sdd1This example creates a RAID 5 array using/dev/sda6 ,/dev/sdc1 , and/dev/sdd1 as thecomponent devices. If there are no problems, you’ll see a/dev/md0 device appear, whichyou can then use as if it were a disk device or partition, as described shortly.Using a RAID ArrayOnce you ’ ve created a RAID array, you can begin using it. As noted earlier, you can either treatyour RAID devices (/dev/md0 and so on) as if they were partitions or further subdivide them byplacing partition tables on them or using them as physical volumes in an LVM confi guration.Creating Filesystems on a RAID Array The simplest way to use a RAID array is to do so directly: You can create a fi lesystem onit as if it were a partition. To do this, treat the RAID device fi le like a partition’s device fi lewithmkfs ,mount, and the other fi lesystem-related tools described in Chapter 3:#mkfs -t ext4 /dev/md0#mount /dev/md0 /mnt You can also create/etc/fstab entries, substituting/dev/md0 and other RAID devicefi lenames for partition fi lenames such as/dev/sda1. When you do so, your RAID devices shouldmount automatically when you reboot the computer. Long option nameShort optionnameUsed withmodesExplanation - - remove - rmanage Removes a device from the array. Thisdevice must be flagged as a spare orfailed device. - - fail or - - set - faulty - fmanageFlags a device as failed. - - stop - SmiscDeactivates the array.Configuring RAID 1 5 5c04.indd 155 3/28/11 11:57:09 AM3/28/11 11:57:09 AM1 5 6 Chapter 4 ■ Advanced Disk ManagementIf you’re planning to move critical system files, such as the contents of/usr, onto RAID devices, you may need to rebuild your initial RAM diskso that it includes RAID support. Modify your/etc/fstab file to referto the RAID device and then rebuild the initial RAM disk. Theinitrd orinitramfs utility should note the use of RAID and build in the necessarysupport. Chapter 2 describes initial RAM disk configuration in more detail.Subdividing a RAID ArrayIf you’ve created a massive RAID array with the intention of subdividing it further, nowis the time to do so. You can usefdisk or other disk partitioning tools to create partitionswithin the RAID array; or you can use the RAID device fi le as a component device in anLVM confi guration, as described shortly.If you subdivide your RAID array using partitions, you should see new device fi lesappear that refer to the partitions. These fi les have the same name as the parent RAIDdevice fi le, plusp and a partition number. For instance, if you create three partitions on/dev/md0 , they might be/dev/md0p1 ,/dev/md0p2 , and/dev/md0p3 . You can then treatthese RAID partitions as if they were partitions on regular hard disks. Another method of subdividing a RAID array is to deploy LVM atop it. The upcomingsection“Confi guring LVM” describes confi guring LVM generically. You can use a RAIDdevice fi le, such as/dev/md0, as if it were a partition for purposes of LVM confi guration.Reviewing a RAID ConfigurationOnce you have your RAID array set up, you can review the details by examining the/proc/mdstat pseudo-fi le. A simple example looks something like this:Personalities : [raid6] [raid5] [raid4]md0 : active raid5 sdd1[2] sdc1[1] sda6[0] 321024 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]unused devices: < none > ThePersonalities line reveals what RAID level a given device uses; however, this linegroups several different types of RAID, as shown here.Following thePersonalities line, you’ll see additional groups of lines, one for eachRAID device. This example shows just one,md0 for/dev/md0. Information included hereincludes the status (active in this case), the exact RAID type (raid5 ), the devices thatmake up the array (sdd1 ,sdc1 , andsda6), the size of the array (321024 blocks ), and someadditional technical details. The numbers in square brackets following the componentdevice names (sdd1 ,sdc1 , andsda6 in this example) denote the role of the device in thearray. For RAID 5, three devices are required for basic functionality, so roles 0 through 2are basic parts of the array. If a fourth device were added, it would have a role number of3, which would make it a spare drive—if another drive were to fail, the RAID subsystemwould automatically begin copying data to the spare drive and begin using it
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
- - Remove - rmanage Loại bỏ một thiết bị từ mảng. Điều này
thiết bị phải được gắn cờ như một phụ tùng hoặc
thiết bị thất bại.
- - Thất bại hoặc - - thiết -
bị lỗi
- fmanageFlags một thiết bị như thất bại.
- - Stop - SmiscDeactivates mảng.
Bảng 4.3 là không đầy đủ; mdadm là một chương trình vô cùng phức tạp với nhiều tùy chọn , hầu hết
trong số đó là kỹ thuật cao trong tự nhiên. Bạn nên tham khảo trang itsman để biết thêm chi tiết.
Bất chấp sự phức tạp của RAID, confi guration cơ bản của nó là khá đơn giản. Để
tạo ra một mảng RAID, bạn bắt đầu bằng usingmdadm với - - tạo. Sau đó, bạn phải vượt qua nó
là tên của một thiết bị RAID (thường là / dev / md0 cho các thiết bị đầu tiên kinh), các mức RAID,
số lượng thiết bị RAID, và lenames fi thiết bị cho tất cả các thiết bị thành phần:
#mdadm --Tạo / dev / md0 --level = 5 --raid-thiết bị = 3
/ dev / sda6 / dev / sdc1 / dev / sdd1
Ví dụ này tạo một mảng RAID 5 sử dụng / dev / sda6, / dev / sdc1, và / dev / sdd1 như các
thiết bị thành phần. Nếu không có vấn đề, ​​bạn sẽ thấy một / dev / md0 thiết bị xuất hiện, mà
sau đó bạn có thể sử dụng như thể nó là một thiết bị ổ đĩa hoặc phân vùng, như được mô tả trong thời gian ngắn.
Sử dụng một Array RAID
Một khi bạn đã tạo ra một mảng RAID, bạn có thể bắt đầu sử dụng nó. Như đã nói ở trên, bạn có thể xử lý
các thiết bị RAID của bạn (/ dev / md0 và vv) như là đã được phân vùng hoặc thêm chia nhỏ chúng bằng
cách đặt các bảng phân vùng vào chúng hoặc sử dụng chúng như là khối tin vật lý trong một guration LVM confi.
Tạo các hệ tập tin trên một mảng RAID
Cách đơn giản nhất để sử dụng một mảng RAID là làm như vậy trực tiếp: Bạn có thể tạo một lesystem fi về
nó như thể nó là một phân vùng. Để làm điều này, điều trị các thiết bị RAID fi le như thiết bị của phân vùng fi le
withmkfs, gắn kết, và các công cụ liên quan đến lesystem fi khác được mô tả trong Chương 3:
#mkfs -t ext4 / dev / md0
#mount / dev / md0 / mnt
Bạn cũng có thể tạo / etc / fstab mục, thay thế / dev / md0 và thiết bị RAID khác
lenames fi cho lenames phân vùng fi như / dev / sda1. Khi bạn làm như vậy, các thiết bị RAID của bạn nên
gắn kết tự động khi bạn khởi động lại máy tính.
Tùy chọn dài tên
ngắn tùy chọn
tên
sử dụng với
modesExplanation
- - loại bỏ - rmanage Loại bỏ một thiết bị từ mảng. Điều này
thiết bị phải được gắn cờ như một phụ tùng hoặc
thiết bị thất bại.
- - Thất bại hoặc - - thiết -
bị lỗi
- fmanageFlags một thiết bị như thất bại.
- - Stop - SmiscDeactivates mảng.
Cấu hình RAID 1 5 5
c04.indd 155 3/28/11 11:57:09 AM3 / 28/11 11:57:09
1 5 6 Chương 4 ■ Advanced Disk Management
Nếu bạn đang lập kế hoạch để di chuyển các tập tin hệ thống quan trọng, chẳng hạn như nội dung của
/ usr, vào các thiết bị RAID, bạn có thể cần xây dựng lại đĩa RAM ban đầu của bạn
để nó bao gồm RAID hỗ trợ. Sửa đổi / etc / fstab của bạn để tham khảo
cho các thiết bị RAID và sau đó xây dựng lại các đĩa RAM ban đầu. Theinitrd hoặc
tiện ích initramfs nên chú ý sử dụng RAID và xây dựng trong những cần thiết
hỗ trợ. Chương 2 mô tả ban đầu cấu hình đĩa RAM một cách chi tiết hơn.
Phân chia một Array RAID
Nếu bạn đã tạo ra một mảng RAID lớn với ý định phân chia nó hơn nữa, bây giờ
là thời gian để làm như vậy. Bạn có thể usefdisk hoặc công cụ phân vùng đĩa khác để tạo ra các phân vùng
trong mảng RAID; hoặc bạn có thể sử dụng các thiết bị RAID fi le như một thiết bị thành phần trong một
LVM confi guration, như được mô tả trong thời gian ngắn.
Nếu bạn chia mảng RAID của bạn bằng cách sử dụng phân vùng, bạn sẽ thấy thiết bị mới fi les
xuất hiện mà tham khảo các phân vùng. Những fi les có tên giống như RAID mẹ
thiết bị fi le, plusp và một số phân vùng. Ví dụ, nếu bạn tạo ra ba phân vùng trên
/ dev / md0, họ có thể là / dev / md0p1, / dev / md0p2, và / dev / md0p3. Sau đó bạn có thể điều trị
các phân vùng RAID như là đã được phân vùng trên đĩa cứng thông thường.
Một phương pháp phân chia một mảng RAID là triển khai LVM lên đó. Việc sắp tới
phần "confi guring LVM" mô tả confi guring LVM quát. Bạn có thể sử dụng một RAID
thiết bị fi le, như / dev / md0, như thể nó là một phân vùng cho mục đích của LVM confi guration.
Xem xét một cấu hình RAID
Một khi bạn đã mảng RAID của bạn thiết lập, bạn có thể xem lại các chi tiết bằng cách kiểm tra
/ proc / mdstat pseudo-fi le. Một ví dụ đơn giản có vẻ gì đó như thế này:
Nhân vật: [RAID6] [RAID5] [RAID4]
md0: hoạt động RAID5 sdd1 [2] sdc1 [1] sda6 [0]
321.024 khối cấp 5, đoạn 64k, thuật toán 2 [3/3] [uuu]
thiết bị không sử dụng: <none>
dòng ThePersonalities cho thấy mức độ RAID được sử dụng một thiết bị; Tuy nhiên, dòng này
loại nhóm khác nhau của RAID, như được hiển thị ở đây.
Sau dòng thePersonalities, bạn sẽ thấy các nhóm bổ sung các đường dây, một cho mỗi
thiết bị RAID. Ví dụ này cho thấy chỉ cần một, md0 cho / dev / md0. Thông tin bao gồm ở đây
bao gồm trạng thái (hoạt động trong trường hợp này), các loại RAID chính xác (RAID5), các thiết bị
tạo nên mảng (sdd1, sdc1, andsda6), kích thước của mảng (321.024 khối), và một số
bổ sung kỹ thuật chi tiết. Các con số trong ngoặc vuông sau các thành phần
tên thiết bị (sdd1, sdc1, andsda6 trong ví dụ này) biểu thị vai trò của các thiết bị trong
mảng. Đối với RAID 5, ba thiết bị cần thiết cho các chức năng cơ bản, do đó vai trò 0 đến 2
là bộ phận cơ bản của mảng. Nếu một thiết bị thứ tư đã được thêm vào, nó sẽ có một số vai trò của
3, mà sẽ làm cho nó một phụ tùng drive-nếu ổ đĩa khác đã thất bại, các hệ thống phụ RAID
sẽ tự động bắt đầu sao chép dữ liệu vào ổ đĩa dự phòng và bắt đầu sử dụng nó
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: