Add a large-capacity hard disk and create a disk array RAID5 on the SUNE250 workgroup Server

Source: Internet
Author: User
Add a large-capacity hard disk and create a disk array RAID5 on the SUNE250 workgroup server-Linux Enterprise Application-Linux server application information. For details, refer to the following. 1. Add a large-capacity hard drive on SUN E250

The SUN E250 Server is a working group server that can be inserted with six hard disks. SUN officially said the server can only use SCSI hard disks smaller than 36 GB, in practice, we have successfully inserted an 18 gb scsi hard disk on SUN E250 to install the operating system, and five gb scsi hard disks for data storage. The procedure is as follows:

Tip 1: First insert an 18 GB hard disk and install the Solaris 9 operating system.

2. Shut down the system, and adjust the ID number of each SCSI large-capacity hard disk so that it is unique and inserted into the machine.

3. Press Stop-A to enter the PROM status % init 0 OK (PROM status prompt ).

4.1.4. Confirm the SCSI device status of the current system at the PROM status prompt.

Using probe-scsi or probe-scsi-all

In this case, the system displays the Target ID of the SCSI device that can be identified. If the hard disk information of the new connection does not appear, confirm it as follows.

1) check whether the device number is repeated?

Target-ID SunOS 4. xSolaris 2.x

3 internal hard drive

1 hard disk is usually the same as SunOS 4.x.

2. If the hard disk ID is not repeated

0 hard disks can be used for hard disks.

4 tapes

5 tapes

6 CD-ROM

2) Check whether physical connections, such as cables, plug-ins, and connectors are correct?

3) is the total length of the SCSI cable less than 6 meters?

5. restart the system and type

 Boot-r

Note that only when the "-r" option is added, the system generates the corresponding device file for the recognized device (including the SCSI device) at startup.

Partition 6. Partition the New Hard Disk

After entering the system status, execute the format command to partition the new hard disk.

Encoding # format (CR)

Using Searching for disks... done

Optional available disk selections:

Defaults 0. c0t0d0

Required/pci @ 1f, 4000/scsi @ 3/sd @

20171. c0t1d0

Required/pci @ 1f, 4000/scsi @ 3/sd @ 9,0

Listen 2. c0t2d0

Required/pci @ 1f, 4000/scsi @ 3/sd @ a, 0

Listen 3. c0t3d0

Required/pci @ 1f, 4000/scsi @ 3/sd @ B, 0

Listen 4. c0t4d0

Required/pci @ 1f, 4000/scsi @ 3/sd @ d, 0

Listen 5. c0t5d0

Required/pci @ 1f, 4000/scsi @ 3/sd @ f, 0

Specify disk (enter its number): 1 // <-- select Hard disk

 Selecting c0t1d0

Disks [disk unformatted]

Invalid format MENU:

 Disk select a disk

Foreign type select (define) a disk type

Partition select (define) a partition table

Specified current describe the current disk

Using format and analyze the disk

Descrirepair repair a defective sector

 Show translate a disk address

Using label write label to the disk

Analyze surface analysis

Includefect defect list management

Elastic backup search for backup labels

Verify read and display labels

Saved save new disk/partition definitions

 Inquiry show vendor, product and revision

Invalid volname set 8-character volume name

Success! Execute , Then return

 Quit

Partition format> partition <-- type partition (or p) to enter the partition status.

Partition menu:

Else 0-change '0' partition

Interval 1-change '1' partition

Interval 2-change '2' partition

Partition 3-change '3' partition

Partition 4-change '4' partition

Raise 5-change '5' partition

Partition 6-change '6' partition

Partition 7-change '7' partition

Explain select-select a predefined table

Modify-modify a predefined partition table

Partition name-name the current table

Print-display the current table

Partition label-write partition map and label to the disk

Success! -Execute , Then return

 Quit

Partition> modify <-- type modify (or m) to modify the current partition table.

Explain Select partitioning base:

Limit 0. Current partition table (original)

Lifecycle 1. All Free Hog Choose base

Round (enter number) [0]? 1 <-- select the current partition table.

Upload Part Tag Flag Cylinders Size Blocks

Limit 0 unassigned wm 0 0 (0/0/0) 0

Limit 1 unassigned wm 0 0 (0/0/0) 0

Limit 2 unassigned wm 0-49779 136.72 GB (49780/0/0) 286732800

Limit 3 unassigned wm 0 0 (0/0/0) 0

Limit 4 unassigned wm 0 0 (0/0/0) 0

Limit 5 unassigned wm 0 0 (0/0/0) 0

Limit 6 unassigned wm 0 0 (0/0/0) 0

Limit 7 unassigned wm 0 0 (0/0/0) 0

Please Do you wish to continue creating a new partition

External table based on above table [yes]? Y <-- Type y to use the current partition table as the benchmark partition.

Required Free Hog partition [6]? 7 <-- select an appropriate floating area. (Note 1)

Specify Enter size of partition '0' [0b, 0c, 0 mb]: 0 mb <-- specified capacity (note 2)

When Enter size of partition '1' [0b, 0c, 0 mb]: 0 mb

When Enter size of partition '3' [0b, 0c, 0 mb]: 0 mb

When Enter size of partition '4' [0b, 0c, 0 mb]: 0 mb

When Enter size of partition '5' [0b, 0c, 0 mb]: 0 mb

When Enter size of partition '6' [0b, 0c, 0 mb]: 0 mb

When Enter size of partition '7' [0b, 0c, 0 mb]: 0 mb

Upload Part Tag Flag Cylinders Size Blocks

Limit 0 unassigned wm 0 0 (0/0/0) 0

Limit 1 unassigned wm 0 0 (0/0/0) 0

Limit 2 unassigned wm 0-49779 136.72 GB (49780/0/0) 286732800

Limit 3 unassigned wm 0 0 (0/0/0) 0

Limit 4 unassigned wm 0 0 (0/0/0) 0

Limit 5 unassigned wm 0 0 (0/0/0) 0

Limit 6 unassigned wm 0 0 (0/0/0) 0

Limit 7 unassigned wm 0 0 (0/0/0) 0

When Okay to make this the current partition table [yes]? Y <-- confirm

Enter table name (remember quotes): new_table <-- type an appropriate name.

Partition> label <-- type A label (or lab) to set the System ID.

Confirm OK to label disk? Y <-- Type y

Partition> q <-- type q to exit the partition status.

Export format> q <-- type q to exit format

(Note 1) when other partition sizes are changed, the Free Hog is used for automatic adjustment within the capacity range.

(Note 2) the specific method to specify the partition capacity is as follows:

Add "B" to the capacity value: specify the number of parts.

Add "c" to the capacity value: specify the number of cylinders.

Add "mb" to the capacity value: specify the number of MB.

We recommend that you specify the partition capacity in mb.

To create a RAID for a hard disk array, perform the preceding operations on each hard disk, and then skip the Step 7 ~ You can directly create a RAID in step 12.

7. generate a new file system

Use the newfs command to generate the partition into a new file system.

Dependencies #/usr/sbin/newfs/dev/rdsk/c0t1d0s2 (CR)

This command specifies the entire hard disk as a partition.

8. Check the New File System

Run the fsck command to check whether the new file system is correct.

Certificate #/usr/sbin/fsck/dev/rdsk/c0t1d0s2 (CR)

9. Install the New File System

Create a directory for installation and use the mount command for installation.

For example, to use the 2nd partition File System for home1, run the following command.

# Mkdir/home1 (CR)

Dependencies # mount/dev/dsk/c0t1d0s2/home1 (CR)

10. Confirm the installation result and run the df command to confirm the installation result.

Counter # df-k (CR)

. Automatically install the new file system

When the system starts, the new file system is automatically installed and the/etc/vfstab file is modified.

Signature # vi/etc/vfstab (CR)

# Device mount FS fsck mount

Failed # to mount to fsck point type pass at boot options

Region #

Examples/dev/dsk/c0t1d0s2/dev/rdsk/c0t1d0s2/home1 ufs 6 yes-

12. restart the system

Restart # reboot (CR)

So far, large-capacity SCSI hard disks can be recognized by machines.

2. Use software to create RAID 5 for Hard Disk Arrays

The following are examples of using the solaris9 system and 6 hard disks (one system disk, the other five as RAID 5, and the mount as an email system instance under/var/eyou.

In Solaris 9, the configuration can be completed in nine steps in the form of a command line!

Partition 1. Use the format command to partition and format each hard disk and set the hard disk volume label and other parameters.

2. Create a metadevice database that includes information about the hard disk partition in metadevices.

Metric # metadb-a-f-c2 c0t1d0s2 c0t2d0s2 c0t3d0s2 c0t4d0s2 c0t5d0s2

You should change parameters such as c0t1d0s2 c0t2d0s2 c0t3d0s2 c0t4d0s2 c0t5d0s2 based on your system and the actual situation of adding a hard disk.

3. Configure raid0 metadevice. In this step, the name of raid0 metadevice is defined, and the slices particle ating and stripe width information in metadevice are defined.

Metric # metainit d0-r c0t1d0s2 c0t2d0s2 c0t3d0s2 c0t4d0s2 c0t5d0s2-I 65 k

4. Configure one or more hot spare pools for initialization.

Metric # metainit hsp001

Metric # metaparam-h hsp001 d0

This step takes a long time, depending on the number of hard disks and capacity, usually takes several hours. Run the following command at any time to check whether it is finished or not.

# Metastat

5. Create a file system in metadevice

Runtime # newfs-c 256-I 8192-m 8-C 65/dev/md/rdsk/d0

Now RAID 5 has been created successfully.

6. Install the New File System

Create a directory for installation and use the mount command for installation.

# Mkdir/var/eyou (CR)

Dependencies # mount/dev/md/dsk/d0/var/eyou (CR)

7. Confirm the installation result and run the df command to confirm the installation result.

Counter # df-k (CR)

8. automatically install the new file system

Mount the new file system to the desired directory and set automatic loading upon startup! Run the vi command to modify the/etc/vfstab file and add the following line to the file.

Examples/dev/md/dsk/d0/dev/md/rdsk/d0/var/eyou ufs 6 yes-

Restart the system.

In the solaris9 system, you can also start the Management Console (SMC) tool to configure it in the graphic interface. Because it is a graphical interface in Chinese and there are help prompts in each step, I will not go into details here!

Note: Do not use a combination of graphs and command lines. Otherwise, the configuration will fail. Create a database in the graphic interface. Otherwise, the next step will fail!
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.