- 论坛徽章:
- 0
|
SSH Secure Shell 3.2.9 (Build 283)
Copyright (c) 2000-2003 SSH Communications Security Corp - http://www.ssh.com/
This copy of SSH Secure Shell is a non-commercial version.
This version does not include PKI and PKCS #11 functionality.
Last login: Thu Dec 18 16:29:38 2008
[root@studio3 ~]# fdisk -l
Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 6 1251 10008495 8e Linux LVM
/dev/sda3 * 1252 1276 200812+ 83 Linux
/dev/sda4 1277 17769 132480022+ 5 Extended
/dev/sda5 1277 17769 132479991 8e Linux LVM
[root@studio3 ~]# iscsiadm -m discovery -t st -p 10.10.0.100:3260
10.10.0.100:3260,1 iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio
[root@studio3 ~]# iscsiadm -m node -T iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio -p 10.10.0.100:3260 -l
Logging in to [iface: default, target: iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio, portal: 10.10.0.100,3260]
Login to [iface: default, target: iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio, portal: 10.10.0.100,3260]: successful
[root@studio3 ~]# fdisk -l
Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 6 1251 10008495 8e Linux LVM
/dev/sda3 * 1252 1276 200812+ 83 Linux
/dev/sda4 1277 17769 132480022+ 5 Extended
/dev/sda5 1277 17769 132479991 8e Linux LVM
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 11059.5 GB, 11059546030080 bytes
255 heads, 63 sectors/track, 1344579 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 267350 2147483647+ ee EFI GPT
[root@studio3 ~]# parted /dev/sdb
GNU Parted 1.8.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: EQLOGIC 100E-00 (scsi)
Disk /dev/sdb: 11.1TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 3000GB 3000GB ext3 primary
2 3000GB 6000GB 3000GB ext3 logical
3 6000GB 9000GB 3000GB logical
4 9000GB 10.5TB 1500GB ext3 logical
(parted) quit
Information: Don't forget to update /etc/fstab, if necessary.
[root@studio3 ~]# cd /mnt
[root@studio3 mnt]# ls
temp test
[root@studio3 mnt]# mount /dev/sdb4 test
[root@studio3 mnt]# ls
temp test
[root@studio3 mnt]# cd test
[root@studio3 test]# ls
aaa abc lost+found test11
[root@studio3 test]# mkdir login
[root@studio3 test]# reboot
Broadcast message from root (pts/1) (Fri Dec 19 01:23:34 200 :
The system is going down for reboot NOW!
[root@studio3 test]# Last login: Fri Dec 19 01:18:39 2008 from 10.10.0.11
[root@studio3 ~]# fdisk -l
Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 6 1251 10008495 8e Linux LVM
/dev/sda3 * 1252 1276 200812+ 83 Linux
/dev/sda4 1277 17769 132480022+ 5 Extended
/dev/sda5 1277 17769 132479991 8e Linux LVM
[root@studio3 ~]# iscsiadm -m session -i
iSCSI Transport Class version 2.0-724
iscsiadm version 2.0-868
iscsiadm: No active sessions.
[root@studio3 ~]# cd /var/lib/iscsi
[root@studio3 iscsi]# ls
ifaces nodes send_targets
[root@studio3 iscsi]# rm -rf *
[root@studio3 iscsi]# ls
[root@studio3 iscsi]# cd ..
[root@studio3 lib]# iscsiadm -m discovery -t st -p 10.10.0.100:3260
10.10.0.100:3260,1 iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio
[root@studio3 lib]# iscsiadm -m node -T iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio -p 10.10.0.100:3260 -l
Logging in to [iface: default, target: iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio, portal: 10.10.0.100,3260]
Login to [iface: default, target: iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio, portal: 10.10.0.100,3260]: successful
[root@studio3 lib]# iscsiadm -m session -i
iSCSI Transport Class version 2.0-724
iscsiadm version 2.0-868
Target: iqn.2001-05.com.equallogic:0-8a0906-6f1c09303-09c000002fe49464-studio
Current Portal: 10.10.0.102:3260,1
Persistent Portal: 10.10.0.100:3260,1
**********
Interface:
**********
Iface Name: default
Iface Transport: tcp
Iface Initiatorname: iqn.1994-05.com.redhat:ac81e684969b
Iface IPaddress: 10.10.0.3
Iface HWaddress: default
Iface Netdev: default
SID: 1
iSCSI Connection State: LOGGED IN
iSCSI Session State: Unknown
Internal iscsid Session State: NO CHANGE
************************
Negotiated iSCSI params:
************************
HeaderDigest: None
DataDigest: None
MaxRecvDataSegmentLength: 131072
MaxXmitDataSegmentLength: 65536
FirstBurstLength: 65536
MaxBurstLength: 262144
ImmediateData: Yes
InitialR2T: No
MaxOutstandingR2T: 1
************************
Attached SCSI devices:
************************
Host Number: 1 State: running
scsi1 Channel 00 Id 0 Lun: 0
Attached scsi disk sdb State: running
[root@studio3 lib]# mount /dev/sdb4 /mnt/test
[root@studio3 lib]# cd /mnt/test
[root@studio3 test]# ls
aaa abc login lost+found test11
[root@studio3 test]# touch new file
[root@studio3 test]# ls
aaa abc file login lost+found new test11
[root@studio3 test]# reboot
Broadcast message from root (pts/1) (Fri Dec 19 01:35:18 200 :
The system is going down for reboot NOW!
[root@studio3 test]# Last login: Fri Dec 19 01:30:39 2008 from 10.10.0.11
[root@studio3 ~]# iscsiadm -m session -i
iSCSI Transport Class version 2.0-724
iscsiadm version 2.0-868
iscsiadm: No active sessions.
[root@studio3 ~]# |
|