Sponsored Content
Operating Systems Solaris Extending the / file system (SVM) Post 302920543 by MR.bean on Friday 10th of October 2014 02:02:28 AM
Old 10-10-2014
Quote:
Originally Posted by MadeInGermany
I think for only expanding the existing / (without freeing the s0 slices) you can just add the two new slices:
Code:
metattach d10 c0t0d0s7
metattach d20 c0t1d0s7
metastat
growfs /dev/md/rdsk/d0

All online (growfs should be run during low traffic hours).
Because it is appended to the existing slices, you do not need to install another boot block.
Thanks. I wish that method worked, but executing your first step metattach d10 c0t0d0s7 gave me an error saying cannot expand root file system.

I ended up installing virtualbox and tried my method I posted, and with a bit of adjustment (installgrub instead of installboot, update boot archive), it worked out. Below in red is the adjustment I've made.



Code:
metainit d71 1 1 c0t0d0s7
metainit d72 1 1 c0t1d0s7
metainit d7 -m d71
metattach d7 d72
newfs /dev/md/rdsk/d7

Mount and copy contents

Code:
mount /dev/md/dsk/d7 /mnt
ufsdump -0uf - /dev/md/rdsk/d0 | (cd /mnt/ && ufsrestore -xf - )
umount /mnt


Install Grub, update boot archive, etc

Code:
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t0d0s7
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t1d0s7
 
bootadm update-archive -f -R /mnt
 
 
mount /dev/md/dsk/d7 /mnt
 
# modify /mnt/boot/grub/menu.lst and change it to the new root volume
title active
root (hd0,0,a) <- change a (s0) to h (s7)
 
# modify /mnt/boot/solaris/bootenv.rc and change it to the new root volume
# before bootpath=/pci@7b,0/pci1022,7458@11/pci1000,3060@2/sd@0,0:a
# after bootpath=/pci@7b,0/pci1022,7458@11/pci1000,3060@2/sd@0,0:h
 
metaroot -R /mnt /dev/md/rdsk/d7
umount /mnt

 

10 More Discussions You Might Find Interesting

1. Programming

Help in extending netfilter

Hi everybody, I have to write a module for matching in netfilter , extending the netfilter but I'm facing some problems can somebody guide me in that. I know that I need to write matching module working in kernel space and a program in userspace. I went through the HOWTO on netfilter-hacking but... (0 Replies)
Discussion started by: Trusted Penguin
0 Replies

2. Programming

extending netfilter...plz help

Hello friends i'm trying to extend iptables to include a target by which we can change the packet type field of a packet. For this i created a kernel module and a userspace extension. Now i face the problem that when i try to invoke iptable with the target i created i get an error message saying... (1 Reply)
Discussion started by: Rakesh Ranjan
1 Replies

3. UNIX for Dummies Questions & Answers

how to mount a file system of a remote machine to local file system

Hi friends, In my case, there are serveral PCs running Linux in a LAN. I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory. I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies

4. Solaris

extending /var in solaris 10

Hi all, i need to extend /var file system on my solaris 10 box /var is part of rootdg current size 2GB Required size 6GB layout mirror veritas 4.1 solaris 5.10 pls let me know the steps and the procedure to follow. regards Ajay S (2 Replies)
Discussion started by: ajays
2 Replies

5. AIX

Extending filesystems

Hi to all i want to increase the /usr size. but, it is mirrored on hdisk0 and hdisk1. i know that chfs will work, but i am not confident about mirroring. can anyone tell me the procedure. thanks (2 Replies)
Discussion started by: honeym210
2 Replies

6. Solaris

Growing a file system-SVM

Hi gurus Im a newbie in solaris..I need to extend file system space in solaris 10 which is using SVM..I have a file system /pin02 which is 93% full n needs to be extended..only 3.6 gb avail space left..the file system is not mirrored...normal ufs file system only..can u please tel me t... (6 Replies)
Discussion started by: madanmeer
6 Replies

7. Solaris

How to extend an existing file system using SVM in solaris 10

Hi All I want to extend this file system to 120Gb: df -h /xyz Filesystem size used avail capacity Mounted on /dev/md/dsk/d80 98G 35G 62G 37% /xyzand the NetApp admin is going to give me an LUN with 22Gb. This file system is mounted on: metastat d80... (1 Reply)
Discussion started by: fretagi
1 Replies

8. Red Hat

LVM- extending PV

Hi All, I have one VG on single PV /dev/sda3 with two LV Physically after /dev/sda3 i have 40G unallocated I want to extend /dev/sda3 + 40G and extend its VG, then extend last LV in VG to take new free space What is correct procedure? // I cannot create second PV after /dev/sda3 because of... (5 Replies)
Discussion started by: kactech
5 Replies

9. HP-UX

Extending file system in HP-UX

Hi Guys, Hope everyone is doing great. We've few servers on HP-UX. I'm not sure of extending file systems in HP-UX. Please help me. It could be helpful If you provide the commmand basing on the details below. Thanks in Advance. # hostname ******* # date Sun Sep 7 14:39:59 EDT 2014 #... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

10. Red Hat

Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. # parted -s /dev/sda print free Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 38.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos ... (1 Reply)
Discussion started by: Mukul Sharma
1 Replies
mdlogd(1M)						  System Administration Commands						mdlogd(1M)

NAME
mdlogd - Solaris Volume Manager daemon SYNOPSIS
mdlogd DESCRIPTION
mdlogd implements a simple daemon that watches the system console looking for messages written by the Solaris Volume Manger. When a Solaris Volume Manager message is detected, mdlogd sends a generic SNMP trap. To enable traps, you must configure mdlogd into the SNMP framework. See Solaris Volume Manager Administration Guide. USAGE
mdlogd implements the following SNMP MIB: SOLARIS-VOLUME-MGR-MIB DEFINITIONS ::= BEGIN IMPORTS enterprises FROM RFC1155-SMI DisplayString FROM SNMPv2-TC; -- Sun Private MIB for Solaris Volume Manager sun OBJECT IDENTIFIER ::= { enterprises 42 } sunSVM OBJECT IDENTIFIER ::= { sun 104 } -- this is actually just the string from /dev/log that -- matches the md: regular expressions. -- This is an interim SNMP trap generator to provide -- information until a more complete version is available. -- this definition is a formalization of the old -- Solaris DiskSuite mdlogd trap mib. svmOldTrapString OBJECT-TYPE SYNTAX DisplayString (SIZE (0..255)) ACCESS read-only STATUS mandatory DESCRIPTION "This is the matched string that was obtained from /dev/log." ::= { sunSVM 1 } -- SVM Compatibility ( error trap ) svmNotice TrapTRAP-TYPE ENTERPRISE sunSVM VARIABLES { svmOldTrapString } DESCRIPTION "SVM error log trap for NOTICE. This matches 'NOTICE: md:'" ::= 1 svmWarningTrap TRAP-TYPE ENTERPRISE sunSVM VARIABLES { svmOldTrapString } DESCRIPTION "SVM error log trap for WARNING.. This matches 'WARNING: md:'" ::= 2 svmPanicTrap TRAP-TYPE ENTERPRISE sunSVM VARIABLES { svmOldTrapString } DESCRIPTION "SVM error log traps for PANIC.. This matches 'PANIC: md:'" ::= 3 END ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWlvma, SUNWlvmr | +-----------------------------+-----------------------------+ |Interface Stability |Obsolete | +-----------------------------+-----------------------------+ SEE ALSO
snmpdx(1M), attributes(5) Solaris Volume Manager Administration Guide SunOS 5.10 3 Jun 2004 mdlogd(1M)
All times are GMT -4. The time now is 04:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy