Sponsored Content
Full Discussion: extending /var in solaris 10
Operating Systems Solaris extending /var in solaris 10 Post 302206464 by sparcguy on Tuesday 17th of June 2008 10:58:18 PM
Old 06-17-2008
Assuming a newdisk c0t1d0. Create the new 6GB filesystem and name it /var2 on c0t1d0s5

shutdown server
sync;sync;sync;init 0
boot cdrom -s

(cdrom single usermode )
# mount /dev/dsk/c0t0d0s0 /mnt <---- mount your OS disk
# mount /dev/dsk/c0t1d0s5 /a <---- mount /var2

cd /mnt/var
tar cvfp - * | (cd /a;tar xvfp -)

TERM=vt100;export TERM
EDITOR=vi;export EDITOR

cd /mnt
mv var var1
cd /mnt/etc
cp -p vfstab vfstab.`date +%d%m%y`

vi vfstab

'#' off the entry for var if any
add the entry (make sure there are 7 columns)
/dev/dsk/c0t1d0s5 /dev/rdsk/c0t1d0s5 /var ufs 1 no logging

save+quit vi

umount /mnt
umount /a
fsck /dev/dsk/c0t0d0s0
fsck /dev/dsk/c0t1d0s5
stop-a
boot
if server comes up with no problem, that's fine, if any problem, just boot cdrom and revert everything back(mv var1 to var) + cp vfstab.`date +%d%m%y` vfstab

Ater that create your metadevices and mirror for the new /var (from here on I assume you shud know what to do)

If you are new to Sun my advice is don't experiment or do any personal R&D learning/testing on your production server.

Last edited by sparcguy; 06-18-2008 at 12:10 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Sendmail on Solaris: Moving /var/mail

Hello Sendmail Experts, I have sendmail 8.13 running on a Solaris 5.9 box and everything is running great. However, I did not assign enough disk space for /var. As a result, user mailboxes (/var/mail) might give me disk problems in the future. I would like to move /var/mail to another slice,... (2 Replies)
Discussion started by: xnightcrawl
2 Replies

2. Solaris

Usage of /var/tmp/ directory on Solaris 10

Hi All, I have some threaded applications. Design of the application is such that one thread will decode some data and put it in data structure, And main thread will wait for another child threads pick up the decoded data. The data will be large decoded files. Once decoded data is picked by... (1 Reply)
Discussion started by: patilmuragesh
1 Replies

3. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

4. Solaris

Solaris 9, /var/spool/clientmqueue/

Hi, We have some 2-3 Solaris 9 servers with the following issue. For every cron job which has email notifications, it is sending the emails, but it create files at /var/spool/clientmqueue/ which has similar contents. " V6 T1271362260 K1271362260 N1 P30359 MDeferred: Connection refused... (1 Reply)
Discussion started by: uxadmin007
1 Replies

5. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

6. Solaris

Understanding /var/log/syslog.* logfiles solaris 8

hi guys, This is a log from a Solaris 8 server /var/log/syslog.* file. Can any body please confirm whether the meaning of the last two words (Mail accepted) means the mail has been delivered? Because the email id the mail was sent to is invalid. :confused: The log is: Feb 18 08:55:45... (2 Replies)
Discussion started by: raj_55555
2 Replies

7. Solaris

Solaris: Expanding / Extending a mount point / Slice

I'm new to UNIX, sort of inherited this job. I have an HP lefthand SAN, where I added 100GB to one of the volumes. As I understand I also have to expand the volume on the server (solaris 10 ) as well. So, how do I do that? The file system is called: sybdump. the mount point is /export/xxx/sybdump.... (19 Replies)
Discussion started by: Spaseman
19 Replies

8. Shell Programming and Scripting

Csh , how to set var value into new var, in short string concatenation

i try to find way to make string concatenation in csh ( sorry this is what i have ) so i found out i can't do : set string_buff = "" foreach line("`cat $source_dir/$f`") $string_buff = string_buff $line end how can i do string concatenation? (1 Reply)
Discussion started by: umen
1 Replies

9. SuSE

Non root user want to see /var/log/messages - any suse equivalent of Solaris dmesg

Hi New to Suse - mainly used Solaris. In solaris dmesg will also show you contents of messages log file but in Suse Liux it doesnt appear to. I dont have root access to this Suse server, and wondering is there any other tool / utility that allows me to see the messages file contents like on... (1 Reply)
Discussion started by: frustrated1
1 Replies
install-solaris(1M)													       install-solaris(1M)

NAME
install-solaris - install the Solaris operating system SYNOPSIS
install-solaris install-solaris invokes the Solaris Install program. Depending on graphical capability and available memory at the time of invocation, install-solaris invokes either a text-based installer or a graphical installer. The following minimum requirements for physical memory dictate which features are available during installation: For SPARC machines: 128 MB Minimum physical memory for all installation types 128 MB Minimum physical memory required for windowing system 384 MB Minimum physical memory required for graphical-based installation For x86 machines: 256 MB Minimum physical memory for all installation types 256 MB Minimum physical memory required for windowing system 512 MB Minimum physical memory required for graphical-based installation In some cases, even if the minimum physical memory is present, available virtual memory after system startup can limit the number of fea- tures available. install-solaris exists only on the Solaris installation media (CD or DVD) and should be invoked only from there. Refer to the for more details. install-solaris allows installation of the operating system onto any standalone system. install-solaris loads the software available on the installation media. Refer to the for disk space requirements. Refer to the for more information on the various menus and selections. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcdrom (Solaris instal- | | |lation media) | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ pkginfo(1), install(1M), pkgadd(1M), attributes(5) It is advisable to exit install-solaris by means of the exit options in the install-solaris menus. 23 Sep 2005 install-solaris(1M)
All times are GMT -4. The time now is 08:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy