Sponsored Content
Operating Systems Solaris Solaris 10 virtual disk (ramdisk) create for sun4v (T-2000 simulator) architecture Post 302914862 by Zam_1234 on Thursday 28th of August 2014 12:20:59 PM
Old 08-28-2014
Hello Dave,
when I tried doing ramdiskadm, I get error message of Resource temporarily unavailable
I have generally followed this procedure to create a new ramdisk (Cloned from the sun4u architecture):


Create backup of the root folder "/" (sun4u):
Code:
# ufsdump 0cvf /dev/rmt/0 /

This backup is almost 8GB.

Created an empty file of 8GB size:
Code:
# dd if=/dev/zero of=new.img bs =1024 count=8388608

Used the new.img as a block device
Code:
# lofiadm -a new.img /dev/lofi/1

Created a UFS on top of the new.img file
Code:
# newfs /dev/lofi/1

Restored the initial filesystem using ufsrestore
Code:
# ufsrestore rvf /dev/rmt/0

Made the ram disk image bootable
Code:
# /usr/sbin/installboot /mntdir/usr/platform/sun4v/lib/fs/ufs/bootblk /dev/rlofi/1

Unmounted the image
Code:
# cd /
# umount /mntdir

Modified 1up.conf file in legion to the following:
Code:
  device "memory" 0x1f80000000 +8192M {  // Increase the memory size for the new disk
  virtual_disk;
  load s0 shared "disk1.big";  // replace the disk with the new one you created and use shared instead of rom
  }

Booted on Legion (sun4v architecture) using boot -v command.

Problem is, it starts loading smf services and after loading all of them (89/89) it gets error message that fmd service error and a bunch of error codes with it. eventually gets into maintenance mode.

I need to run Solaris Resource Pool Management (pooladm, poolcfg etc) which uses SUNWpool package. The original ramdisk is too small and does not have this package installed. Even when I tried installing the package on the original ramdisk by putting SUNWpool package at the /var/spool/pkg, it installed successfully but unable to turn on the service daemon (poold) by saying
Code:
pooladm: couldn't open pools state file: No such file or directory


I am not completely sure what am I doing wrong in the procedure. Smilie

Last edited by rbatte1; 08-28-2014 at 01:44 PM.. Reason: Add CODE & ICODE tags and set to confused face rather than textual sad face
 

10 More Discussions You Might Find Interesting

1. Solaris

Clone disk for Sun Blade 2000

Hai ......... my name Rio, I want to clone my harddisk at Sun Balade 2000 server with Solaris 8 OS, my question is : a. what kind method for making backup or clonning disk ? b. what method more easier , quick but still reliable ? c. how to proceed it ? Thanks (1 Reply)
Discussion started by: rioria
1 Replies

2. Shell Programming and Scripting

how to create a ramdisk

Hi all, I wanted to make a ramdisk for a opensolaris distro. I have very little idea of how to create it? can anyone pls help me out? Is there any tutorial on creating it on the net??? Also can i make changes to the actual os itself by changing the scripts involved in ramdisk then use it to... (1 Reply)
Discussion started by: wrapster
1 Replies

3. Solaris

How to create new partitions in solaris,from the raw disk?

Hi all, I would like to know how to make new partitions.... I currently have allocated 60G for various slices (I have totally used 4 out of 7 available slices... I am running only solaris on my box. My plan is to have entire disk dedicated to solaris and run other OS from within... (19 Replies)
Discussion started by: wrapster
19 Replies

4. Shell Programming and Scripting

Virtual disk to create and partition

I have to do this exercise: Create a virtual disk Partition this disk Create File system Mount File System I'm using Minix (which runs by Qemu as guest machine) on Linux (Host) Is there anybody who knows how to solve first three point? :confused: Thanks (4 Replies)
Discussion started by: Guccio
4 Replies

5. Solaris

Solaris sun4v - how do you determine physical RAM?

I have a Sun T5120, and I want to programmatically determine how much RAM it has. # uname -a SunOS myhost 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5120 The box has 64Gb; I tried prtdiag and prtconf, but they give me bogus info prtconf gives me: # prtconf |grep -i... (12 Replies)
Discussion started by: thomn8r
12 Replies

6. Solaris

How to create mirror disk in solaris machine?

hi, I'm newbie in Solaris 10. can someone explain me the steps of how to create mirror disk in Solaris machine. thanks in advance (5 Replies)
Discussion started by: Wong_Cilacap
5 Replies

7. Solaris

create Virtual NIC in Solaris 10

Hi All, does any body know how to create Virtual NIC in Solaris 10 if any one have good article or reference kindly provide me i try to Google but i didn't find good one (7 Replies)
Discussion started by: jamisux
7 Replies

8. Solaris

How to create virtual disks in solaris

Hi, I have installed oracle 10g release 2 on solaris 10 Zone. I want to configure ASM in local Zone using virtual disks in place of real disks. I have configured ASM using virtual disks in place real disk in Solaris 10 Global zone. How i can do in local Zone Kindly guid me with proper... (1 Reply)
Discussion started by: malikshahid85
1 Replies

9. Solaris

Create a boot disk mirror on Solaris 10 x86

I’m setting up a boot disk mirror on Solaris 10 x86. I’m used to doing it on SPARC, where you can copy the partition table using fmthard. My x86 boot disk has 2 primary partitions, a Solaris one and a diagnostic one. Is there a way to copy those 2 primary partitions to the second disk without... (6 Replies)
Discussion started by: TKD
6 Replies

10. Solaris

Change hostID of Solaris 10 virtual/guest machine installed by Virtual Box 4.1.12 on Windows-XP host

Trying to set or modify the randomly set hostID of a Solaris 10 virtual/guest machine that I installed on a Windows-XP host machine (using Virtual Box 4.1.12). I was able to set/modify the hostname of the Solaris 10 virtual/guest machine during installation as well as via the Virtual Box... (4 Replies)
Discussion started by: Matt_VB
4 Replies
All times are GMT -4. The time now is 12:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy