在操作系统层,能识别这样的lun,下面的sdb就是一个刚划分的300g的lun(也就是硬盘,或者裸块设备)。 [root@pri ~]# cd /dev [root@pri dev]# ls -l | grep sd brw-r----- 1 root disk 8, 0 Apr 11 12:21 sda brw-r----- 1 root disk 8, 1 Apr 11 12:21 sda1 brw-r----- 1 root disk 8, 2 Apr 11 12:21 sda2 brw-r----- 1 root disk 8, 16 Apr 11 12:21 sdb
[root@pri dev]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 39162. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-39162, default 1): 1 Last cylinder or +size or +sizeM or +sizeK (1-39162, default 39162): 60 Command (m for help): n Command action e extended p primary partition (1-4) 2 Invalid partition number for type `2' Command action e extended p primary partition (1-4) p Partition number (1-4): 2 First cylinder (61-39162, default 61): 61 Last cylinder or +size or +sizeM or +sizeK (61-39162, default 39162): 120 Command (m for help): n Command action e extended p primary partition (1-4) 3 Invalid partition number for type `3' Command action e extended p primary partition (1-4) p Partition number (1-4): 3 First cylinder (121-39162, default 121): 121 Last cylinder or +size or +sizeM or +sizeK (121-39162, default 39162): 180 Command (m for help): n Command action e extended p primary partition (1-4) p Selected partition 4 First cylinder (181-39162, default 181): 181 Last cylinder or +size or +sizeM or +sizeK (181-39162, default 39162): 240 Command (m for help): n You must delete some partition and add an extended partition first Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): d Partition number (1-4): 4 Command (m for help): n Command action e extended p primary partition (1-4) e Selected partition 4 First cylinder (181-39162, default 181): Using default value 181 Last cylinder or +size or +sizeM or +sizeK (181-39162, default 39162): 240 Command (m for help): n First cylinder (181-240, default 181): Using default value 181 Last cylinder or +size or +sizeM or +sizeK (181-240, default 240): 210 Command (m for help): n First cylinder (211-240, default 211): Using default value 211 Last cylinder or +size or +sizeM or +sizeK (211-240, default 240): Using default value 240 Co