1,In the VMware Summary View interface Select Edit Virtual machine settings,add Two new hard disk, select the Isci method, to determine after adding in the devices will see more than 2 pieces of hard disk.
2,Starting Solaris, there are several ways to get the system to detect a new hard disk: A in the system launch interface prompt "If the" hardware has changed ... "and Countdown, press ESC, the system will automatically monitor hardware changes, the new hard disk will also be in the list , but do not change startup options, F2 continue after entering system format to see the new hard drive; b. After entering the system. Create the reconfigure file in the root directory, # touch/reconfigure,init 5 reboot system, reconfigure file can be introduced to the system to automatically monitor the new device during the system startup;
c to enter the system, the implementation of DEVFSADM command, the system to detect new additions to the equipment, this method does not require reboot, very good;There are many ways to do this, continue ...
################################# #找到设备并格式化 ########################################
Before you write data to a hard disk, you first need to partition and format it, which can generally be divided into 3
Steps:
1. Physical format, which is usually called low-level format (low-level formatting,llf);
2. Zoning;
3. Logical formatting, which is commonly referred to as advanced formatting (high-level FORMATTING,HLF)
In low-level format, the hard disk is divided into several tracks, which are divided into sectors, and each sector fills with random data. Almost all of the hard drives have been formatted in low-level format before they are shipped,
As a result, users can do the following two steps (partitioning and logical formatting) on the hard disk.
The partition's action divides the hard disk into sections , partitions, or fragments (note: the front "Partition" is a verb, followed by a noun). Each partition/fragment is made up of several cylindrical surfaces. In most cases, a partition one by one in Solaris corresponds to a file system. A partition cannot contain more than one file system, and also a file system cannot span multiple partitions. In Solaris, partitioning the hard disk is the use of the format command we used at the beginning.
When Solaris makes advanced formatting, each partition is divided into a number of cylinder groups, and each cylinder group includes several contiguous cylinders.
File systems create files and directories in these cylinder groups, and try to keep the same file data in the same cylinder group. Such a mechanism can ensure that the head reads data with minimal movement, thus speeding up the reading speed of the data. Solaris uses the NEWFS command for advanced formatting, and the default file system is the Unix filesystem (Ufs:unixfile system), which uses the following types of blocks:
1. Boot BLOCK: Information required for storage system startup
2. Super BLOCK: Storing file system Information
3. Index node (i node): Storing individual file information in a file system
4. Storage Block/Data block: Storing file data ################################# #找到设备并格式化 ########################################3,After detection, we execute the format, this time will find that there are more than 2 number of 1,2 hard drive
(The original hard drive number is 0), in VMware generally for c0d1, select 1 hard drive.
[Root@/]#>df(The original hard drive isc1t0xxxx
FileSystem 1k-blocks Used Available use% mounted on
/dev/dsk/c1t0d0s013116240 12751791 233287 99%/
Swap 1813320 904 1812416 1%/etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
13116240 12751791 233287 99%/lib/libc.so.1
Swap 1812524 108 1812416 1%/tmp
Swap 1812452 1812416 1%/var/run
/dev/dsk/c1t0d0s12017104 2049 1954542 1%/swap
/hgfs 16777215 4096 16772864 1%/hgfs
[Root@/]#>format(multiple numbered 1,2 two hard drives)
Searching for Disks...done
AVAILABLE DISK Selections:
0.c1t0D0 <default Cyl 1955 alt 2 HD 255 sec 63>
/pci@0,0/pci1000,30@10/sd@0,0
1.c1t1D0 <default cyl 2557 alt 2 HD 128 sec 32>
/pci@0,0/pci1000,30@10/sd@1,0
2.c1t2D0 <default cyl 2557 alt 2 HD 128 sec 32>
/pci@0,0/pci1000,30@10/sd@2,0
############################ notes: 1. Disk Management-—— partition naming conventions #########################
For each disk fragment, usually expressed as cxtxdxsx, where the meaning of c/t/d/s is as follows:
The *C represents the controller label. The controller is located above the motherboard, the so-called controller, is the control, the device that emits the command.
The *t represents the target number. A unique hardware address that is assigned to each storage device.
*D represents the disk number. This number reflects the disk number on the target location, which is the specific disk
The *s represents the fragment number. Usually from 0~7, that's the zoning number.
############################ notes: 1. Disk Management-—— partition naming conventions #########################4,New hard drives we generally need to first execute fdisk,format> fdisk,
SELECT one of the following:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection:
Create and select the correspondingpartition format (note to be separated from the file system format area)
For example 80g hard disk can be partitioned to 60g Unix, 20g left to Windows
When you are finished, you will be presented with the summary information, 5 save exit.5,Back to format>, select partition,format> partition to the new hard drive partition.6,Listed 0-7 altogether 8 partition, chooses 7 bar, uses as the home partition, the carriage return;
Request to fill in partition ID tag, write home, enter;
Default WM (writable can be mounted), enter;
Show default new starting Cyl[3] (since 0-2 is used by alternates and boot), carriage return;
Specify the size, I will leave all the cylinders to home, enter, back to partition>.7,Give the current partition table a name,partition> name, just call Newtabel.8,Execute partition> label, select Yes, finish this step can check the partition table with print, Partition 7 Home already has the set size.9,Type quit back to format>,Execute save, Save the settings,Here you need to fill in the full path/etc/format.dat,yes after quit, back to #.
10,The partitions are done, and a new file system needs to be created (If the file system is not established here, it is a bare device. Naming by/dev/rdsk/diskCXTXDXSX to use).
With Newfs, execute command # NEWFS/DEV/DSK/C0D1S7, and the Superblock backup address will be displayed after execution. Complete this step to check that the file system is correct using fsck.11, only after the establishment of the file system can be managed through file system commands. Create the NewHome directory under the root directory to be used as the mount point for the new partition, # Mkdir/newhome.12,Mount, # Mount/dev/dsk/c0d1s7/newhome, Mount complete available df-k view mount results. However, after the reboot you will find that the partitions that are mounted under the/newhome are gone. With df-k view, found missing. It turns out we're one step ahead--set up automatic mount:13,Edit/etc/vfstab file, # vi/etc/Vfstab, add a new row,/dev/dsk/c0d1s7/dev/rdsk/c0d1s7/newhome ufs 2 yes-reboot found, C0D1S7 has been able to automatically mount to the/NewHome directory. Turn from: http://hi.baidu.com/dba_james/blog/item/09e2f3fd640581fafd037fa0.html