2014-09-22

Oracle VM Server 3.2.8 Installation

[root@OVS1 ~]# fdisk /dev/sda

The number of cylinders for this disk is set to 38913.
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): p

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14         405     3148740   83  Linux
/dev/sda3             406         536     1052257+  82  Linux swap / Solaris
/dev/sda4             537        9999    76011547+  83  Linux

Command (m for help):

[root@OVS1 ~]# mkfs -t ext4 /dev/sda4
mkfs.ext4: No such file or directory
[root@OVS1 ~]# mkfs -t ext3 /dev/sda4
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
9502720 inodes, 19002886 blocks
950144 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
580 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

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

[root@OVS1 ~]# df -ak
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2              3050092    761552   2131104  27% /
proc                         0         0         0   -  /proc
sysfs                        0         0         0   -  /sys
devpts                       0         0         0   -  /dev/pts
/dev/sda1               101086     27845     68022  30% /boot
tmpfs                   297420         0    297420   0% /dev/shm
debugfs                      0         0         0   -  /sys/kernel/debug
xenfs                        0         0         0   -  /proc/xen
none                         0         0         0   -  /proc/sys/fs/binfmt_misc
sunrpc                       0         0         0   -  /var/lib/nfs/rpc_pipefs
none                    297420        40    297380   1% /var/lib/xenstored
/dev/sda4             74818752    184220  70833956   1% /nfs-home

[root@OVS1 etc]# vi exports 
/nfs-home       *(rw,sync,no_root_squash)

[root@OVS1 etc]# service nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
[root@OVS1 etc]# service portmap start
Starting portmap:                                          [  OK  ]

[root@OVS1 etc]# chkconfig --level 35 nfs on
[root@OVS1 etc]# chkconfig --level 35 portmap on

[root@OVS1 ~]# ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Sep 22 12:32 0d26d0fc-9756-4ecb-b131-b71b53616192 -> ../../sda1
lrwxrwxrwx 1 root root 10 Sep 22 12:32 0de80611-46ce-4aac-8728-d5133f8c0ed2 -> ../../sda3
lrwxrwxrwx 1 root root 10 Sep 22 12:32 39b8ff46-48f8-4422-bd2b-863abec03f21 -> ../../sda4

lrwxrwxrwx 1 root root 10 Sep 22 12:32 a45c4b0b-5370-480d-9e6a-9d9220262ca3 -> ../../sda2

[root@OVS1 ~]# mroe /etc/fstab 
-bash: mroe: command not found
[root@OVS1 ~]# more /etc/fstab 
# This fstab (File System TABle) was created during installation by anaconda
# To accomodate the usage of multipath devices it is prefered that filesystems
# are identified by their UUID. The device the UUID represents is written
# in a comment field above entries that have UUID representation
# UUID's for created FS's can normally be found by using the 'blkid' command

# ID a45c4b0b-5370-480d-9e6a-9d9220262ca3 represents /dev/sda2
UUID=a45c4b0b-5370-480d-9e6a-9d9220262ca3 /          ext3    defaults       1 1
# ID 0d26d0fc-9756-4ecb-b131-b71b53616192 represents /dev/sda1
UUID=0d26d0fc-9756-4ecb-b131-b71b53616192 /boot      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
debugfs                                   /sys/kernel/debug debugfs defaults       0 0
proc                                      /proc      proc    defaults       0 0
xenfs                                     /proc/xen  xenfs   defaults       0 0
# ID 0de80611-46ce-4aac-8728-d5133f8c0ed2 represents /dev/sda3
UUID=0de80611-46ce-4aac-8728-d5133f8c0ed2 swap       swap    defaults       0 0
# ID 39b8ff46-48f8-4422-bd2b-863abec03f21 represents /dev/sda4

UUID=39b8ff46-48f8-4422-bd2b-863abec03f21 /nfs-home  ext3    defaults       1 2






댓글 1개: