没有使用LVM真是伤不起啊
加个磁盘都这么蛋疼!!
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.7G 5.8G 3.5G 63% /
/dev/sda6 16G 11G 4.6G 70% /oracle
/dev/sda5 7.8G 778M 6.6G 11% /home
/dev/sda1 2.0G 46M 1.8G 3% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sdb1 40G 23G 15G 62% /oradata
/dev/sdi1 79G 41G 34G 55% /oradata7
# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/oracle /oracle ext3 defaults 1 2
LABEL=/home /home ext3 defaults 1 2
LABEL=/boot /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
proc /proc proc defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/dev/sdb1 /oradata ext3 defaults 0 0
/dev/sdi1 /oradata7 ext3 defaults 0 0
# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 261 2096451 83 Linux
/dev/sda2 262 1566 10482412+ 83 Linux
/dev/sda3 1567 2088 4192965 82 Linux swap / Solaris
/dev/sda4 2089 5221 25165822+ 5 Extended
/dev/sda5 2089 3133 8393931 83 Linux
/dev/sda6 3134 5221 16771828+ 83 Linux
Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 5221 41937651 83 Linux
Disk /dev/sdi: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdi1 1 10443 83883366 83 Linux
Disk /dev/sdj: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdj doesn't contain a valid partition table
# fdisk /dev/sdj
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 10443.
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): p
Disk /dev/sdj: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-10443, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-10443, default 10443):
Using default value 10443
Command (m for help): p
Disk /dev/sdj: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdj1 1 10443 83883366 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 261 2096451 83 Linux
/dev/sda2 262 1566 10482412+ 83 Linux
/dev/sda3 1567 2088 4192965 82 Linux swap / Solaris
/dev/sda4 2089 5221 25165822+ 5 Extended
/dev/sda5 2089 3133 8393931 83 Linux
/dev/sda6 3134 5221 16771828+ 83 Linux
Disk /dev/sdb: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 5221 41937651 83 Linux
Disk /dev/sdi: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdi1 1 10443 83883366 83 Linux
Disk /dev/sdj: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdj1 1 10443 83883366 83 Linux
# 格式化为ext3格式
# mkfs.ext3 -c /dev/sdj1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
10485760 inodes, 20970841 blocks
1048542 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
640 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
Checking for bad blocks (read-only test): done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
# echo "/dev/sdj1 /oradata8 ext3 defaults 0 0" >> /etc/fstab
# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/oracle /oracle ext3 defaults 1 2
LABEL=/home /home ext3 defaults 1 2
LABEL=/boot /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
proc /proc proc defaults 0 0
LABEL=SWAP-sda3 swap swap defaults 0 0
/dev/sdb1 /oradata ext3 defaults 0 0
/dev/sdi1 /oradata7 ext3 defaults 0 0
/dev/sdj1 /oradata8 ext3 defaults 0 0
# mkdir /oradata8
# mount -a
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.7G 5.8G 3.5G 63% /
/dev/sda6 16G 11G 4.6G 70% /oracle
/dev/sda5 7.8G 778M 6.6G 11% /home
/dev/sda1 2.0G 46M 1.8G 3% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sdb1 40G 21G 17G 57% /oradata
/dev/sdi1 79G 41G 34G 55% /oradata7
/dev/sdj1 79G 184M 75G 1% /oradata8
阅读(1473) | 评论(0) | 转发(0) |