fdisk -l
看分区会报错,比如:
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
所以这个sda就是gpt的。
看gpt分区详细内容可用parted,如:
parted /dev/sda
测试iscsi服务是否正常
[root@FocusBackup ~]# service iscsi restart
停止 iscsi: [确定]
[root@FocusBackup ~]# chkconfig iscsi on
[root@FocusBackup ~]# iscsiadm -m discovery -t sendtargets -p 10.5.83.131
正在启动 iscsid: [确定]
10.5.83.131:3260,1 http://www.doczj.com/doc/9b4f9fa790c69ec3d4bb7591.html.openfiler:tsn.vmlocalbackup
[root@FocusBackup ~]# iscsiadm -m node -T
http://www.doczj.com/doc/9b4f9fa790c69ec3d4bb7591.html.openfiler:tsn.vmlocalbackup -p 10.5.83.131 -l
Logging in to [iface: default, target:
http://www.doczj.com/doc/9b4f9fa790c69ec3d4bb7591.html.openfiler:tsn.vmlocalbackup, portal: 10.5.83.131,3260] (multiple)
Login to [iface: default, target: http://www.doczj.com/doc/9b4f9fa790c69ec3d4bb7591.html.openfiler:tsn.vmlocalbackup, portal: 10.5.83.131,3260] successful.
查看硬盘设备
[root@FocusBackup ~]# fdisk -l
Disk /dev/sda: 322.1 GB, 322122547200 bytes
255 heads, 63 sectors/track, 39162 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a4673
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 1332 10485760 82 Linux swap / Solaris