Solaris is a derivative of the UNIX operating system. Sometimes the file system space is modified for work or personal reasons. The following small series introduces you to Solaris. Reduce the size of the file system so that you have a simple understanding.
Suppose a scene work, I need to add a separate file system on the server hard disk, but can be allocated on the hard disk has no free space. One alternative solution is to shrink an existing file system and squeeze out some free space.
The hard drive now has three file systems (“/”,“/usr”,“/export/home”):
# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0d0s0 5.8G 3.8G 2.0G 66% /
/dev/dsk/c0d0s3 6G 4G 2.0G 66% /usr< Br>
/dev/dsk/c0d0s7 12G 12M 11G 1% /export/home
where “/export/home” has the largest capacity, but has used the least space, choose to reduce the file system to Extrude free space.
Here are the steps to shrink the file system:
1. Back up file system contents
# tar cvf /home.tar /export/home
2 Unmount File System
# umount /export/home
3. Modify /etc/vfstab, comment out the file system entry
# vi /etc/vfstab
< #> device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c0d0s7 /dev/Rdsk/c0d0s7 /export/home ufs 2 yes -
Previous12Next Total 2 Pages
Fail2ban in Linux is a tool to protect servers from network attacks. Fail2ban can b
in a Linux virtual machine In the Linux operating system, you can build DB2 pureScale on a virtual
Because Linux software installation requires the use of commands, many people encountered a lot of p
RAID itself is an abbreviation for disk arrays. Disk arrays can be used to store a file segment in d
How to set up the program to boot from Debian
How to find the reset user name and password in the Uuntu system
Linux svn error Cant convert string from how to do?
Detailed method of configuring CentOS devices using Quagga software
How to modify the image name in batches under Linux
Ubuntu 13.10 tips for installing the latest Linux kernel
What should I do if the Linux system formats the partition and prompts Could not start /dev?
Linux Leap Second problem program response response slow
Ubuntu can't connect to Windows Phone solution
How can Ubuntu users not use the sudo command?
Linux uses Shellscript to install the NIC driver instance
Linux how to use ControlPersist to speed up SSH connection speed
How to set win10 broadband automatic connection?
Win7 system can't run Photoshop CS3 solution
What should I do if the Win8 program does not respond?
How to write registry information to WinPE
How to share files between Ubuntu and Windows
Which is better for win7 and win8 system operation interface?
"Easy to use" button for Win8.1/RT 8.1
How does Win8 uninstall Windows services? How to uninstall Windows services and steps