Increase root partition on ufs filesystem

Hello
we have a virtual solaris vm with ufs the disk has become to small..
we have increased the vmfs but we are having problems increasing the filesystem as format only sees the old size.. fdisk does not seem to offer the possibility to expand the partition to its maximum size.. is it possible to change the label of a solaris partition so that it takes into account all the space that is available for it?
why fdisk does not see there is unallocated space.. i could create a second partition and mount it to other directory perhaps.
thank you.

Hi.
Solaris on X86 system placed on special general dos partittion.
fdisk - used for first level.  On this level you can create one ( and only one) partition with type Solaris
          and can create some additional partitions for other OS.
format - used for second level.  It create additional  partittions on solaris's partitions on first level.  This label also store original size of disk.
So you need:
1.  Increase  Solaris partition on first level, using fdisk
2. Check that format detect new size of disk and increase/create new.
In case mistake on any steps - you lost data.
This problem correspond only for root fs and UFS.
On my choice -  create addtional virtual disk and just add it  to system.
For new disk use gpt (efi) type of label.
Regards.

Similar Messages

  • Increase root filesystem in ldom

    Hi
    I have a ldom   having  a  flat file  /ldoms/ldom1-data  in the backend used as a virtual disk c0d2s0  for data  In the ldom .Now this virtual disk  is running out of space  in the ldom  How can I increase the size of this filesystem in the ldom or my only option is to create another file of bigger size in the primary domian ,export it to the ldom as a new Virtual disk ,parttion it in the  ldom  and  copy the data from the old disk to the new
    Appreciate any inputs
    TIA

    Hello
    I don't think you can do with sol10u6 without any patch,  assuming that you don't have SVM just and slice
    Solaris Does Not Automatically Handle an Increase in LUN Size (Doc ID 1382180.1)
    How to expand a UFS Lun in Solaris 10 (Doc ID 1451858.1)
    And the previous doc I gave you has the example for ufs too but with sol11, so mixing a bit all this docs I think you will be able to do, but first don't forget to do a backup just in case something goes wrong.
    How to Increase the Size of a Vdisk and Filesystem on a LDom Guest Domain (Doc ID 1549604.1)
    —snip —
    Procedure to increase size of a UFS filesystem based on SMI  label in a guest domain running Solaris 11
    Another way, is add a new LUN and do a mirror to a bigger LUN then remove the small LUN. (for this you need SVM or ZFS in the guest)
    Regards
    Eze

  • Filesystem check failed, root partition not found

    Hi all,
    Since yesterday I receive the following error message when booting into Arch:
    :: Mounting root filesystem read-only [ OK ]
    :: Checking filesystems [BUSY]
    /dev/sda4: no such file or directory
    *************** FILESYSTEM CHECK FAILED *******************
    * Please repair manually and reboot ...
    The device /dev/sda4 is my root partition, which is - after entering the root
    password - mounted as /dev/root. Checking the partition with 'reiserfsck
    /dev/sda4' does not give any error or warning messages. I can also
    successfully remount and access it with 'mount -n -o remount,rw /'.
    'ls -l /dev/sda*' gives me the following:
    brw-rw---- 1 root disk 8, 0 Apr 28 16:32 /dev/sda
    brw-rw---- 1 root disk 8, 1 Apr 28 16:32 /dev/sda1
    brw-rw---- 1 root disk 8, 2 Apr 28 16:32 /dev/sda2
    brw-rw---- 1 root disk 8, 3 Apr 28 16:32 /dev/sda3
    brw-rw---- 1 root disk 8, 4 Apr 28 16:32 /dev/sda4
    So the device itself seems to be there. Rebooting doesn't help, neither does
    using older, working kernel versions.
    I also checked other topics on similar subjects, but I couldn't find any solution.

    Hmm, it doesn't work even with the UUID. But the error looks similar:
    Failed to open the device UUID=672f076e-131c-4220-81ba-b30639ef9285: No such file or directory
    But when I call rc.sysinit manually directly after entering the root password,
    everything works fine. It does work with sda as well as uuid notation.
    I manually added some code before the output of the '*** FILESYSTEM CHECK FAILED ***' message:
    ls -l /dev/sda*
    sleep 1
    ls -l /dev/sda*
    The result was:
    ls: cannot access /dev/sda*: No such file or directory
    brw-rw---- 1 root disk 8, 0 Apr 30 09:12 /dev/sda
    brw-rw---- 1 root disk 8, 1 Apr 30 09:12 /dev/sda1
    brw-rw---- 1 root disk 8, 2 Apr 30 09:12 /dev/sda2
    brw-rw---- 1 root disk 8, 3 Apr 30 09:12 /dev/sda3
    brw-rw---- 1 root disk 8, 4 Apr 30 09:12 /dev/sda4
    So it seems that the devices are really not yet created. Is it a udev problem?
    I am not aware of changing anything udev specific, maybe an updated version?

  • [LVM] Shrinking /home to increase /root failed [solved]

    Hi there,
    Before doing anything wrong and risking data loss, I will better ask for your advice. I used the following commands to shrink my /home partition in order to increase /root:
    # vgchange -a y
    # e2fsck -f /dev/VolGroup00/Home
    # resize2fs /dev/VolGroup00/Home 205G
    # lvreduce -L 206G VolGroup00/Home
    # lvextend -l +100%FREE VolGroup00/Arch
    # e2fsck -f /dev/VolGroup00/Arch
    # resize2fs /dev/VolGroup00/Arch
    The initial size of the logical volume Home was 208GB according to lvdisplay. The volume Arch corresponds to my /root.
    All commands completed successfully. However, on boot I get the following error:
    Home: The filesystem size (according to the superblock) is 54525952 blocks
    The physical size of the device is 54001664 blocks
    Either the superblock or the partition table is likely to be corrupt!
    Home: UNEXPECTED INCONSISTENCY: RUN fsck MANUALLY
    I booted from a live disk and tried to run fsck manually. But it aborts with the same error.
    What am I advised to do now?
    Thanks!
    Last edited by orschiro (2014-05-26 06:55:30)

    Filesystems don't like it when parts of their storage go missing. You have to get the missing parts back.
    Find your LVM backups / archives ( /etc/lvm/archive ), see if there is a file that says "created *before* lvreduce -L 206G VolGroup00/Home". That file would tell you where the /home partition was allocated before you shrank it.
    You can use vgcfgrestore to get back to that state of things. At that point your /home should be accessible again - or at least fsckable. (But of course the /root is broke then - can't have both).
    1) Before doing anything else, make a backup of your /root files if you need one
    2) Free some space so you can use snapshot before you fsck. If fsck messes up you really are in trouble.
    The real interesting question is what went wrong with the shrink in the first place. Your commands look like they should have worked. Most likely the resize2fs failed somehow? since it still believes itself to be 208GiB large.
    Last edited by frostschutz (2014-05-22 15:38:19)

  • [solved] Encrypted root partition decrypts, not recognised on boot

    Hello everyone
    As per the wiki entry on system encryption with LUKS, I have an unencrypted boot partition (sda1) and a second encrypted partition (sda2) containing everything else, including root. This is on an eeepc 901 (I'm posting here, though, as I understand this as a mounting issue rather than laptop/netbook specific).
    I have just done a full system upgrade, including moving to kernel 2.6.34-ARCH. Now, although I am prompted for the passphrase, which is accepted. I subsequently see the following:
    ::Checking Filesystems [BUSY] fsck.ext2: No such file or directory while trying to open /dev/mapper/root
    /dev/mapper/root:
    The superblock could not be read or does not describe a correct ext2 filesystem.
    If the device is valid and it really does contain an ext2 filesystem (and not swap or
    ufs or something else), then the superblock is corrupt, and you might try running
    e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
    Runnig ecfsck -b 8193 /dev/mapper/root simply results in that error message being repeated. Googling and searching the forum only really found this thread to be anything similar. As per the suggestions there, the encrypted partition is last in /etc/fstab and the <options> value is populated:
    /dev/sda1 /boot ext2 defaults 0 1
    /dev/sdb1 /mnt/sdb1 vfat rw #This is an sdhc card permanently inserted
    /dev/mapper/root / ext2 defaults 0 1
    /etc/crypttab is entirely commented out, as it advises the root partition needs to be defined in the initramfs.
    I can decrypt and open the partition using systemrescuecd, and fsck confirms the partition is clean. Equally, I can access the decrypted partition from the maintenance shell I get dumped into.
    I'd be very grateful for any suggestions.
    Last edited by Sagittar (2010-07-17 03:40:49)

    Thanks for responding. I can confirm /dev/sda2 is ext2: after mounting both partitions with the -r flag, df -T reports ext2 file systems. (The theory is that ext2 helps prolong the life of the SSD in the eee pc. Not that that's entirely relevant here.)
    I can't see a way of booting off sysresccd with root=/dev/sda2 without decrypting /dev/sda2 first. I am able to do that from Grub. Is there something I'm missing?
    However, when I pay more attention to what happens on sysresccd when I decrypt the partition, I get the following:
    % cryptsetup luksOpen /dev/sda2 root
    Enter passphrase for /dev/sda2:
    device-mapper: remove ioctl failed: Device or resource busy
    Key slot 0 unlocked.
    So, although I can then mount /dev/sda2 (or, to be precise, /dev/mapper/root) as normal, my guess is that the third line is a big clue as to why my normal boot process fails. I am pursuing that now.

  • [CLOSED + MOVED]Activate lvm2 on ext3 root partition

    Hello guys,
    I want to move to lvm2 on my arch installation, I haven't used any lvm before. So here's what I did so far:
    1. shrink root partition using gparted to 7 gigabytes
    2. created an lvm partition with size 8 gigabytes
    3. migrated all files from the root partition to the lvm partition (in single user mode: # rsync -axSX / /newpartition)
    4. added lvm2 hook before the filesystems hook in /etc/mkinitcpio.conf according to http://wiki.archlinux.org/index.php/Con … #Using_lvm
    5. regenerated the initramfs image using # sudo mkinitcpio -g /boot/kernel26.img
    5a. added a grub entry with root=/dev/vg/root (I have no idea what the difference is between that and /dev/mapper/vg-root)
    5b. edited /etc/fstab to use /dev/vg/root (again, no idea if /dev/mapper/vg-root would have been more appropriate) as root mountpoint "/"
    6. Rebooted
    7. Unfortunately, I cannot copy-paste the output, but upon reboot, the initramfs loads fine, it seems to recognize to lvm2 volume, but then says "trying to open console - not found" or something like that and then kernel panics on me.
    Any ideas?
    thanks!
    CLOSED+MOVED:Moving this question elsewhere, as this topic seems too advanced for this subgroup.
    Last edited by awayand (2010-01-13 12:44:11)

    I used reiserfs for many years, many partitions, many distros and had no problems. Every now and then I'd use ext3 but there were a few issues. I got a new laptop in January and decided to take the plunge: shrunk vista, small ext2 /boot and the rest set up as an encrypted partition with LVM2, all logical volumes set up as ext4 (except swap!). I've been very impressed with ext4 stability.
    Oh, and step (5) edit fstab to reflect the new file systems, make sure /etc/mtab doesn't exist.

  • Copied my Arch root partition to a new one but I can't boot [SOLVED]

    I booted to my arch live cd and copied my Arch / partition (/dev/sda1) to an empty partition (/dev/sda9) via a cp -a command.  The new partition should now contains an exact copy of my old root partition.  I also modified the /etc/fstab in the new partition to reflect the new block device for the root filesystem.  I also added a line to my menu.lst to boot it.  I didn't do something right because I get a kernel panic when grub boots into the new partition.
    menu.lst entry:
    title Arch Testing
    root (hd0,8)
    kernel /boot/vmlinuz26 root=/dev/sda9 ro quiet vga=773 acpi_enforce_resources=lax vga=773
    initrd /boot/kernel26.img
    Ideas?
    EDIT: Just read this wiki page
    The fix as root:
    mount /dev/sda9 /mnt
    cd /mnt/dev
    rm console ; mknod -m 600 console c 5 1
    rm null ; mknod -m 666 null c 1 3
    rm zero ; mknod -m 666 zero c 1 5
    mount -o bind /dev /mnt/dev
    mount -t proc none /mnt/proc
    mount -o bind /sys /mnt/sys
    cd /
    chroot /mnt /bin/bash
    mkinitcpio -p kernel26
    Last edited by graysky (2009-12-05 15:14:01)

    Since you can't delete Apple IDs and having multiple Apple IDs can cause confusion, what you may want to do is rename your existing Apple ID to the new email (desired Apple ID).  That would in effect do what you want, get rid of the old and give you the new.
    See "Apple ID: Changing your Apple ID"
    ivan

  • Can't get lvm/luks to boot - cannot find root partition

    Hi,
    I'm trying to get a dm-crypt on top of lvm to boot but without success so far. I followed http://wiki.archlinux.org/index.php/Sys … r_dm-crypt and http://wiki.archlinux.org/index.php/Ins … AID_or_LVM, everything works fine (I can mount the partition) but when I try to boot from it, it cannot find the crypted partition and fails.
    USELVM="yes"
    HOOKS="base udev usb usbinput lvm2 encrypt filesystems"
    root=/dev/mapper/sda2 cryptdevice=/dev/sda2:root2-lvol0 ro
    jan@jan ~/src/xf86-video-ati $ ll /dev/mapper/
    insgesamt 0
    crw-rw---- 1 root root 10, 62 21. Feb 2008 control
    brw------- 1 root disk 254, 0 21. Feb 2008 root
    brw------- 1 root disk 254, 1 21. Feb 2008 root2-lvol0
    brw------- 1 root disk 254, 2 21. Feb 2008 sda2
    /dev/mapper/root is my current encrypted / without lvm
    The boot process successfully identifies the lvm /dev/mapper/root2-lvol0 and continues with hook 'encrypt' but doesn't ask me for a passphrase but goes on to hook 'filesystems' and fails then because it can't mount the correct root-partition obviously.
    There's only /dev/mapper/root2-lvol0 and /dev/mapper/control when I'm in the rescue sh from initrd.
    Anyone got that combination to work?
    - Jan

    Reboot, at the sound of the chime (not before) depress the option key, when the startup manager appears choose OSX.

  • [SOLVED]root partition read only after update systemd

    After update systemd today, the systemd-remount-fs.service fail to start. Root filesystem is read only I tried add rw to fstab mount option, but the root parition is still  read only. I noticed that util-linux package are installed and udev package is dropped , Does it related to my problem?
    Please advice me.
    Sorry for my bad English.
    Update
    After downgard util-linux package, the system work again 
    Update 2
    UUID in grub.conf and fstab  are inconsistent, Thanks to  tomegun for point out this problem.
    Last edited by aduser (2012-06-08 04:05:59)

    output of systemctl status systemd-remount-fs.service
    systemd-remount-fs.service - Remount Root and Kernel File Systems
    Loaded: loaded (/usr/lib/systemd/system/systemd-remount-fs.service; static)
    Active: failed (Result: exit-code) since Sun, 03 Jun 2012 01:17:42 +0800; 5min ago
    Process: 132 ExecStart=/usr/lib/systemd/systemd-remount-fs (code=exited, status=1/FAILURE)
    CGroup: name=systemd:/system/systemd-remount-fs.service
    fstab
    UUID=55326b3a-eec9-498e-8e20-0a7ddd8daf9a / btrfs rw,compress=lzo,space_cache,autodefrag 0 1
    UUID=54c17991-716b-496e-a89b-4e978f2d92a4 /boot ext2 defaults 0 1
    systemctl
    UNIT LOAD ACTIVE SUB JOB DESCRIPTION
    proc-sys...misc.automount loaded active waiting Arbitrary Executable File Formats File System Automount Point
    sys-devi...d-card1.device loaded active plugged RV630 audio device [Radeon HD 2600 Series]
    sys-devi...d-card0.device loaded active plugged 82801I (ICH9 Family) HD Audio Controller
    sys-devi...et-eth0.device loaded active plugged RTL8111/8168B PCI Express Gigabit Ethernet controller
    sys-devi...dd-sdd1.device loaded active plugged ST3120213A
    sys-devi...dd-sdd2.device loaded active plugged ST3120213A
    sys-devi...ock-sdd.device loaded active plugged ST3120213A
    sys-devi...da-sda1.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...da-sda2.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...da-sda3.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...da-sda5.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...ock-sda.device loaded active plugged WDC_WD6400AAKS-22A7B0
    sys-devi...db-sdb1.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...db-sdb2.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...db-sdb3.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...db-sdb4.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...db-sdb5.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...ock-sdb.device loaded active plugged WDC_WD1002FAEX-00Z3A0
    sys-devi...dc-sdc1.device loaded active plugged ST980811AS
    sys-devi...dc-sdc2.device loaded active plugged ST980811AS
    sys-devi...ock-sdc.device loaded active plugged ST980811AS
    sys-devi...y-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1
    sys-devi...y-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2
    sys-devi...y-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3
    sys-devi...y-ttyS0.device loaded active plugged /sys/devices/pnp0/00:07/tty/ttyS0
    -.mount loaded active mounted /
    boot.mount loaded active mounted /boot
    dev-hugepages.mount loaded active mounted Huge Pages File System
    dev-mqueue.mount loaded active mounted POSIX Message Queue File System
    sys-kernel-debug.mount loaded active mounted Debug File System
    tmp.mount loaded active mounted /tmp
    xs-big.mount loaded active mounted /xs/big
    xs-dev-\...pace\x5d.mount loaded active mounted /xs/dev/[workspace]
    xs-dev.mount loaded active mounted /xs/dev
    xs-dl.mount loaded active mounted /xs/dl
    xs-file.mount loaded active mounted /xs/file
    systemd-...d-console.path loaded active waiting Dispatch Password Requests to Console Directory Watch
    systemd-...word-wall.path loaded active waiting Forward Password Requests to Wall Directory Watch
    console-...daemon.service loaded active running Console Manager
    console-...-start.service loaded failed failed Console System Startup Logging
    dbus.service loaded active running D-Bus System Message Bus
    [email protected] loaded active running dhcpcd on eth0
    gdm.service loaded active running Gnome Display Manager
    [email protected] loaded active running Getty on tty1
    systemd-journald.service loaded active running Journal Service
    systemd-logind.service loaded active running Login Service
    systemd-...unt-fs.service loaded failed failed Remount Root and Kernel File Systems
    systemd-sysctl.service loaded active exited Apply Kernel Variables
    systemd-...-setup.service loaded active exited Recreate Volatile Files and Directories
    systemd-...rigger.service loaded active exited udev Coldplug all Devices
    systemd-udev.service loaded active running udev Kernel Device Manager
    systemd-...nlevel.service loaded failed failed Update UTMP about System Runlevel Changes
    systemd-...ssions.service loaded active exited Permit User Sessions
    systemd-...-setup.service loaded active exited Setup Virtual Console
    dbus.socket loaded active running D-Bus System Message Bus Socket
    systemd-initctl.socket loaded active listening /dev/initctl Compatibility Named Pipe
    systemd-journald.socket loaded active running Journal Socket
    systemd-shutdownd.socket loaded active listening Delayed Shutdown Socket
    systemd-...control.socket loaded active listening udev Control Socket
    systemd-...-kernel.socket loaded active running udev Kernel Socket
    basic.target loaded active active Basic System
    cryptsetup.target loaded active active Encrypted Volumes
    getty.target loaded active active Login Prompts
    graphical.target loaded active active Graphical Interface
    local-fs-pre.target loaded active active Local File Systems (Pre)
    local-fs.target loaded active active Local File Systems
    multi-user.target loaded active active Multi-User
    network.target loaded active active Network
    remote-fs.target loaded active active Remote File Systems
    sockets.target loaded active active Sockets
    sound.target loaded active active Sound Card
    swap.target loaded active active Swap
    sysinit.target loaded active active System Initialization
    systemd-...es-clean.timer loaded active waiting Daily Cleanup of Temporary Directories
    LOAD = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB = The low-level unit activation state, values depend on unit type.
    JOB = Pending job for the unit.
    74 units listed. Pass --all to see inactive units, too.
    grub2 conf
    menuentry 'Broken' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-ck kernel-true-852c733e-be0d-4375-8668-d7ae049295a9' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 54c17991-716b-496e-a89b-4e978f2d92a4
    else
    search --no-floppy --fs-uuid --set=root 54c17991-716b-496e-a89b-4e978f2d92a4
    fi
    echo 'Loading Linux ck kernel ...'
    linux /vmlinuz-linux-ck root=UUID=852c733e-be0d-4375-8668-d7ae049295a9 ro rootflags=subvol=broken quiet add_efi_memmap elevator=bfq
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-ck.img
    The update packages
    core/btrfs-progs 0.19.20120328-2 2 -> 3
    core/device-mapper 2.02.95-4 4 -> 6
    core/cryptsetup 1.4.2-1 1 -> 2
    core/gpm 1.20.6-7 7 -> 8
    core/lvm2 2.02.95-4 4 -> 6
    extra/libglapi 8.0.3-1 1 -> 2
    extra/libgl 8.0.3-1 1 -> 2
    extra/ati-dri 8.0.3-1 1 -> 2
    extra/bluez 4.99-2 2 -> 6
    extra/consolekit 0.4.6-3 3 -> 4
    extra/gvfs 1.12.3-1 1 -> 2
    extra/gvfs-obexftp 1.12.3-1 1 -> 2
    extra/libatasmart 0.18-1 1 -> 2
    extra/libcanberra 0.28-4 4 -> 5
    extra/libpulse 2.0-1 1 -> 2
    extra/libcanberra-pulse 0.28-4 4 -> 5
    extra/mesa 8.0.3-1 1 -> 2
    extra/pulseaudio 2.0-1 1 -> 2
    extra/xf86-video-ati 6.14.99-0.20120517 0.20120517 -> 1.20120517
    community/libvirt 0.9.12-7 7 -> 8
    community/ttf-ubuntu-font-family 0.80-2 2 -> 3
    multilib/lib32-libglapi 8.0.3-3 3 -> 3.1
    multilib/lib32-libgl 8.0.3-3 3 -> 3.1
    ==> Software upgrade (new version) :
    core/util-linux 2.21.1-2 -> 2.21.2-1
    core/e2fsprogs 1.42.2-2 -> 1.42.3-1
    core/libpipeline 1.2.0-2 -> 1.2.1-1
    core/libsystemd 44-7 -> 184-2
    core/procps-ng 3.3.2-2 -> 3.3.3-1
    core/systemd 44-7 -> 184-2
    core/systemd-sysvcompat 3-1 -> 184-2
    extra/pixman 0.24.4-1 -> 0.26.0-1
    extra/xorg-server-common 1.12.1.902-1 -> 1.12.2-1
    extra/xorg-server 1.12.1.902-1 -> 1.12.2-1
    community/libuser 0.57.1-2 -> 0.57.6-1
    community/os-prober 1.49-3 -> 1.53-1
    community/systemd-arch-units 20120412-6 -> 20120528-3
    repo-ck/linux-ck-corex 3.3.7-1 -> 3.4-1
    repo-ck/linux-ck-corex-headers 3.3.7-1 -> 3.4-1
    ==> New package :
    core/systemd-tools 184-2 (required by systemd)
    Does the systemd not support btrfs subvolume as root partition??
    Last edited by aduser (2012-06-02 17:45:39)

  • UFS filesystem limit on solaris 10 - sparc

    Hi All,
    I have one question in regards with soalris UFS file system on Sun Solaris 10 Sparc.
    currently i have one mount point with 1.5 TB of space with UFS filesystem connected to EMC SAN, now i am going to add one metalun of 1 more TB and exapnd it on SAN.
    In regards with this i have some concerns:
    1) Will UFS support 2.5 TB on a single slice?
    2) Simply growfs command will work or do we need to perform additional steps?
    Steps :
    --> bkp data and umount the filesystem
    --> run devfsadm
    --> use growfs command
    --> mount partition again
    Any suggestions in this regards are really appreciated.
    Thanks in advance.

    user12143664 wrote:
    Hi,
    Many thanks for input.
    May i know how can i start scsci auto detect in format?
    Lun detected with new capacity but not displaying in partition table even after labeling the disk.
    11. emcpower1a <DGC-RAID 5-0429-2.44TB>
    /pseudo/emcp@1Current situation:
    Part      Tag    Flag     First Sector          Size          Last Sector
    0        usr    wm                34         1.46TB           3145711582
    1 unassigned    wm                 0            0                0
    2 unassigned    wm                 0            0                0
    3 unassigned    wm                 0            0                0
    4 unassigned    wm                 0            0                0
    5 unassigned    wm                 0            0                0
    6 unassigned    wm                 0            0                0
    8   reserved    wm        3145711583         8.00MB           3145727966I tried zero VTOC its not working as slice 2 wa already zero.
    Need help.
    Thanks in advance.FWIW, that's an EFI label. Above a certain size, "standard" Solaris disk labels don't work, so EFI labels are required. Is that the same as the VTOC that was available before you enlarged the LUN. IIRC that limit might be 2 TB.
    Since you refer to slice 2, I am assuming here the old label may not have been an EFI label. Also, EFI labels do not support overlapping slices, so the old Solaris convention of slice 2 being the entire disk no longer applies.

  • Cannot resize root partition

    i used gparted live in order to maximize the size of root partition but i can't
    Device Boot Start End Blocks Id System
    /dev/sda1 2048 718847 358400 7 HPFS/NTFS/exFAT
    /dev/sda2 * 718848 586656347 292968750 7 HPFS/NTFS/exFAT
    /dev/sda3 612048894 976771071 182361089 5 Extended
    /dev/sda4 586657792 612046847 12694528 83 Linux
    /dev/sda5 967215104 976771071 4777984 82 Linux swap / Solaris
    /dev/sda6 612048896 967213055 177582080 83 Linux
    Number Start End Size Type File system Flags
    1 1049kB 368MB 367MB primary ntfs
    2 368MB 300GB 300GB primary ntfs boot
    4 300GB 313GB 13.0GB primary ext4
    3 313GB 500GB 187GB extended
    6 313GB 495GB 182GB logical ext4
    5 495GB 500GB 4893MB logical linux-swap(v1)
    i minimize the size of sda6(home folder) in order to give more space to my root partition sda4 but i can't .gparted don't give the option to add the unallocated space to sda4.when i tried to adjust the partitions the swap partition was off
    Last edited by kosgeter (2014-04-30 21:52:13)

    That's a no-no, you can't do that
    To increase the size of sda4, there must be continuous free space after it.
    In your case it's like
    sda4
    sda5
    sda6
    You first reduce sda6 and you get free space after it, you need to move sda6(not just resize it). Also you will need to delete sda5(which is your swap) and remake it.
    Example:
    sda4 - 10GB
    sda5 - 4GB
    sda6 - 100GB
    delete sda5 and resize sda6:
    sda4 - 10GB
    4GB free space
    sda6 - 50GB
    50GB free space
    move sda6:
    sda4 - 10GB
    50GB free space
    sda6 - 50 GB
    4GB free space
    resize sda4 and create swap(sda7):
    sda4 - 60GB
    sda6 - 50 GB
    sda7 - 4GB
    Might I suggest that you use console tools instead of gparted(imho gparted is buggy). The tools in the arch install iso should do fine. Also you can't resize mounted partitions,  so you shouldn't try to touch your arch root partition while using it
    Last edited by rand_x0r (2014-05-01 16:06:31)

  • [solved] How to convert fs from ext2 to ext3 on root partition?

    Hello there!
    Edit: It seems that the plan works! apparently it worked for alleyoopster also on a mounted fs.
    As the title says, I want to convert my fs on / from ext2 to ext3. After some research I think I know what
    to do, but want to make sure that I don't mess anything up....
    So here is the plan:
    boot with an install disc and leave the root partition unmounted (I know that in theory the conversion should
    work on a mounted fs, but it feels awkward to me and I want to avoid it....).
    Then use the
    tune2fs -j /dev/xxx
    command (the defaults for the forced checks are ok with me). Then reboot with the CD still in place, but use
    this time root=/dev/xxx. Then I can change my /etc/fstab (ext3 should have been able to be mounted as ext2 at
    the moment). Finally I have to rebuild my initrd image with
    mkinitcpio -p kernel26
    Then I should be able to boot into my system. And now the question: Can anyone verify that this is a valid approach
    and will work? Or knows a better way to do it?
    I'm grateful for any input
    Last edited by alafanky (2007-11-26 15:41:35)

    Have a look at the man for tune2fs and mkinitcpio
    man tune2fs
    man mkinitcpio
    I am looking at doing the same and as far as I can figure out it goes like this, BUT this is not a proven method just what I am thinking of doing, Maybe someone else can correct or add to this or confirm that it will work.
    1. Add journal parameter like this:
    tune2fs -j /dev/sda1
    2. Change the partition type from ext2 to ext3 in /etc/fstab
    3. For a standard  kernel re-create ramdisk with preset parameters (no good for custom kernel)
    mkinitcpio -p kernel26
    As the system is mounted it will create the journal inode in the top level, don't delete this, it will get hidden into the filesystem on reboot.
    Let me know if you make some progress. I may get brave and try it later.
    So in answer, yes pretty much the same but I think you can do it with the fs mounted.
    Last edited by alleyoopster (2007-11-26 12:44:29)

  • Trouble with luks non root partition

    hello,
    today i struggled with creating an encryptet archlinux installation.
    what i want is to encrypt my root and all other partitions with luks.
    basically i used the guide on the archwiki ( https://wiki.archlinux.org/index.php/Dm-crypt_with_LUKS ),
    but iam always failing at the same point.
    my setup is a bit more complex, but to describe my problem i want to use a simple testcase
    /dev/sda with 2 partitions
      /dev/sda1    as /boot
      /dev/sda2    as crypto_LUKS
    /dev/sdb with 1 partition
      /dev/sdb1    as crypto_LUKS
    /dev/sda2 should be / and /dev/sdb1 f.eks. /home
    iam using passphrases for both partitions.
    i edited the HOOKS line in mkinitcpio.conf and added "encrypt" before "filesystems",
    and i also edited the crypttab to somethink like this:
    sdb1_crypt /dev/sdb1 none luks
    my fstab entry for /home looks like
    /dev/mapper/sdb1_crypt /home ext4 rw,relatime,data=ordered 0 1
    so far so good, when iam booting iam prompted for passphrases 2 times. first time to encrypt and mount the root-partition, which works fine.
    second time for the /home partition, but then the boot process stucks and systemd times out
    [ OK ] Found device /dev/mapper/sdb1_crypt
    [ OK ] Started Cryptography Setup for sdb1_crypt
    [ OK ] Reached target Encryptet Volumes
    [ TIME ] Timed out waiting for device dev-mapper/sdb1_crypt
    [ DEPEND ] Dependency failed for /home
    [ DEPEND ] Dependency failed for Local File Systems
    iam thrown to emergency shell then.
    /dev/mapper/sdb1_crypt exists, but when iam trying to mount it with
    mount /dev/mapper/sdb1_crypt /mnt
    it says
    mount: special device /dev/mapper/sdb1_crypt does not exist
    cryptsetyp says , that /dev/mapper/sdb1_crypt is inactive.
    anyway i can luksOpen it manually with
    cryptsetup luksOpen /dev/sdb1 foo
    enter passphrase again and now iam able to mount /dev/mapper/foo
    what am i missing in my here?
    thanks for helping !
    ineb

    I just worte this. It dose not cover the LVM part. However, you do not need to do anything for that.
    Just add this between "keymap encrypt" and "filesystems" in the HOOKS= array
    lvm2
    Also, becuase you have more then mone parition that is encrypted and needs to be decrypted at boot, you may need to have this the the /etc/default/grub instead of what what I put in the post I linked to.
    GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:root cryptdevice=/dev/sdb1:home"
    The `grub-mkconfig -o /boot/grub/grub.cfg` command WILL find all your LVM2 lv's with no problem and configure grub.cfg correctly. You just need to edit /etc/default/grub and use that command to rebuild the grub.cfg
    Other then that this post should solve your problems.
    https://bbs.archlinux.org/viewtopic.php … 2#p1209702
    Last edited by hunterthomson (2012-12-25 02:40:23)

  • How would you split a 10 GB root partition? Would you?

    The system seems to be booting a little slow lately (been using Arch for more than a year now) and I was thinking of splitting the root partition to improve performance.
    Right now the entire OS is on a single partition. I don't have a /home partition but I can see it's usefulness:
    - files on /home are, in general, more frequently written (browser cache especially), which means less fragmentation for the root partition
    - having a noexec flag for /home so no potentially dangerous software will run from there (and why would you need to run software from /home?)
    - my /var folder takes up 102 MB, 9.706 files in 4.846 folders. Is there a filesystem that will deal well with many small files ? ReiserFS maybe ?
    So how would you split (gigabyte-wise) a 10 GB partition into /, /home and /var ? And would you ? I've been told from the IRC channel that it makes zero sense. At least not for desktop use.
    PS: I'm also switching from i686 to x86_64, so please take that into account as well. For instance I noticed that 64 bit software usually takes up more space than 32 bit.
    Last edited by DSpider (2011-05-29 11:32:04)

    Here is what's happening on my Arch box:
    . 2,1TiB [##########] /mnt
    . 61,0GiB [ ] /home
    5,2GiB [ ] /usr
    . 2,9GiB [ ] /var
    126,0MiB [ ] /opt
    83,1MiB [ ] /lib
    . 14,1MiB [ ] /boot
    10,0MiB [ ] /sbin
    . 7,3MiB [ ] /etc
    5,3MiB [ ] /bin
    . 3,0MiB [ ] /tmp
    192,0kiB [ ] /run
    20,0kiB [ ] /srv
    ! 16,0kiB [ ] /lost+found
    4,0kiB [ ] /dev
    4,0kiB [ ] /lib64
    ! 4,0kiB [ ] /root
    . 0,0 B [ ] /proc
    0,0 B [ ] /sys
    < 0,0 B [ ] /media
    Generated with ncdu.
    I have big stuff installed like a full texlive and libreoffice and I never clean my package cache. This is /var:
    . 2,6GiB [##########] /cache
    . 153,2MiB [ ] /lib
    57,1MiB [ ] /abs
    . 31,3MiB [ ] /log
    7,4MiB [ ] /tmp
    . 592,0kiB [ ] /spool
    . 132,0kiB [ ] /run
    8,0kiB [ ] /lock
    e 4,0kiB [ ] /opt
    e 4,0kiB [ ] /local
    e 4,0kiB [ ] /games
    ! 4,0kiB [ ] /enigma
    4,0kiB [ ] /empty
    @ 0,0 B [ ] mail
    And this is /var/cache
    2,6GiB [##########] /pacman
    10,9MiB [ ] /pkgtools
    3,0MiB [ ] /man
    320,0kiB [ ] /cups
    280,0kiB [ ] /fontconfig
    252,0kiB [ ] /samba
    ! 4,0kiB [ ] /ldconfig
    e 4,0kiB [ ] /hald
    /usr
    2,8GiB [##########] /share
    1,7GiB [###### ] /lib
    415,2MiB [# ] /bin
    153,9MiB [ ] /include
    149,8MiB [ ] /lib32
    15,3MiB [ ] /src
    13,7MiB [ ] /sbin
    104,0kiB [ ] /local
    I think I have a very typical desktop here: Mostly web/office stuff and some multimedia.

  • Running out of disk space on root partition

    Hello,
    I'm running gnome 3 and every time I boot and logon with my user I'm getting a warning that my root partition is running out of disk space (~350MB free out of 7.5GB). This seems really strange to me since I've not installed very much software. I've got a 1TB hard drive and the big things are stored in my home directory.
    # df -h
    outputs:
    Filesystem size used free used% mounted
    udev 10M 0 10M 0% /dev
    run 10M 168K 9,9M 2% /run
    /dev/disk/by-uuid/072ba75b-a418-4795-ac0b-965815573010 7,3G 6,6G 357M 95% /
    shm 2,0G 444K 2,0G 1% /dev/shm
    /dev/sda1 99M 17M 78M 18% /boot
    /dev/sda4 910G 131G 733G 16% /home
    /dev/disk/by-uuid/072ba75b-a418-4795-ac0b-965815573010 seems a little bit odd to me there although I don't have much experience using linux based systems.
    # ls /dev/disk/by-uuid/072ba75b-a418-4795-ac0b-965815573010 -l
    # lrwxrwxrwx 1 root root 10 (...date and time ...) /dev/disk/by-uuid/072ba75b-a418-4795-ac0b-965815573010 -> ../../sda3
    and tab completion lists the files of my home directory. What's going on here?

    Inxsible wrote:
    ChoK wrote:/usr should not be on a seperate partition anymore. Some programs assume it's on the same partition and fail sometime silently sometime badly.
    What ?? That's the first I have heard of this. What programs fail? Any examples?
    With sysvinit in Arch, this isn't such a big problem, but we're slowly starting to see evidence that this is becoming a worse and worse idea. In particular, if you set a non C locale for daemons, you will not be able to shut down cleanly, as mount(8) is trying to reference files in the locale cache (on /usr) and can't unmount /usr.
    Example bug report: https://bugs.archlinux.org/task/25149
    If you're using systemd, /usr on a separate partition is flat out not allowed. We're getting into the realm of filthy hacks ahead in order to try and support this -- see Tom's late comments in the above bug report.
    Oh, and be on the lookout for a cache cleaning util in pacman-contrib (name pending):
    http://mailman.archlinux.org/pipermail/ … 13926.html
    Last edited by falconindy (2011-07-27 20:48:14)

Maybe you are looking for