disk 추가

Linux 2016. 7. 25. 18:05

login as: root
root@192.168.116.100's password:
Last login: Mon Jul 25 16:56:47 2016 from 192.168.116.1
[root@ORACLE-SVR ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5              18G  9.4G  7.3G  57% /
tmpfs                1001M  100K 1001M   1% /dev/shm
/dev/sda1             194M   50M  135M  28% /boot
/dev/sda2              20G   15G  4.1G  79% /u01
[root@ORACLE-SVR ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xfa532e11.
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-1305, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-1305, default 1305):
Using default value 1305

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@ORACLE-SVR ~]# select tablespace_name from dba_tablespaces
-bash: syntax error near unexpected token `from'
[root@ORACLE-SVR ~]#   2  where tablespace_name not in v('SYSTEM','SYSAUX','UNDOTBS','USERS');^C
[root@ORACLE-SVR ~]# mkfs -t ext4 /dev/sdb1
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
655360 inodes, 2620595 blocks
131029 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
8192 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 25 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@ORACLE-SVR ~]# mkdir /backup
[root@ORACLE-SVR ~]# chown -R oracle:dba /backup
[root@ORACLE-SVR ~]# mount /dev/sdb1 /backup
[root@ORACLE-SVR ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda5              18G  9.4G  7.3G  57% /
tmpfs                1001M  112K 1001M   1% /dev/shm
/dev/sda1             194M   50M  135M  28% /boot
/dev/sda2              20G   15G  4.1G  79% /u01
/dev/sdb1             9.9G  151M  9.2G   2% /backup
[root@ORACLE-SVR ~]#

 

'Linux' 카테고리의 다른 글

File System과 Raw device  (0) 2016.08.04
리눅스 디렉토리  (0) 2016.05.17
wget  (0) 2016.05.04
mariaDB 설치  (0) 2016.05.04
YUM,RPM 명령어 옵션  (0) 2016.05.04
admin