mpath2 (360060480000190102091533030453034) dm-2 EMC,SYMMETRIX
[size=30G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 0:0:0:112 sdd 8:48 [active][ready]
\_ 3:0:0:112 sdg 8:96 [active][ready]
mpath1 (360060480000190102091533030453033) dm-1 EMC,SYMMETRIX
[size=30G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 0:0:0:111 sdc 8:32 [active][ready]
\_ 3:0:0:111 sdf 8:80 [active][ready]
mpath0 (360060480000190102091533030303830) dm-0 EMC,SYMMETRIX
[size=2.8M][features=0][hwhandler=0][ro]
\_ round-robin 0 [prio=2][active]
\_ 0:0:0:0 sda 8:0 [active][ready]
\_ 3:0:0:0 sdb 8:16 [active][ready]
mpath3 (360060480000190102091533030453035) dm-3 EMC,SYMMETRIX
[size=30G][features=0][hwhandler=0][rw]
\_ round-robin 0 [prio=2][active]
\_ 0:0:0:113 sde 8:64 [active][ready]
\_ 3:0:0:113 sdh 8:112 [active][ready]
krishbe$
krishbe$ inq
Inquiry utility, Version V7.3-891 (Rev 2.0) (SIL Version V6.5.2.0 (Edit Level 891)
Copyright (C) by EMC Corporation, all rights reserved.
For help type inq -h.
…………
——————————————————————–
DEVICE :VEND :PROD :REV :SER NUM :CAP(kb)
——————————————————————–
/dev/sda :EMC :SYMMETRIX :5773 :9100080000 : 2880
/dev/sdb :EMC :SYMMETRIX :5773 :9100080000 : 2880
/dev/sdc :EMC :SYMMETRIX :5773 :9100e03000 : 31200000
/dev/sdd :EMC :SYMMETRIX :5773 :9100e04000 : 31200000
/dev/sde :EMC :SYMMETRIX :5773 :9100e05000 : 31200000
/dev/sdf :EMC :SYMMETRIX :5773 :9100e03000 : 31200000
/dev/sdg :EMC :SYMMETRIX :5773 :9100e04000 : 31200000
/dev/sdh :EMC :SYMMETRIX :5773 :9100e05000 : 31200000
/dev/dm-0 :EMC :SYMMETRIX :5773 :9100080000 : 2880
/dev/dm-1 :EMC :SYMMETRIX :5773 :9100e03000 : 31200000
/dev/dm-2 :EMC :SYMMETRIX :5773 :9100e04000 : 31200000
/dev/dm-3 :EMC :SYMMETRIX :5773 :9100e05000 : 31200000
krishbe$
krishbe$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 94G 2.2G 87G 3% /
/dev/cciss/c0d0p3 19G 173M 18G 1% /var/crash
tmpfs 32G 0 32G 0% /dev/shm
krishbe$
krishbe$ cat /proc/partitions
major minor #blocks name
104 0 143338560 cciss/c0d0
104 1 100759648 cciss/c0d0p1
104 2 20161575 cciss/c0d0p2
104 3 20161575 cciss/c0d0p3
8 0 2880 sda
8 16 2880 sdb
253 0 2880 dm-0
8 32 31200000 sdc
8 48 31200000 sdd
8 64 31200000 sde
253 1 31200000 dm-1
253 2 31200000 dm-2
253 3 31200000 dm-3
8 80 31200000 sdf
8 96 31200000 sdg
8 112 31200000 sdh
krishbe$
krishbe$ fdisk /dev/sdc
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 30468.
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): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partitionn
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): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-30468, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-30468, default 30468):
Using default value 30468
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
krishbe$
krishbe$ fdisk -l /dev/sdc
Disk /dev/sdc: 31.9 GB, 31948800000 bytes
64 heads, 32 sectors/track, 30468 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 30468 31199216 8e Linux LVM
krishbe$
krishbe$ pvcreate /dev/mapper/mpath1p1
Physical volume “/dev/mapper/mpath1p1” successfully created
krishbe$
krishbe$ pvdisplay
“/dev/dm-5” is a new physical volume of “29.75 GB”
— NEW Physical volume —
PV Name /dev/dm-5
VG Name
PV Size 29.75 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID EQ0kuR-zH2V-zSMt-QAEQ-Egkc-GSMg-3nUEP1
krishbe$
krishbe$ vgcreate prdsnacdg /dev/mapper/mpath1p1
/dev/sda: open failed: Read-only file system
Attempt to close device ‘/dev/sda’ which is not open.
/dev/sde: open failed: Read-only file system
Attempt to close device ‘/dev/sde’ which is not open.
Volume group “prdsnacdg” successfully created
krishbe$
krishbe$ vgdisplay
— Volume group —
VG Name prdsnacdg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 29.75 GB
PE Size 4.00 MB
Total PE 7616
Alloc PE / Size 0 / 0
Free PE / Size 7616 / 29.75 GB
VG UUID JRt2Gv-bx2q-Oo5A-BsET-ifmZ-vxOm-6MMZYc
krishbe$
krishbe$ lvcreate -L 20g -n localvol prdsnacdg
Logical volume “localvol” created
krishbe$
krishbe$ lvcreate -L 9.5g -n appsvol prdsnacdg
Logical volume “appsvol” created
krishbe$
krishbe$ lvdisplay
— Logical volume —
LV Name /dev/prdsnacdg/localvol
VG Name prdsnacdg
LV UUID ilDOiV-RqKO-7k7g-uUOQ-CMxQ-scCE-QbtJm3
LV Write Access read/write
LV Status available
# open 0
LV Size 20.00 GB
Current LE 5120
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 256
Block device 253:7
— Logical volume —
LV Name /dev/prdsnacdg/appsvol
VG Name prdsnacdg
LV UUID FC0KCA-SYgT-pRzE-TUU8-GUqm-zoQu-kd5QGL
LV Write Access read/write
LV Status available
# open 0
LV Size 9.50 GB
Current LE 2432
Segments 1
Allocation inherit
Read ahead sectors auto
– currently set to 256
Block device 253:8
krishbe$
krishbe$ mkfs -t ext3 /dev/prdsnacdg/localvol
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2621440 inodes, 5242880 blocks
262144 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
160 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
bash-3.2# mkfs -t ext3 /dev/prdsnacdg/appsvol
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1245184 inodes, 2490368 blocks
124518 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2550136832
76 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
krishbe$
krishbe$ mkdir /apps/oracle
krishbe$ mkdir /local/oracle
krishbe$ cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/var/crash /var/crash ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SW-cciss/c0d0p2 swap swap defaults 0 0
/dev/prdsnacdg/localvol /local/oracle ext3 defaults 1 2
/dev/prdsnacdg/appsvol /apps/oracle ext3 defaults 1 2
krishbe$
krishbe$ mount -a
krishbe$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 94G 2.2G 87G 3% /
/dev/cciss/c0d0p3 19G 173M 18G 1% /var/crash
tmpfs 32G 0 32G 0% /dev/shm
/dev/mapper/prdsnacdg-localvol
20G 173M 19G 1% /local/oracle
/dev/mapper/prdsnacdg-appsvol
9.4G 150M 8.8G 2% /apps/oracle
krishbe$
Recent Comments