Linux Integration :
Login the Linux server
Putty :192.168.10.94
username : root
Password : root123
To check the Linux partions
[root@ktlinux ~]# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn 't support GPT. Use GNU Parted.
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0x52995299
Device Boot Start End Blocks Id System
/dev/sda1 1 60802 488386583+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn 't support GPT. Use GNU Parted.
Disk /dev/sdb: 5368 MB, 5368709120 bytes
256 heads, 63 sectors/track, 650 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 266306 2147483647+ ee GPT
Partition 1 has different physical/logical endings:
phys=(1023, 255, 63) logical=(266305, 4, 4)
Disk /dev/sdd: 3221 MB, 3221225472 bytes
100 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6200 * 512 = 3174400 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdd doesn't contain a valid partition table
WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn 't support GPT. Use GNU Parted.
Disk /dev/sde: 5368 MB, 5368709120 bytes
256 heads, 63 sectors/track, 650 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sde1 1 266306 2147483647+ ee GPT
Partition 1 has different physical/logical endings:
phys=(1023, 255, 63) logical=(266305, 4, 4)
Disk /dev/sdg: 3221 MB, 3221225472 bytes
100 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6200 * 512 = 3174400 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/dm-0: 5242 MB, 5242880000 bytes
255 heads, 63 sectors/track, 637 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: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 41.9 GB, 41943040000 bytes
255 heads, 63 sectors/track, 5099 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: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
WARNING: GPT (GUID Partition Table) detected on '/dev/emcpowerf'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/emcpowerf: 5368 MB, 5368709120 bytes
256 heads, 63 sectors/track, 650 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/emcpowerf1 1 266306 2147483647+ ee GPT
Partition 1 has different physical/logical endings:
phys=(1023, 255, 63) logical=(266305, 4, 4)
Disk /dev/emcpowerh: 3221 MB, 3221225472 bytes
100 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6200 * 512 = 3174400 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/emcpowerh doesn't contain a valid partition table
To check rpm package for hostagent Package in Linux
[root@ktlinux Unisphere]# rpm -qa | grep -i hostagent HostAgent-Linux-32-x86-en_US-1.3.2.1.0051-1.i386
Note:- It display the installed packages
To Remove rpm Package for hostagent
[root@ktlinux Unisphere]# rpm -e
To install package Hostagent
[root@ktlinux opt]# rpm -ivh HostAgent-Linux-32-x86-en_US-1.3.2.1.0051-1.i386.rpm
To configure the Hostagent
[root@ktlinux Unisphere]# cd /etc/Unisphere
[root@ktlinux Unisphere]# vim agent.config
In the end the File(LastLine #)
user system@192.168.100.201(SPA)
user system@192.168.100.202(SPB)
:wq!(To save)
To restart the service
[root@ktlinux Unisphere]# service hostagent restart
Shutting down hostagent: [ OK ]
To check the status
[root@ktlinux Unisphere]# service hostagent status
hostagent (pid 2768) is running...
To Rescan the Modules
[root@ktlinux ~]# lsmod
Module Size Used by
autofs4 21604 3
sunrpc 197617 1
p4_clockmod 3135 0
be2iscsi 49265 0
bnx2i 35553 0
cnic 41145 1 bnx2i
uio 8340 1 cnic
cxgb3i 32188 0
cxgb3 131022 1 cxgb3i
mdio 3878 1 cxgb3
ib_iser 26076 0
rdma_cm 29609 1 ib_iser
ib_cm 30930 1 rdma_cm
iw_cm 6901 1 rdma_cm
ib_sa 18168 2 rdma_cm,ib_cm
ib_mad 34828 2 ib_cm,ib_sa
ib_core 53769 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ib_addr 4969 1 rdma_cm
ipv6 264702 42 cnic,ib_addr
iscsi_tcp 8358 4
libiscsi_tcp 13871 2 cxgb3i,iscsi_tcp
libiscsi 39351 6 be2iscsi,bnx2i,cxgb3i,ib_iser,iscsi_tcp,libiscsi_tcp
scsi_transport_iscsi 30037 8 be2iscsi,bnx2i,cxgb3i,ib_iser,iscsi_tcp,libiscsi
emcpdm 40718 0
emcpgpx 13224 1 emcpdm
emcpmpx 157410 6
emcp 1518708 3 emcpdm,emcpgpx,emcpmpx
dm_mirror 11620 0
dm_region_hash 10127 1 dm_mirror
dm_log 8520 2 dm_mirror,dm_region_hash
ppdev 7335 0
parport_pc 19348 0
parport 31019 2 ppdev,parport_pc
dcdbas 7069 0
sg 24778 0
i2c_i801 9222 0
iTCO_wdt 9324 0
iTCO_vendor_support 2382 1 iTCO_wdt
tg3 116521 0
snd_hda_codec_idt 52056 1
snd_hda_intel 21333 0
snd_hda_codec 70277 2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep 5320 1 snd_hda_codec
snd_seq 46091 0
snd_seq_device 5354 1 snd_seq
snd_pcm 67225 2 snd_hda_intel,snd_hda_codec
snd_timer 18308 2 snd_seq,snd_pcm
snd 52722 8 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore 6460 1 snd
snd_page_alloc 7080 2 snd_hda_intel,snd_pcm
i82975x_edac 2384 0
edac_core 36599 2 i82975x_edac
ext4 322814 2
mbcache 5918 1 ext4
jbd2 73876 1 ext4
firewire_ohci 21090 0
firewire_core 42630 1 firewire_ohci
crc_itu_t 1343 1 firewire_core
qla2xxx 246038 6
scsi_transport_fc 40098 1 qla2xxx
scsi_tgt 10035 1 scsi_transport_fc
sd_mod 33344 12
crc_t10dif 1191 1 sd_mod
sr_mod 14187 0
cdrom 34035 1 sr_mod
ahci 32835 41
pata_acpi 2487 0
ata_generic 2555 0
ata_piix 19016 0
nouveau 484041 1
ttm 37976 1 nouveau
drm_kms_helper 29029 1 nouveau
drm 162327 3 nouveau,ttm,drm_kms_helper
i2c_algo_bit 4600 1 nouveau
video 16662 1 nouveau
output 1779 1 video
i2c_core 25799 5 i2c_i801,nouveau,drm_kms_helper,drm,i2c_algo_bit
dm_mod 63859 9 dm_mirror,dm_log
[root@ktlinux ~]#
To Scan
[root@ktlinux ~]# modprobe -r qla2xxx
[root@ktlinux ~]# modprobe -a qla2xxx
To start the Powerpath
[root@ktlinux ~]# service PowerPath start
To see the Storage Lun with Sudo Name
[root@ktlinux ~]# powermt display dev=all
[root@ktlinux ~]# powermt display dev=all
Pseudo name=emcpowerf
CLARiiON ID=CKM00124702702 [BKP_stg]
Logical device ID=600601609CD03200240B8B3D0A82E511 [Winxp_Lun]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B Array failover mode: 4
=======================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
=======================================================================
6 qla2xxx sdb SP A0 active alive 0 0
6 qla2xxx sde SP B0 active alive 0 0
Pseudo name=emcpowerh
CLARiiON ID=CKM00124702702 [BKP_stg]
Logical device ID=600601609CD0320062E655C4BB82E511 [My_Linux_Lun]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
Owner: default=SP A, current=SP A Array failover mode: 4
=======================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
=======================================================================
6 qla2xxx sdd SP A0 active alive 0 0
6 qla2xxx sdg SP B0 active alive 0 0
Pseudo name=emcpowerg
CLARiiON ID=CKM00124702702 [BKP_stg]
Logical device ID=600601609CD0320065B64E162082E511 [my_snapshot]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B Array failover mode: 4
========================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
========================================================================
6 qla2xxx sdc SP A0 active alive 0 0
6 qla2xxx sdf SP B0 active alive 0 0
[root@ktlinux ~]# fdisk /dev/emcpowerh
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x2a0e20ed.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help):
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)
[root@ktlinux ~]# fdisk /dev/emcpowerh
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x9defdc8d.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1014, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1014, default 1014):
Using default value 1014
Command (m for help): p
Disk /dev/emcpowerh: 3221 MB, 3221225472 bytes
100 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6200 * 512 = 3174400 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9defdc8d
Device Boot Start End Blocks Id System
/dev/emcpowerh1 1 1014 3143369 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
It update Partion Table
[root@ktlinux ~]# partx -a /dev/emcpowerh
BLKPG: Device or resource busy
error adding partition 1
[root@ktlinux ~]# partx -a /dev/emcpowerh
BLKPG: Device or resource busy
error adding partition 1
To Format the Partion with Ext4
[root@ktlinux ~]# mkfs.ext4 /dev/emcpowerh
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
196608 inodes, 786432 blocks
39321 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=805306368
24 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
To Mount the Partion
[root@ktlinux ~]# mkdir /nas
[root@ktlinux ~]# mount /dev/emcpowerh /nas/
[root@ktlinux ~]# mount
/dev/mapper/vg_ktlinux-LogVol00 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda2 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/emcpowerh on /nas type ext4 (rw)
To see the Partion Information(In Human Readable Format)
[root@ktlinux ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_ktlinux-LogVol00
39G 7.9G 29G 22% /
tmpfs 1011M 0 1011M 0% /dev/shm
/dev/sda2 194M 24M 161M 13% /boot
/dev/emcpowerh 3.0G 69M 2.8G 3% /nas
[root@ktlinux ~]#
Login the Linux server
Putty :192.168.10.94
username : root
Password : root123
To check the Linux partions
[root@ktlinux ~]# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn 't support GPT. Use GNU Parted.
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0x52995299
Device Boot Start End Blocks Id System
/dev/sda1 1 60802 488386583+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn 't support GPT. Use GNU Parted.
Disk /dev/sdb: 5368 MB, 5368709120 bytes
256 heads, 63 sectors/track, 650 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 266306 2147483647+ ee GPT
Partition 1 has different physical/logical endings:
phys=(1023, 255, 63) logical=(266305, 4, 4)
Disk /dev/sdd: 3221 MB, 3221225472 bytes
100 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6200 * 512 = 3174400 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdd doesn't contain a valid partition table
WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn 't support GPT. Use GNU Parted.
Disk /dev/sde: 5368 MB, 5368709120 bytes
256 heads, 63 sectors/track, 650 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sde1 1 266306 2147483647+ ee GPT
Partition 1 has different physical/logical endings:
phys=(1023, 255, 63) logical=(266305, 4, 4)
Disk /dev/sdg: 3221 MB, 3221225472 bytes
100 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6200 * 512 = 3174400 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdg doesn't contain a valid partition table
Disk /dev/dm-0: 5242 MB, 5242880000 bytes
255 heads, 63 sectors/track, 637 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: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 41.9 GB, 41943040000 bytes
255 heads, 63 sectors/track, 5099 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: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
WARNING: GPT (GUID Partition Table) detected on '/dev/emcpowerf'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/emcpowerf: 5368 MB, 5368709120 bytes
256 heads, 63 sectors/track, 650 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/emcpowerf1 1 266306 2147483647+ ee GPT
Partition 1 has different physical/logical endings:
phys=(1023, 255, 63) logical=(266305, 4, 4)
Disk /dev/emcpowerh: 3221 MB, 3221225472 bytes
100 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6200 * 512 = 3174400 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/emcpowerh doesn't contain a valid partition table
To check rpm package for hostagent Package in Linux
[root@ktlinux Unisphere]# rpm -qa | grep -i hostagent HostAgent-Linux-32-x86-en_US-1.3.2.1.0051-1.i386
Note:- It display the installed packages
To Remove rpm Package for hostagent
[root@ktlinux Unisphere]# rpm -e
To install package Hostagent
[root@ktlinux opt]# rpm -ivh HostAgent-Linux-32-x86-en_US-1.3.2.1.0051-1.i386.rpm
To configure the Hostagent
[root@ktlinux Unisphere]# cd /etc/Unisphere
[root@ktlinux Unisphere]# vim agent.config
In the end the File(LastLine #)
user system@192.168.100.201(SPA)
user system@192.168.100.202(SPB)
:wq!(To save)
To restart the service
[root@ktlinux Unisphere]# service hostagent restart
Shutting down hostagent: [ OK ]
To check the status
[root@ktlinux Unisphere]# service hostagent status
hostagent (pid 2768) is running...
To Rescan the Modules
[root@ktlinux ~]# lsmod
Module Size Used by
autofs4 21604 3
sunrpc 197617 1
p4_clockmod 3135 0
be2iscsi 49265 0
bnx2i 35553 0
cnic 41145 1 bnx2i
uio 8340 1 cnic
cxgb3i 32188 0
cxgb3 131022 1 cxgb3i
mdio 3878 1 cxgb3
ib_iser 26076 0
rdma_cm 29609 1 ib_iser
ib_cm 30930 1 rdma_cm
iw_cm 6901 1 rdma_cm
ib_sa 18168 2 rdma_cm,ib_cm
ib_mad 34828 2 ib_cm,ib_sa
ib_core 53769 6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ib_addr 4969 1 rdma_cm
ipv6 264702 42 cnic,ib_addr
iscsi_tcp 8358 4
libiscsi_tcp 13871 2 cxgb3i,iscsi_tcp
libiscsi 39351 6 be2iscsi,bnx2i,cxgb3i,ib_iser,iscsi_tcp,libiscsi_tcp
scsi_transport_iscsi 30037 8 be2iscsi,bnx2i,cxgb3i,ib_iser,iscsi_tcp,libiscsi
emcpdm 40718 0
emcpgpx 13224 1 emcpdm
emcpmpx 157410 6
emcp 1518708 3 emcpdm,emcpgpx,emcpmpx
dm_mirror 11620 0
dm_region_hash 10127 1 dm_mirror
dm_log 8520 2 dm_mirror,dm_region_hash
ppdev 7335 0
parport_pc 19348 0
parport 31019 2 ppdev,parport_pc
dcdbas 7069 0
sg 24778 0
i2c_i801 9222 0
iTCO_wdt 9324 0
iTCO_vendor_support 2382 1 iTCO_wdt
tg3 116521 0
snd_hda_codec_idt 52056 1
snd_hda_intel 21333 0
snd_hda_codec 70277 2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep 5320 1 snd_hda_codec
snd_seq 46091 0
snd_seq_device 5354 1 snd_seq
snd_pcm 67225 2 snd_hda_intel,snd_hda_codec
snd_timer 18308 2 snd_seq,snd_pcm
snd 52722 8 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore 6460 1 snd
snd_page_alloc 7080 2 snd_hda_intel,snd_pcm
i82975x_edac 2384 0
edac_core 36599 2 i82975x_edac
ext4 322814 2
mbcache 5918 1 ext4
jbd2 73876 1 ext4
firewire_ohci 21090 0
firewire_core 42630 1 firewire_ohci
crc_itu_t 1343 1 firewire_core
qla2xxx 246038 6
scsi_transport_fc 40098 1 qla2xxx
scsi_tgt 10035 1 scsi_transport_fc
sd_mod 33344 12
crc_t10dif 1191 1 sd_mod
sr_mod 14187 0
cdrom 34035 1 sr_mod
ahci 32835 41
pata_acpi 2487 0
ata_generic 2555 0
ata_piix 19016 0
nouveau 484041 1
ttm 37976 1 nouveau
drm_kms_helper 29029 1 nouveau
drm 162327 3 nouveau,ttm,drm_kms_helper
i2c_algo_bit 4600 1 nouveau
video 16662 1 nouveau
output 1779 1 video
i2c_core 25799 5 i2c_i801,nouveau,drm_kms_helper,drm,i2c_algo_bit
dm_mod 63859 9 dm_mirror,dm_log
[root@ktlinux ~]#
To Scan
[root@ktlinux ~]# modprobe -r qla2xxx
[root@ktlinux ~]# modprobe -a qla2xxx
To start the Powerpath
[root@ktlinux ~]# service PowerPath start
To see the Storage Lun with Sudo Name
[root@ktlinux ~]# powermt display dev=all
[root@ktlinux ~]# powermt display dev=all
Pseudo name=emcpowerf
CLARiiON ID=CKM00124702702 [BKP_stg]
Logical device ID=600601609CD03200240B8B3D0A82E511 [Winxp_Lun]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B Array failover mode: 4
=======================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
=======================================================================
6 qla2xxx sdb SP A0 active alive 0 0
6 qla2xxx sde SP B0 active alive 0 0
Pseudo name=emcpowerh
CLARiiON ID=CKM00124702702 [BKP_stg]
Logical device ID=600601609CD0320062E655C4BB82E511 [My_Linux_Lun]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
Owner: default=SP A, current=SP A Array failover mode: 4
=======================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
=======================================================================
6 qla2xxx sdd SP A0 active alive 0 0
6 qla2xxx sdg SP B0 active alive 0 0
Pseudo name=emcpowerg
CLARiiON ID=CKM00124702702 [BKP_stg]
Logical device ID=600601609CD0320065B64E162082E511 [my_snapshot]
state=alive; policy=BasicFailover; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B Array failover mode: 4
========================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
========================================================================
6 qla2xxx sdc SP A0 active alive 0 0
6 qla2xxx sdf SP B0 active alive 0 0
[root@ktlinux ~]# fdisk /dev/emcpowerh
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x2a0e20ed.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help):
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)
[root@ktlinux ~]# fdisk /dev/emcpowerh
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x9defdc8d.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1014, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1014, default 1014):
Using default value 1014
Command (m for help): p
Disk /dev/emcpowerh: 3221 MB, 3221225472 bytes
100 heads, 62 sectors/track, 1014 cylinders
Units = cylinders of 6200 * 512 = 3174400 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9defdc8d
Device Boot Start End Blocks Id System
/dev/emcpowerh1 1 1014 3143369 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
It update Partion Table
[root@ktlinux ~]# partx -a /dev/emcpowerh
BLKPG: Device or resource busy
error adding partition 1
[root@ktlinux ~]# partx -a /dev/emcpowerh
BLKPG: Device or resource busy
error adding partition 1
To Format the Partion with Ext4
[root@ktlinux ~]# mkfs.ext4 /dev/emcpowerh
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
196608 inodes, 786432 blocks
39321 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=805306368
24 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
To Mount the Partion
[root@ktlinux ~]# mkdir /nas
[root@ktlinux ~]# mount /dev/emcpowerh /nas/
[root@ktlinux ~]# mount
/dev/mapper/vg_ktlinux-LogVol00 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/sda2 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/emcpowerh on /nas type ext4 (rw)
To see the Partion Information(In Human Readable Format)
[root@ktlinux ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_ktlinux-LogVol00
39G 7.9G 29G 22% /
tmpfs 1011M 0 1011M 0% /dev/shm
/dev/sda2 194M 24M 161M 13% /boot
/dev/emcpowerh 3.0G 69M 2.8G 3% /nas
[root@ktlinux ~]#
Tag :
Linux Integration
0 Komentar untuk "Linux intergration"