Sponsored Content
Full Discussion: Mount /app on a new DISK
Operating Systems Solaris Mount /app on a new DISK Post 302740133 by mattpunk on Wednesday 5th of December 2012 03:33:21 PM
Old 12-05-2012
Quote:
Originally Posted by Joseph_TKLee
1) How can i dump the content of /app to new pool (let's call it pool2), with zfs send/receive?Or what else?

2)If i have created a new pool (let's say pool2), i have to mount it with zfs set mount point, correct?

---------- Post updated at 10:34 AM ---------- Previous update was at 10:22 AM ----------

Sorry accidently clicked when I was trying to hit TAB keys. Smilie
Anyway, if /app is on own ZFS, you can do zfs send/receive as below.
Code:
 
# zpool create app_pool new_disk
# zfs snapshot rpool/app@backup
# zfs send rpool/app@backup | zfs recv app_pool/app
# zfs set mountpoint=/app_old rpool/app
# zfs set mountpoint=/app app_pool/app
# zfs destroy  rpool/app@backup
# zfs destroy  app_pool/app@backup
# zfs list

If /app is not in own ZFS, you need to create a new pool and zfs and copy using cp command.

Cheers,
what do u mean with this? my /app is not listed when i type zfs list...is that the sense?

So if my /app not appear with zfs list, do i need to create a new pool, and then?

thank you,

regards,

Matt
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mount disk on other machine

I have two Unix machines on the network and now one of them are running out of disk but i have alot on the other so i like to mount the disk (or a folder) from the one that has disk and mount it on the other that does not. How do i do that? Is it possible i read the "man mount" but didn't really... (5 Replies)
Discussion started by: sajjan2
5 Replies

2. UNIX for Dummies Questions & Answers

Vfstab on spare disk - HOW ? Mount ?

Hi, guys ! Could someone clarify one thing for me: I start machine from disk0, and want to check the /etc/vfstab on disk1. How do i do it ? Tried to write: cd / mount /dev/dsk/c0t1d0s0 /mnt But if I do cd /mnt, it is empty. I expected to see disk1 there ? Or am I wrong ? How do I... (3 Replies)
Discussion started by: DGoubine
3 Replies

3. UNIX for Dummies Questions & Answers

Mount Second Disk

Anyone, I am trying to mount a second hard drive on a sunfire V120 w/solaris 5.8. I took this hard drive from another system because I deleted some files off that system and I want to mount it to another system so I can copy the file back onto the system. I really have no other means of... (2 Replies)
Discussion started by: dummy101
2 Replies

4. Linux

I want to mount my disk forever

Hi guys! I've just mounted my drive in fstab: /dev/sdb /myfolder ext3 defaults 0 0 and rebooted linux. I've got severel failers during booting process and also I can't login as root first time: login: root password:root incorrect login login:user password: user ... (1 Reply)
Discussion started by: Junior Admin
1 Replies

5. OS X (Apple)

Mount a disk elsewhere /Volumes

When a new disk is connected to a Mac/OSX, it automatically mounts on /Volumes. Is it possible to manually mount it elsewhere? For example, on "/raid"? - m66 - (5 Replies)
Discussion started by: makrell66
5 Replies

6. Shell Programming and Scripting

if (disk is mounted) unmount if (disk is unmounted) mount

Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting. basically having worked out how to mount and unmount disks using: disktool -m *device* & disktool -e *device* - and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies

7. Ubuntu

Unable to mount disk

I am running Ubuntu Server, I recently added a new hard drive to the machine When I run fdisk -l I see both drives. The recently added drive is present but it's listed as extended. when I try to mount the drive it says you must specify the file system type. I can't mount this drive, I was... (2 Replies)
Discussion started by: NelsonC
2 Replies

8. Solaris

Mount point expansion /app

Hi Guy's I have mount point called /app with size 10 GB from EMC SAN /dev/dsk/emcpower2g 9.6G 9.8M 9.5G 1% /app I have expanded the size from SAN level to be 20 GB But the mount point still is showing 10 GB Can anyone advice us how to can I expand the new space on /app... (4 Replies)
Discussion started by: roooooot
4 Replies

9. AIX

Discovery/Mount new disk

Hi all, i must add a new disk on a LPAR. I've done all the HMC and VIOS Procedure to create a virtual host with disk and assign it to lpar. I don't remember how i must do on the lpar to see this disk. (i use lvm not veritas). Thanks in advance and sorry for my english. Bye Mario (2 Replies)
Discussion started by: Zio Bill
2 Replies

10. Solaris

Please help me.how to mount another disk

So. My system have 2 solaris10 machine but system disk of machine 1 data crash.I bring the system disk of machine 1 install on machine2 for get data from disk machine1 but I can't mount disk. because msg is bash-3.00# mount /dev/dsk/c1t3d0s0 /mnt mount: /dev/dsk/c1t3d0s0 is not this fstype... (3 Replies)
Discussion started by: infjustice
3 Replies
zdb(1M) 						  System Administration Commands						   zdb(1M)

NAME
zdb - ZFS debugger SYNOPSIS
zdb pool DESCRIPTION
The zdb command is used by support engineers to diagnose failures and gather statistics. Since the ZFS file system is always consistent on disk and is self-repairing, zdb should only be run under the direction by a support engineer. If no arguments are specified, zdb, performs basic consistency checks on the pool and associated datasets, and report any problems detected. Any options supported by this command are internal to Sun and subject to change at any time. EXIT STATUS
The following exit values are returned: 0 The pool is consistent. 1 An error was detected. 2 Invalid command line options were specified. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWzfsu | +-----------------------------+-----------------------------+ |Interface Stability |Unstable | +-----------------------------+-----------------------------+ SEE ALSO
zfs(1M), zpool(1M), attributes(5) SunOS 5.11 31 Oct 2005 zdb(1M)
All times are GMT -4. The time now is 07:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy