A. Adding Hard disk
1. Checking current mount points drives
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 9.4G 2.1G 7.3G 22% /
/dev/xvda1 99M 13M 82M 13% /boot
tmpfs 2.1G 0 2.1G 0% /dev/shm
2 . Listing drives
[root@~]# fdisk -l
Disk /dev/xvda: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/xvda1 * 1 13 104391 83 Linux
/dev/xvda2 14 1264 10048657+ 83 Linux
/dev/xvda3 1265 1566 2425815 82 Linux swap / Solaris
Disk /dev/xvdb: 429.4 GB, 429496729600 bytes
255 heads, 63 sectors/track, 52216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/xvdb doesn't contain a valid partition table
3. Creating Partion
[root@SERVER ~]# fdisk /dev/xvdb
The number of cylinders for this disk is set to 52216.
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)
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): n
Command action
e extended
p primary partition (1-4)
e
Partition number (1-4): 1
First cylinder (1-52216, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-52216, default 52216):
Using default value 52216
Command (m for help):
Command (m for help): v
838860798 unallocated sectors
4. Format
[root@SERVER ~]# mkfs.ext3 /dev/xvdb
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
52428800 inodes, 104857600 blocks
5242880 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
3200 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, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@SERVER ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 9.4G 2.1G 7.3G 22% /
/dev/xvda1 99M 13M 82M 13% /boot
tmpfs 2.1G 0 2.1G 0% /dev/shm
5. Editing fstab
[root@SERVER ~]# vi /etc/fstab
Add entry like this
/dev/xvdb /data ext3 defaults 1 2
[root@SERVER ~]# mkdir /data
6, Mounting ..
[root@SERVER ~]# mount /dev/xvdb /data
[root@SERVER ~]# cd /data
[root@SERVER data]# ls -l
total 16
drwx------ 2 root root 16384 Oct 11 05:28 lost+found
[root@SERVER data]# vi ster
[root@SERVER data]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 9.4G 2.1G 7.3G 22% /
/dev/xvda1 99M 13M 82M 13% /boot
tmpfs 2.1G 0 2.1G 0% /dev/shm
/dev/xvdb 394G 199M 374G 1% /data
B. Adding in OVS cluster :
/opt/ovs-agent-2.3/utils/repos.py -l
fdisk /dev/sdb
Check : http://rreddy.blogspot.com/2011/06/create-rac-instance-using-oracle-vm.html
C.Adding VM manger:
[root@ecmtest running_pool]# /opt/ovs-agent-2.3/utils/repos.py -l
[ * ] 8b7c78d0-1578-41ce-b988-2c5ff686c12c => /dev/sda3
[ ] 94ef36a3-6221-46c6-a68d-ae5ff8f4b1c8 => /dev/sdb5
Add the files in newly created /var/ovs/mount/94EF36A3622146C6A68DAE5FF8F4B1C8
No comments:
Post a Comment