虛擬磁碟空間滿後的擴充套件方法
前幾天發現VMware虛擬機器上安裝Grid的資料/u01區滿了,具體處理過程可以認為如下兩個步驟。
1、將VMware上的虛擬關閉後,在虛擬機器OS對應的連線上單擊滑鼠右鍵,選擇setting...,在彈出視窗中選中Hard Disk,在視窗右邊會發生變化,其中選擇utilities對應下拉選單中的Expand,彈出表單中輸入容量,然後單擊Expand按鈕。
重啟虛擬機器後發現,分割槽沒有擴充套件。
這個時候我們目的可能是擴充套件已滿的分割槽,但是實現起來要做的應該是在增加新的分割槽並將部分檔案已過去來平衡空間問題。
2、以上步驟完成後,具體新增分割槽並掛在的過程的操作步驟如下:
Last login: Sat Dec 15 06:15:45 2012 from 10.7.191.100
[oracle@ocm2 ~]$ su - root
Password:
[root@ocm2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.7G 3.7G 2.7G 59% /
/dev/sda2 12G 4.7G 6.6G 42% /u01
tmpfs 1014M 0 1014M 0% /dev/shm
[root@ocm2 ~]# fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 892 7164958+ 83 Linux
/dev/sda2 893 2480 12755610 83 Linux
/dev/sda3 2481 2610 1044225 82 Linux swap / Solaris
[root@ocm2 ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 3916.
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)
p
Selected partition 4
First cylinder (2611-3916, default 2611):
Using default value 2611
Last cylinder or +size or +sizeM or +sizeK (2611-3916, default 3916):
Using default value 3916
Command (m for help): p
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 892 7164958+ 83 Linux
/dev/sda2 893 2480 12755610 83 Linux
/dev/sda3 2481 2610 1044225 82 Linux swap / Solaris
/dev/sda4 2611 3916 10490445 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@ocm2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.7G 3.7G 2.7G 59% /
/dev/sda2 12G 4.7G 6.6G 42% /u01
tmpfs 1014M 0 1014M 0% /dev/shm
[root@ocm2 ~]# reboot
Broadcast message from root (pts/0) (Sat Dec 15 19:40:27 2012):
The system is going down for reboot NOW!
[root@ocm2 ~]#
Last login: Sat Dec 15 19:35:57 2012 from 10.7.191.100
[oracle@ocm2 ~]$ su - root
Password:
[root@ocm2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.7G 3.7G 2.7G 59% /
/dev/sda2 12G 4.6G 6.7G 41% /u01
tmpfs 1014M 0 1014M 0% /dev/shm
[root@ocm2 ~]# fdisk -
Unable to open -
[root@ocm2 ~]# fdisk -l
Disk /dev/sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors/track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 892 7164958+ 83 Linux
/dev/sda2 893 2480 12755610 83 Linux
/dev/sda3 2481 2610 1044225 82 Linux swap / Solaris
/dev/sda4 2611 3916 10490445 83 Linux
[root@ocm2 ~]# 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)
1311552 inodes, 2622611 blocks
131130 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2688548864
81 block groups
32768 blocks per group, 32768 fragments per group
16192 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 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@ocm2 ~]#
[root@ocm2 ~]# 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)
1311552 inodes, 2622611 blocks
131130 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2688548864
81 block groups
32768 blocks per group, 32768 fragments per group
16192 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 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@ocm2 ~]# more /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/u01 /u01 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
[root@ocm2 ~]# mdkir /u02
-bash: mdkir: command not found
[root@ocm2 ~]# mkdir /u02
[root@ocm2 ~]# mount /dev/sda4 /u02
[root@ocm2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.7G 3.7G 2.7G 59% /
/dev/sda2 12G 4.6G 6.7G 41% /u01
tmpfs 1014M 0 1014M 0% /dev/shm
/dev/sda4 9.9G 151M 9.3G 2% /u02
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18841027/viewspace-1059933/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux 虛擬機器擴充套件磁碟空間Linux虛擬機套件
- vm exsi 擴充套件windows虛擬機器磁碟空間套件Windows虛擬機
- ubuntu 擴充套件磁碟空間Ubuntu套件
- 擴充套件系統的磁碟空間套件
- Linux虛擬機器擴充套件磁碟Linux虛擬機套件
- 使用命令擴充套件vmdk磁碟空間套件
- 擴充套件VirtualBox虛擬機器磁碟容量套件虛擬機
- VirtualBox下Linux(centos)擴充套件磁碟空間LinuxCentOS套件
- linux建立新分割槽擴充套件磁碟空間Linux套件
- 擴充套件表空間套件
- 表空間自動擴充套件 AUTOALLOCATE 的擴充套件規律套件
- 使用Vagrant 後發現虛擬機器磁碟空間爆滿的血淚填坑記虛擬機
- mysql空間擴充套件 VS PostGISMySql套件
- 擴充套件邏輯卷空間套件
- VM虛擬機器增加磁碟空間的擴容操作(little by little)虛擬機
- Linux擴充套件LVM空間Linux套件LVM
- HP-UX擴充套件swap空間UX套件
- HP-UNIX擴充套件/tmp空間套件
- 虛擬主機支援哪些擴充套件功能套件
- 給VMware下的Linux擴充套件磁碟空間(以CentOS6.5為例)Linux套件CentOS
- lvm 擴充邏輯卷空間(linux的磁碟擴容)LVMLinux
- 查詢表空間是否具備自動擴充套件空間套件
- 磁碟空間滿了之後MySQL會怎樣MySql
- windows系統磁碟擴容/擴充套件Windows套件
- Java 中模擬 C# 的擴充套件方法JavaC#套件
- 為Linux虛擬機器增加磁碟空間Linux虛擬機
- oracle UNDO表空間一個bug——undo表空間快速擴充套件Oracle套件
- Oracle 擴充磁碟空間Oracle
- VMware下LINUX的虛擬機器增加磁碟空間Linux虛擬機
- VMware虛擬機器Ubuntu根目錄磁碟空間(/dev/sda1)擴容虛擬機Ubuntudev
- win10怎麼給c盤增加空間_windows10擴充套件c盤空間的方法Win10Windows套件
- VMware虛擬機器Linux系統根目錄空間擴充操作虛擬機Linux
- VirtualBox如何擴充套件虛擬機器Ubuntu的硬碟容量套件虛擬機Ubuntu硬碟
- 擴充套件c盤空間有什麼辦法套件
- [10] 名稱空間擴充套件和鏈式呼叫套件
- Oracle 10g 物理DataGuard擴充套件表空間Oracle 10g套件
- 表空間無法擴充套件問題處理套件
- 有未分配的磁碟卻不能擴充套件卷怎麼解決 有未分配的磁碟卻不能擴充套件卷解決方法套件