Unable to understand disk layout and where are the free space
Hi
I am unable to understand the disk layout of one of my disk attached to v240. This is newly installed system from jumpstart.
I am unable to see the free space on backup slice 2 and there are 0 to 8 slices listed when I run format and print the disk info, also there is no reference of slice 7.
Please find the output from format
From prtvtoc
Please help!
Thanking in anticipation
Last edited by kumarmani; 09-09-2009 at 05:51 AM..
I everybody!!
How can i use statvfs() to calculate disk usage and free disk space??
Im using this code:
/* Any file on the filesystem in question */
char *filename = "/home/nesto/test/test.cpp";
struct statvfs buf;
if (!statvfs(filename, &buf)) {
... (1 Reply)
Hello,
I would like to free some space to install gcc with is about 50M large, and I have no free space on my system. What can I delete?
Filesystem 1024-blocks Used Free %Used Iused Ifree %Iused Mounted on
/dev/hd4 262144 145436 116708 56% 7981 ... (10 Replies)
I'm getting ready to start a LU from Sol 9 to Solaris 10. I want to ensure that I have enough disk space for future upgrades. What I don't know is what free space Solaris requires.
If I have 10GB of free space in /opt, will Solaris 10 use that for a LU?
Or, do I need to allocate 10GB of space... (5 Replies)
Hi,
I would like to create the new file system(mount point) in our unix server.
before that i would like to know the total free space available in /home directory.
Can you please let me know, how to find free space available for new filesystem?
Be careful with your spelling and... (2 Replies)
Hi, I am having similar issue showing filesystem 100% even after deleting the files. I understood the issue after going through this chain. But i can not restart the processes being oracle database. Is there way like mounting filesytem with specific options would avoid happening this issue.
How... (0 Replies)
Version: Solaris 10 (August 2011) on VM
I am kind of new to Solaris.From VM workstation i allocated 35 GB to this Solaris VM's Disk
The disk was named
c1t0d0
Few basic slices for root(8gb), swap(517mb) and /export/home(494mb) were created by the solaris Installer during the... (18 Replies)
my users has requested more space to a particular volume group, so i do a lsvg
honda:/tmp/ab/ecc # lsvg
rootvg
OP24BCKVG
OP24ORAvg
OP24SYSVG
OP24DATVG
the user wants to know what disks are available to be added to any of the vgs listed above, (not including rootvg)
so i do a lspv... (2 Replies)
Hi,
I need about 500G space in one corporate solaris server.
However, I am not sure which command to use to check this.
There are few volume groups in the server, and I deleted unused, old volume groups to clear some space.
However, now I am not sure how to check the free space itself.
... (2 Replies)
Discussion started by: anaigini45
2 Replies
LEARN ABOUT SUNOS
re-preinstall
re-preinstall(1M) System Administration Commands re-preinstall(1M)NAME
re-preinstall - installs the JumpStart software on a system
SYNOPSIS
cdrom-mnt-pt/Solaris_XX/Tools/Boot/usr/sbin/install.d/re-preinstall [-m Solaris_boot_dir] [-k platform_name] target-slice
DESCRIPTION
re-preinstall installs the JumpStart software (preinstall boot image) on a system, so you can power-on the system and have it automatically
install the Solaris software (perform a JumpStart installation on the system). When you turn on a re-preinstalled system, the system looks
for the JumpStart software on the system's default boot disk. All new SPARC systems have the JumpStart software already preinstalled. The
XX in Solaris_XX is the version number of the Solaris release being used.
You can use the re-preinstall command in several ways. The most common way is to run re-preinstall on a system to install the JumpStart
software on its own default boot disk. This is useful if you want to restore a system to its original factory conditions. (See the first
procedure described in EXAMPLES.)
You can also run re-preinstall on a system to install JumpStart software on any attached disk (non-boot disk). After you install the Jump-
Start software on a disk, you can move the disk to a different system and perform a JumpStart installation on the different system. (See
the second procedure described in EXAMPLES.)
re-preinstall creates a standard file system on the specified target-slice (usually slice 0), and re-preinstall makes sure there is enough
space on the target-slice for the JumpStart software. If sufficient space is not available, re-preinstall fails with the following message:
re-preinstall: target-slice too small xx Megabytes required
You can use the format(1M) command to create sufficient space on the target-slice for the JumpStart software.
OPTIONS
The following options are supported:
-k platform_name Platform name of the system that will use the disk with the JumpStart software. The default is the platform name of
the system running re-preinstall. (Use the uname(1) command (-i option) to determine a system's platform name.)
-m Solaris_boot_dir Absolute path to the Solaris_XX/Tools/Boot subdirectory of a mounted Solaris CD or a Solaris CD copied to disk that
re-preinstall uses to install the JumpStart software. The default is root (/), which is where the Solaris CD is
mounted in single-user mode.
OPERANDS
The following operands are supported:
target-slice Device name of the disk slice where the JumpStart software will be installed (usually slice 0), for example, c0t3d0s0.
EXAMPLES
Example 1: Installing the JumpStart Software on a System's Own Default Boot Disk
The following procedure installs the JumpStart software on a system's own default boot disk:
1. From the ok prompt, boot the system from the Solaris media CD or DVD in single-user mode:
ok boot cdrom -s
2. The following command installs the Jumpstart software on the System default boot disk, c0t0d0s0 on a Solaris 9 system:
example# /usr/sbin/install.d/re-preinstall c0t0d0s1
3. Reboot the slice:
example# reboot disk:b
Example 2: Installing the JumpStart Software on a System's Attached (non-boot) Disk
The following procedure installs the JumpStart software on a system's attached (non-boot) disk:
1. Mount the Solaris CD or DVD if vold(1M) is not running or CD or DVD is not mounted.
2. Use the format(1M) command to determine the target-slice where JumpStart will be installed.
3. Use the uname(1) command (-i option) to determine the platform name of the system that will use the re-preinstalled disk
4. Run re-preinstall with the -m Solaris_boot_dir option if the Solaris CD or DVD is not mounted on /cdrom.
The following command installs the JumpStart software on the system's attached disk for a system with a Sun4u kernel architecture, and
it uses the Solaris CD or DVD mounted with vold(1M) on a Solaris 9 system:
example# /cdrom/cdrom/s1/usr/bin/install.d/re-preinstall -m
/cdrom/cdrom/s1 -k sun4u c0t2d0s0
EXIT STATUS
The following exit values are returned:
0 Successful completion.
1 An error has occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcdrom (Solaris CD, |
| |SPARC Platform Edition) |
+-----------------------------+-----------------------------+
SEE ALSO uname(1), eeprom(1M), format(1M), mount(1M), vold(1M), attributes(5)
Solaris 10 Installation Guide: Basic Installations
SunOS 5.10 9 Apr 2002 re-preinstall(1M)