Basic question regarding root file system copy to another disk


 
Thread Tools Search this Thread
Operating Systems Solaris Basic question regarding root file system copy to another disk
# 8  
Old 09-04-2014
Here is the output from the virtual environment with the original disk:

Code:
bash-3.00# echo | format
Searching for disks...WARNING: hsimd_ioctl: cmd 410 not implemented


Error: Device c0t0d0: controller name (SUNW,sun4v-virtual)
is invalid.  Device will not be displayed.
done
No disks found!

bash-3.00# cfgadm -v
cfgadm: Configuration administration not supported

When I add the 2gb disk in slice 3, after booting up, i additionally need to mount that slice to /export to be able to see it.

---------- Post updated at 11:54 AM ---------- Previous update was at 11:39 AM ----------

Here is the /etc/vfstab output from the simulator of T1 processor after adding second disk (2.9 gb).

Configuration file edit:
Code:
// disk ... must use virtual_disk directive
    62                          device "memory" 0x1f40000000 +4096M  {
    63                                  virtual_disk;
    64                                  load s0 rom "disk.s10hw2";
    65                                  load s3 shared "Openslrs.img";
    66                          }

once the system boots up, I mounted the using the following command:
Code:
 mount /dev/dsk/c0t0d0s3

And the /etv/vfstab output:
Code:
more /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no      -
/dev/dsk/c0t0d0s3       /dev/rdsk/c0t0d0s3      /export ufs     1       no      -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap    -       /tmp    tmpfs   -       yes     -

df -k output:
Code:
bash-3.00# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c0t0d0s0     491522  237119  205251    54%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                  159944     248  159696     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
/platform/sun4v/lib/libc_psr/libc_psr_hwcap1.so.1
                      491522  237119  205251    54%    /platform/sun4v/lib/libc_psr.so.1
/platform/sun4v/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
                      491522  237119  205251    54%    /platform/sun4v/lib/sparcv9/libc_psr.so.1
fd                         0       0       0     0%    /dev/fd
swap                  159696       0  159696     0%    /tmp
swap                  159696       0  159696     0%    /var/run
/dev/dsk/c0t0d0s3    2934669  764348 2111628    27%    /export

---------- Post updated at 03:46 PM ---------- Previous update was at 11:54 AM ----------

fyi, i was following procedures explained in this thread for creating the disk:
https://community.oracle.com/thread/...art=0&tstart=0
# 9  
Old 09-05-2014
Hi Zam,

The first thing I would say is that ypu already have the device
Code:
/dev/dsk/c0t0d0s3       /dev/rdsk/c0t0d0s3      /export ufs     1       no      -

So it will not be possible to mount an other on the same mount point.

You will have to check the command
Code:
lofiadm

Along with the command
Code:
mount

You will need these commands to enable you to do what you need.

Regards

Dave

Last edited by gull04; 09-05-2014 at 04:46 AM.. Reason: Typo
# 10  
Old 09-05-2014
Hello Dave,
Do you suggest, if I change to "s4" instead in the config file, then it would work?
# 11  
Old 09-08-2014
Hi Zam,

If by "s4" you mean;

Code:
/dev/dsk/c0t0d0s4

Then probably - normally in Solaris if you wanted to boot an alternate path. So you may have to be aware of that as well.

Regards

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

2. UNIX for Dummies Questions & Answers

Preseed command to copy a file to /root directory

I was hoping to edit the command below to copy a file "start.bin" from the install cd to /root on the installation machine. d-i preseed/late_command string \ wget -O /target/root/start.bin 'http://abc.start.bin' \ && in-target chmod 755 /root/start.bin \ My best guess is it would... (0 Replies)
Discussion started by: dmunoz
0 Replies

3. Shell Programming and Scripting

Basic line reading and file merge question

No doubt these questions have been answered many times, but I struggled to find them - sorry. 2 questions: 1. I wish to read in a file one line at a time and do 'stuff' with it, such as: file="tst2" while IFS= read -r line do echo `wget -qO -... (3 Replies)
Discussion started by: Golpette
3 Replies

4. Solaris

Lost Root Password on VXVM Encapsulated Root Disk

Hi All Hope it's okay to post on this sub-forum, couldn't find a better place I've got a 480R running solaris 8 with veritas volume manager managing all filesystems, including an encapsulated root disk (I believe the root disk is encapsulated as one of the root mirror disks has an entry under... (1 Reply)
Discussion started by: sunnyd76
1 Replies

5. Shell Programming and Scripting

Monitoring a file - Basic Bash Question

*This is not homework I am new to UNIX and want to try this Monitoring a file demo* *If this is the wrong forum please move it - im new to the forums* $1 = the file to be monitored $2 = the time for the file to sleep If the file gets changed (using -nt) it will send my username mail saying... (2 Replies)
Discussion started by: Nolan-
2 Replies

6. UNIX for Dummies Questions & Answers

Basic file processing question

I have a csv file with 3 columns. Column 1 is a date "mm/dd/yyyy", column 2 is a dollar amount (e.g. "100.00") & column 3 in a description of where the transaction took place (e.g. "CHECK CRD PURCHASE 10/07 ACME INC USA") so... "10/01/2009","100.00", "CHECK CRD PURCHASE 10/07 ACME INC USA" I... (1 Reply)
Discussion started by: watingo
1 Replies

7. UNIX for Advanced & Expert Users

The best way to skin a cat OR how do I get file system info on the most basic level?

Hi, We have an FTP server (vsftpd) running on Linux, that I've kinda built a "Data Management" system around. I could use some ideas as to the best way to handle/create "triggers" for file notifications. Internal users drag 'n drop files from their Windows boxes to the server via Samba... (2 Replies)
Discussion started by: mph
2 Replies

8. UNIX for Dummies Questions & Answers

how to copy file in cd or floppy disk

i am novice in unix. in me office my boss hav given me a system with Unix OS. i know about windows and Dos. in dos we access cd or floppy through writing following commands a: or d: copy filename.ext to a: i dont even now how to access CD Rom or floppy drive in unix. please tell... (1 Reply)
Discussion started by: fassi
1 Replies

9. AIX

basic question about disk usage

how to i find out the disk usage on a server. say in windows examples its like C:/ D:/ and checking out the disk space. how can i find in Unix. can i just use df -k (3 Replies)
Discussion started by: karthikosu
3 Replies

10. AIX

Need basic disk copy routine for AIX 3

I'm using AIX 3 on IBM PowerStation 520's in a couple of flight simulators where I work. I recently upgraded our disk systems from three 355Mb disks to single 2GB flashdisks. The disk backup utility provided by the manufacturer will only copy 355Mb disks. I need a basic disk copy routine... (0 Replies)
Discussion started by: tekmeister
0 Replies
Login or Register to Ask a Question