How to create, delete, and restore hard RAID 1 in SunV440

Source: Internet
Author: User
Article Title: how to create, delete, and restore hard RAID 1 in SunV440. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
On the Sun Fire V440 server, you can use the onboard Ultra-4 SCSI controller to configure the hardware disk image. It performs better than conventional software images that use volume management software. RAID 1 provides the highest level of data protection. However, because all data is stored twice, it increases storage costs, and compared with RAID 0 or RAID 5, the write operation performance is reduced.
  
On the Sun Fire V440 server, the Ultra-4 SCSI controller supports the use of the Solaris operating environment raidctl utility for internal hardware disk mirroring. The hardware disk image created using the raidctl utility is slightly different from the hardware disk image created using the volume management software. In a software image, each drive has its own entries in the virtual device tree, and can perform read/write operations on both virtual devices. In a hardware disk image, only one device (master device) appears in the device tree ). The image device (slave device) is invisible to the operating system and can only be accessed through the Ultra-4 SCSI controller.
  
   I. how to create a hardware disk image
You can create an internal hardware disk image configuration on the system.
  
1. verify the correspondence between the disk drive and the logical device name and the physical device name before you start.
Code:
Disk slot number logical device name * physical device name
Slot 0 c1t0d0/devices/pci @ 1f, 700000/scsi @ 2/sd @
Slot 3 c1t1d0/devices/pci @ 1f, 700000/scsi @ 2/sd @
Slot 2 c1t2d0/devices/pci @ 1f, 700000/scsi @ 2/sd @
Slot 3 c1t3d0/devices/pci @ 1f, 700000/scsi @ 2/sd @
  
Note: The display method of the logical device name on your system may vary depending on the number and type of additional disk controllers installed.
  
2. to verify that the hardware disk image does not exist, type:
Code:
# Raidctl
No RAID volumes found.
  
3. create an internal hardware disk image:
Code:
# Raidctl-c c1t0d0 c1t1d0
  
After a RAID image is created, the slave drive (c1t1d0 in this example) disappears from the Solaris device tree.
  
4. check the RAID Image status:
Code:
# Raidctl
RAID Disk
Volume Status Disk Status
--------------------------------------------------------
C1t0d0 RESYNCING c1t0d0 OK
C1t1d0 OK
The preceding example indicates that the RAID image is still being resynchronized with the backup drive.
  
The following example indicates that the RAID image is completely restored and online.
Code:
# Raidctl
RAID Disk
Volume Status Disk Status
--------------------------------------------------------
C1t0d0 OK c1t0d0 OK
C1t1d0 OK
  
   II. how to delete a hardware disk image
This process deletes the hardware disk image configuration from the system.
  
1. confirm the image volume name:
Code:
# Raidctl
RAID Disk
Volume Status Disk Status
--------------------------------------------------------
C1t0d0 OK c1t0d0 OK
C1t1d0 OK
  
In this example, the image volume is c1t0d0.
  
2. delete a volume:
Code:
# Raidctl-d c1t0d0
RAID Volume 'c0t0d0' deleted
  
3. confirm that the RAID array has been deleted:
Code:
# Raidctl
No RAID volumes found.
  
   III. how to restore a hardware disk image
This process restores the hardware disk image configuration from the system.
  
1. confirm the faulty disk:
Code:
# Raidctl
RAID Disk
Volume Status Disk Status
----------------------------------------------------------
C1t1d0 DEGRADED c1t0d0 OK
C1t1d0 DEGRADED
  
Indicates that the disk image fails due to a fault on the disk c1t1d0.
  
2. perform the hot swapping operation on the image disk:
Code:
# Export ADM-x unconfigure/dev/rdsk/c0t0d0
  
Note? Make sure that the disk drive "detachable" LED is on, indicating that the disk drive is offline. If the disk drive is still online, there is a risk of data loss when you detach the disk during read/write operations.
  
3. replace the new hard disk and run the following command:
Code:
# Export ADM-x configure/dev/rdsk/c0t0d0
  
4. check the RAID Image status:
Code:
# Raidctl
RAID Disk
Volume Status Disk Status
--------------------------------------------------------
C1t0d0 RESYNCING c1t0d0 OK
C1t1d0 OK
  
The preceding example indicates that the RAID image is still being resynchronized with the backup drive.
  
The following example indicates that the RAID image is completely restored and online.
Code:
# Raidctl
RAID Disk
Volume Status Disk Status
--------------------------------------------------------
C1t0d0 OK c1t0d0 OK
C1t1d0 OK
  
   4. how to perform non-image disk hot swapping ------- attach
1. view the SCSI device status:
Code:
# Cfgadm-al
Ap_Id Type effectacle Occupant Condition
C0 scsi-bus connected configured unknown
C0: dsk/c0t0d0 CD-ROM connected configured unknown
C1 scsi-bus connected configured unknown
C1: dsk/c1t0d0 disk connected configured unknown
C1: dsk/c1t1d0 disk connected configured unknown
C1: dsk/c1t2d0 disk connected configured unknown
C1: dsk/c1t3d0 disk connected configured unknown
C2 scsi-bus connected configured unknown
C2: dsk/c2t2d0 disk connected configured unknown
Usb0/1 unknown empty unconfigured OK
Usb0/2 unknown empty unconfigured OK
Usb1/1 unknown empty unconfigured OK
Usb1/2 unknown empty unconfigured OK
#
  
Note? The display method of the logical device name on your system may vary depending on the number and type of additional disk controllers installed.
  
The-al option returns the status of all SCSI devices, including bus and USB devices. (In this example, the system is not connected to a USB device .)
  
Note: Although you can use the Solaris operating environment cfgadm install_device and cfgadm
The remove_device command is used to perform the hot swapping process on the disk drive. However, if you call these commands on the bus that contains the system disk, the following warning message is sent:
Code:
# Define ADM-x remove_device c1: dsk/c1t1d0
Removing SCSI device:/devices/pci @ 1f, 4000/scsi @ 3/sd @
This operation will suspend activity on SCSI bus: c1
Continue (yes/no )? Y
Dev =/devices/pci @ 1f, 4000/scsi @ 3/sd @ 1, 0
Failed ADM: Hardware specific failure: failed to suspend:
Resource Information
-------------------------------------------
/Dev/dsk/c1t0d0s0 mounted filesystem "/"
/Dev/dsk/c1t0d0s6 mounted filesystem "/usr"
  
This warning is issued because these commands attempt to stop the Ultra-4 SCSI bus activity, but the Sun Fire V440 server firmware does not stop the activity. On the Sun Fire V440 server, you can safely ignore this warning message, and the following process can avoid this warning message.
  
2. delete the disk drive from the device tree:
Code:
# Define ADM-c unconfigure c1: dsk/c1t3d0
  
In this example, c1t3d0 is deleted from the device tree. The Blue "detachable" LED emits light.
  
3. verify that the device has been deleted from the device tree:
Code:
# Cfgadm-al
Ap_Id Type effectacle Occupant Condition
C0 scsi-bus connected configured unknown
C0: dsk/c0t0d0 CD-ROM connected configured unknown
C1 scsi-bus connected configured unknown
C1: dsk/c1t0d0 disk connected configured unknown
C1: dsk/c1t1d0 disk connected configured unknown
C1: dsk/c1t2d0 disk connected configured unknown
C1: dsk/c1t3d0 unavailable connected unconfigured unknown
C2 scsi-bus connected configured unknown
C2: dsk/c2t2d0 disk connected configured unknown
Usb0/1 unknown empty unconfigured OK
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.